Thanks mate, rather shitty answer, I'll take it you don't have a solution and cannot help.
And now obsolete according to you....Bot works as it made to work
There is multiple images what changed and also way how keyboard is activated is changed, my answer is valid and I know it bacause I used this script to make other one what now works because changes have done.
..and about shit, shit is cheap and you get it easily any where so go and collect more, I dont mind as long it stays out my plate, .
The following might not be a complete fix but it works for me:
Find the following:
Replace with:If $nChars > 1 Then
Sleep(200)
Send("{UP " & $nChars & "}")
EndIf
Replace images if needed.If $nChars > 1 Then
Sleep(200)
MouseClick("RIGHT", 600, 150, 1, 10)
Send("{UP " & $nChars & "}")
EndIf
I was stuck at runThroughChars where it just never selected anyone. Turns out there was no focus for the UP and DOWN to work. I had to do an extra image search so I could CLICK and have it actually select the characters.
This of course created another issue. As the image I am using (the words YOU HAVE in the char screen) has a lot of black to locate the x,y of the mouse click high enough, it chugs a little through that image search. But it does work. I'm sure you more gifted souls can make a smoother final than this hack.Global $imageCharLine = "images\charLine.png"
(Then at the top of the runThroughChars function I added this activity: )
Local $locateCharacterList = 0
$x = 0
$y = 0
$locateCharacterList = _imagesearch($imageCharLine, 1, $x, $y, $globalTolerance)
If $locateCharacterList = 1 Then
focusNW()
ToolTip("selecting an account...",0,0)
Sleep(200)
MouseClick("left",$x, $y)
Else
ToolTip("charLine.png not found, couldn't switch account...",0,0)
EndIf
EDIT: I use a triple screen and the other locator images are a mile away on the left, so I needed to get something back in the center. Robot Chicken's answer is the same thing, just specific to his setup. I was going for something where you just had to swap an image file.
Also noted that I missed adding this to the test image list.
SSGlobal $comboTestImage = GUICtrlCreateCombo("", 240, 174, 215,21,$CBS_DROPDOWNLIST)
GUICtrlSetData($comboTestImage, "charLine.png")
Last edited by StinkySQL; 08-23-2015 at 11:00 AM. Reason: Clarify