MohamedYousri Posted May 26, 2008 Share Posted May 26, 2008 Hi , I am making a script to use Euro Buffs at Silkroad Online Game to work with AgBot here is my script that i made Opt("WinWaitDelay",100)Opt("WinTitleMatchMode",4)Opt("WinDetectHiddenText",1)Opt("MouseCoordMode",0)WinWait("SRO_Client","")If Not WinActive("SRO_Client","") Then WinActivate("SRO_Client","")WinWaitActive("SRO_Client","")Send("{F2}138{F1}")in send line there is the buttons that i wand the script to press to use needed buffs but it's work so fast so the number button 8 doesn't pressed so i want to add delay between every button press like 0.5 sec or 1 sec also i want this script to auto repeat itself every 5 or 6 min how can i do this please here is a link for my script Thanks a lot and waiting your help Link to comment Share on other sites More sharing options...
rudi Posted May 26, 2008 Share Posted May 26, 2008 but it's work so fast so the number button 8 doesn't pressed so i want to add delay between every button press like 0.5 sec or 1 sec SendKeyDelay Or send every key separately and pack sleep() between the lines: This way you can modify the delay to the smallest working minimum between each send() also i want this script to auto repeat itself every 5 or 6 min while 1 ; your code here sleep (5*60*1000) ; 5Min * 60 Sec * 1000 Millisec wend Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
MohamedYousri Posted May 26, 2008 Author Share Posted May 26, 2008 (edited) SendKeyDelay Or send every key separately and pack sleep() between the lines: This way you can modify the delay to the smallest working minimum between each send() while 1 ; your code here sleep (5*60*1000) ; 5Min * 60 Sec * 1000 Millisec wend Regards, Rudi. thanks a lot for your fast replay but i am totally new with all this things , so can u please download the script and modify it for me then upload it back or just modify it and copy & paste it here and i will add it to the script this will be very nice from you thanks a lot man Edited May 26, 2008 by MohamedYousri Link to comment Share on other sites More sharing options...
d4rk Posted May 26, 2008 Share Posted May 26, 2008 (edited) While 1 Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) WinWait("SRO_Client","") If Not WinActive("SRO_Client","") Then WinActivate("SRO_Client","") WinWaitActive("SRO_Client","") Send("{F2}") sleep(500) Send("1") sleep(500) Send("3") sleep(500) Send("8") sleep(500) Send("{F1}") sleep (5*60*1000);sleep 5 mins before restarting Edited May 26, 2008 by d4rk [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted May 26, 2008 Share Posted May 26, 2008 Silkroad has gameguard you will not be able to send keys but there have been rare occasions where some games with gameguard have allowed Send() to work. Link to comment Share on other sites More sharing options...
MohamedYousri Posted May 26, 2008 Author Share Posted May 26, 2008 here is my good pressing key timing Opt("WinWaitDelay",100)Opt("WinTitleMatchMode",4)Opt("WinDetectHiddenText",1)Opt("MouseCoordMode",0)WinWait("SRO_Client","")If Not WinActive("SRO_Client","") Then WinActivate("SRO_Client","")WinWaitActive("SRO_Client","")Send("{F2}")sleep(500)Send("1")sleep(500)Send("3")sleep(2500)Send("8")sleep(2000)Send("{F1}")sleep (5*60*1000);sleep 5 mins before restartingbut it doesn't repeat itself every 5 min as i need Link to comment Share on other sites More sharing options...
MohamedYousri Posted May 26, 2008 Author Share Posted May 26, 2008 While 1Opt("WinWaitDelay",100)Opt("WinTitleMatchMode",4)Opt("WinDetectHiddenText",1)Opt("MouseCoordMode",0)WinWait("SRO_Client","")If Not WinActive("SRO_Client","") Then WinActivate("SRO_Client","")WinWaitActive("SRO_Client","")Send("{F2}")sleep(500)Send("1")sleep(500)Send("3")sleep(2500)Send("8")sleep(2000)Send("{F1}")sleep (4*60*1000);sleep 4 mins before restartingWEndthis now works fine with me thanks all Link to comment Share on other sites More sharing options...
rudi Posted May 26, 2008 Share Posted May 26, 2008 this now works fine with me thanks allGlad you worked it out BTW: you might want to get the latest version of autoit and SciTE Editor from the download pages of www.autoitscript.com, in the help file you can perfectly search all stuff and you will find tons of good examples.Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now