Jump to content
Sign in to follow this  
stupidlazykid5

Start function helps

Recommended Posts

stupidlazykid5

I have a script that starts when I press the key to start it.

But I want to change it to start when it sees this text or color text and to begin it self.

So I don't know how to do it, could you guys help me?

So here's a simple script of mine

if you don't want to install it, here's it

HotKeySet("{Home}","Start")
HotKeySet("{end}","stop")
HotKeySet("{Pause}","Wait")

Func start()
#region --- ScriptWriter generated code Start --- 
Opt("WinWaitDelay",250)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
WinWait("Legend Ragnarok Online 4","")
If Not WinActive("Legend Ragnarok Online 4","") Then WinActivate("Legend Ragnarok Online 4","")
WinWaitActive("Legend Ragnarok Online 4","")
Send("{F1}")
Sleep("250")
Send("{Enter}")
Sleep("250")
Send("{Enter}")
Sleep("250")
Send("{Home}")

#endregion --- ScriptWriter generated code End --- 
EndFunc

While 1
    Sleep(25)
WEnd

Func Wait()
      sleep("99999999999999")
EndFunc

Func Stop()
    Sleep(25)
    Exit
EndFunc
Edited by stupidlazykid5

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.