stupidlazykid5 Posted June 14, 2008 Posted June 14, 2008 alrighty, a pretty simple script or w/e if it is or not what i am trying to do is add a wingettext function in it and make it "start" the script, isntead of me pressing the "Home" key how would i tweak it inside? expandcollapse popuphotkeyset("{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) WinGetText("Saga Ragnarok Online 1","") If Not WinActive("Saga Ragnarok Online 1","") Then WinActivate("Saga Ragnarok Online 1","") WinWaitActive("Saga Ragnarok Online 1","") 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("3600000") Exit EndFunc Func Stop() Sleep(25) Exit EndFunc
Richard Robertson Posted June 17, 2008 Posted June 17, 2008 Instead of putting it in a function, just put the code at file level. Or you could manually call the function at file level.
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