Sign in to follow this  
Followers 0
MohamedYousri

I Need A Very Little Help With A Scrript

8 posts in this topic

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by MohamedYousri

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 restarting

but it doesn't repeat itself every 5 min as i need

Share this post


Link to post
Share on other sites

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(2500)

Send("8")

sleep(2000)

Send("{F1}")

sleep (4*60*1000);sleep 4 mins before restarting

WEnd

this now works fine with me

thanks all

Share this post


Link to post
Share on other sites

this now works fine with me

thanks all

Glad 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!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0