Quote:
$WList=WinList ("[CLASS:CLIENT]") ;lists up all clients
for $i=1 to $WList[0][0] ;does the following code for every client
ControlSend ($WList[$i][1],"","","Blablabla") ;send Blablabla to all your clients, $WList[$i][1] is the windowhandle & it works for minizmied and hided windows
sleep (1000) ; 1sec delay
Next
Exit
Possibly. Getting the handle works pretty much 95% of the time.Quote:
There are no ControlId`s in SRO_Client.exe, therefore "edit1" or "Edit1" will not work correctly every time.
If I were in your shoes, this is the snippet I`d try to play with instead:
Note: Edit1 = CLIENT:)
$WList=WinList ("[CLASS:CLIENT]")
for $i=1 to $WList[0][0]
ControlSend ($WList[$i][1],"","","{enter}")
sleep (4000)
Next
If you use ("[CLASS:CLIENT]") istead of "Edit1" you should be able to send "enter" to the client every time untill lag hits you back, then you`ll have to restart all over again^^.Quote:
Possibly. Getting the handle works pretty much 95% of the time.
Yeah I see what you mean.Quote:
If you use ("[CLASS:CLIENT]") istead of "Edit1" you should be able to send "enter" to the client every time untill lag hits you back, then you`ll have to restart all over again^^.
Just rename that SRO_Client into something like "IGN Char Name" so you know which one is which after you logged him in.
SRO_Client.exe does not recognize "Edit1" as a control. "Edit1" comes from Notepad.exe, and it is used as an EXAMPLE. Thats exactly the reason you can use your script to send "enter" like 2-5 times, and then what? You simply get stuck in a proccess, right?Quote:
EDIT: Your snippet won't work unless you put Edit1 as the control ID ^^
No. My Auto Connect uses GetWinHandle and Edit1 and it works smooth. It will send whatever key you want until you stop it, try it.Quote:
SRO_Client.exe does not recognize "Edit1" as a control. "Edit1" comes from Notepad.exe, and it is used as an EXAMPLE. Thats exactly the reason you can use your script to send "enter" like 2-5 times, and then what? You simply get stuck in a proccess, right?
Have you tryed minimized and/or hidden client?Quote:
No. My Auto Connect uses GetWinHandle and Edit1 and it works smooth. It will send whatever key you want until you stop it, try it.
Awhile ago I used to make my own little scripts for SRO buffing, but Edit1 was the only ControlID that works. Your method has the exact same outcome as the one posted here.
EDIT: AutoIt recognizes Edit1.
Yes, that was the whole purpose of the project, to log in multiple characters at the same time, no matter the windows state.Quote:
Have you tryed minimized and/or hidden client?
Thats really interesting, because I`m running a 64 bit xp here, and never was able to get it run correctly with Edit1. Have you tryed to input ID and PW like that to a minimized client?Quote:
Yes, that was the whole purpose of the project, to log in multiple characters at the same time, no matter the windows state.
If you hide, minimize the window, It's still visible to the computer, so It will always grab the handle.
$SROid="yourSroId"
$SROpw="yourSROpw"
If WinActive("SRO_Client", "") Then
WinSetState("SRO_Client", "", @SW_MINIMIZE);try also @SW_HIDE instead of @SW_MINIMIZE
Sleep(37)
EndIf
Sleep(614)
ControlSend("SRO_Client", "", "", "{BS}")
Sleep(152)
ControlSend("SRO_Client", "", "", $SROid )
Sleep(153)
ControlSend("SRO_Client", "", "", "{TAB}")
Sleep(154)
ControlSend("SRO_Client", "", "", $SROpw )
Sleep(204)
ControlSend("SRO_Client", "", "", "{ENTER}")
Sleep (124)
;==> To logging in
hi could some1 help me??Quote:
Try this and tell me does it work for you.
Code:$SROid="yourSroId" $SROpw="yourSROpw" If WinActive("SRO_Client", "") Then WinSetState("SRO_Client", "", @SW_MINIMIZE);try also @SW_HIDE instead of @SW_MINIMIZE Sleep(37) EndIf Sleep(614) ControlSend("SRO_Client", "", "", "{BS}") Sleep(152) ControlSend("SRO_Client", "", "", $SROid ) Sleep(153) ControlSend("SRO_Client", "", "", "{TAB}") Sleep(154) ControlSend("SRO_Client", "", "", $SROpw ) Sleep(204) ControlSend("SRO_Client", "", "", "{ENTER}") Sleep (124) ;==> To logging in