[Autologin] Simple autoit script

06/14/2009 06:25 iLoveme00#16
can i change sleep to 1000 instead?
06/14/2009 14:47 theoneofgod#17
Quote:
Originally Posted by iLoveme00 View Post
can i change sleep to 1000 instead?
If your char doesn't appear with 4000, that would be a bad idea.
06/14/2009 15:04 audi0slave#18
Quote:
Originally Posted by MC Flip View Post
I describe to you what Im doing:
1. I start Silkroad with SROKing
2. I enter my Account Data
3: Then I start the script
4. Switch to Silkroad again and Press F10
5. Than nothing happens so I switch to the taskbar and click on Script Paused so It needs to be activated but Its still not working.
ok after you did all those steps,press connect one time and then the script has to work.
06/15/2009 20:18 MC Flip#19
So you mean I first need to press "Connect" on time and then press F10 to activate the script?
06/16/2009 12:31 theoneofgod#20
Quote:
Originally Posted by MC Flip View Post
So you mean I first need to press "Connect" on time and then press F10 to activate the script?
Technically no. You only need to type in your account info then press F10.
06/16/2009 16:11 audi0slave#21
Quote:
Originally Posted by theoneofgod View Post
Technically no. You only need to type in your account info then press F10.
Sometimes you need to press connect before pressing F10.It`s an unknown bug(happened to me).
06/16/2009 16:23 theoneofgod#22
Quote:
Originally Posted by alexx. View Post
Sometimes you need to press connect before pressing F10.It`s an unknown bug(happened to me).
It's because the ControlID is empty.
06/16/2009 16:53 NuK3R_LT#23
Works wonderfull (I use Sleep 5000, cause 4000 is smth wrong smtimes) :)

WTF? It connects only 1 time.
06/16/2009 17:15 theoneofgod#24
Quote:
Originally Posted by NuK3R_LT View Post
Works wonderfull (I use Sleep 5000, cause 4000 is smth wrong smtimes) :)

WTF? It connects only 1 time.
I'll remake it.

EDIT:

Code:
Global $Pause
$hWnd = WinGetHandle ("SRO_Client")
HotKeySet ("{F10}","Start")
HotKeySet ("{F9}","Pause")

While 1
	Sleep (50)
WEnd

Func Start()
	While 1
	ControlSend ($hWnd,"","Edit1","{enter}")
	Sleep (5000)
	WEnd
EndFunc

Func Pause()
	$Pause = NOT $Pause
	While $Pause
		Sleep (10)
	WEnd
EndFunc
06/16/2009 20:58 MC Flip#25
I found out why It didnt work to me. This script DONT work with SROKing!!
I use testosterone now but It press enter only 2-3 times and then It stops,why?
Ill try the new script now.
Btw I set the sleep time to 5000
06/21/2009 19:57 xxfukerxx#26
Confirmed

Its working nice job dude!
thx
06/21/2009 20:00 xxfukerxx#27
oh whats that after 2 times it stops
06/21/2009 20:20 kuartx#28
Quote:
Global $Paused
HotKeySet("{F9}", "Pause")
HotKeySet("{ESC}", "Close")
HotKeySet("{F10}", "Start")


While 1
Sleep(1000)
WEnd

Func Pause()
$Paused = NOT $Paused
While $Paused
Sleep (1000)
WEnd
EndFunc

Func Close()
Exit 0
EndFunc

Func Start()
While 1
ControlSend("SRO_Client", "", "edit1", "{ENTER}")
Sleep(4000)
Wend
EndFunc
just add that line "Edit1" in your source and it can help ^^

with that source it works perfect for me ^^
06/21/2009 20:22 audi0slave#29
Quote:
Originally Posted by theoneofgod View Post
I'll remake it.

EDIT:

Code:
Global $Pause
$hWnd = WinGetHandle ("SRO_Client")
HotKeySet ("{F10}","Start")
HotKeySet ("{F9}","Pause")

While 1
	Sleep (50)
WEnd

Func Start()
	While 1
	ControlSend ($hWnd,"","Edit1","{enter}")
	Sleep (5000)
	WEnd
EndFunc

Func Pause()
	$Pause = NOT $Pause
	While $Pause
		Sleep (10)
	WEnd
EndFunc
Edited first post.Your script works better,indeed.
06/21/2009 20:41 xxfukerxx#30
have you answered my question now?^^