[Autologin] Simple autoit script

06/21/2009 20:47 theoneofgod#31
Quote:
Originally Posted by xxfukerxx View Post
oh whats that after 2 times it stops
Quote:
Originally Posted by xxfukerxx View Post
have you answered my question now?^^
Try use the updated script. Run it, and press F10.
06/21/2009 21:06 xxfukerxx#32
thanks a lot
06/21/2009 21:43 babalui#33
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:)
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
06/21/2009 22:16 theoneofgod#34
Quote:
Originally Posted by babalui View Post
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:)
Possibly. Getting the handle works pretty much 95% of the time.

EDIT: Your snippet won't work unless you put Edit1 as the control ID ^^

Code:
$WList=WinList ("[CLASS:CLIENT]") 

for $i=1 to $WList[0][0]

ControlSend ($WList[$i][1],"","","{enter}")
sleep (4000) 

Next
06/21/2009 22:37 babalui#35
Quote:
Originally Posted by theoneofgod View Post
Possibly. Getting the handle works pretty much 95% of the time.
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.
06/21/2009 22:40 theoneofgod#36
Quote:
Originally Posted by babalui View Post
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.
Yeah I see what you mean.
06/21/2009 22:42 babalui#37
Quote:
Originally Posted by theoneofgod View Post
EDIT: Your snippet won't work unless you put Edit1 as the control ID ^^
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?
06/21/2009 22:44 theoneofgod#38
Quote:
Originally Posted by babalui View Post
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?
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.
06/21/2009 22:46 babalui#39
Quote:
Originally Posted by theoneofgod View Post
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.
Have you tryed minimized and/or hidden client?
06/21/2009 22:49 theoneofgod#40
Quote:
Originally Posted by babalui View Post
Have you tryed minimized and/or hidden client?
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.
06/21/2009 22:52 babalui#41
Quote:
Originally Posted by theoneofgod View Post
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.
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?
06/21/2009 22:54 theoneofgod#42
Quote:
Originally Posted by babalui View Post
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 IP and PW like that to a minimized client?
Yeah, it's the only stable method that works for me.

I'll try that now.
06/21/2009 23:47 babalui#43
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
06/21/2009 23:53 theoneofgod#44
EDIT:

It works sometimes. We should talk in PM instead of spamming Alexx's thread :)
06/29/2009 19:55 youtube2#45
Quote:
Originally Posted by babalui View Post
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
hi could some1 help me??
i want to run the autologger minimized

this is not working
ControlSend("SRO_Client", "", "", "{ENTER}")

could someone help me please??