Anon Posted March 18, 2009 Share Posted March 18, 2009 First of all, i have no experience what so ever with this program, but i do have some experience in programming, so i kinda know what i am doing. This script is for a game called Darkfall. What i do with this script is select the windows i want to execute it in, press the button "down" so it looks down, and execute what ever i want it to do. So after that is done, and the loop starts again, for some reason, it wont look down again. It just executes what is after i press "down". Can anyone help me understand and fix the problem with it not pressing down the second time it runs again. expandcollapse popupWinActivate ("Darkfall Online") Sleep (2000) $i = 0 While $i <= 25 Sleep (3000) Send ("{DOWN down}") Harvest() Sleep (1000) Rest() Sleep (1000) $i = $i + 1 Wend Func Harvest() $m = 0 Sleep (5000) Send ("4") Sleep (1000) Send ("R") Sleep (1000) Send ("2") Sleep (1000) While $m <= 20 MouseClick ("Left") Sleep (3000) $m = $m + 1 WEnd Send ("R") Sleep (1000) Send ("4") Sleep (1000) EndFunc Func Rest() Send ("3") Sleep (1000) MouseClick ("left") Sleep (150000) Send ("w") EndFunc Link to comment Share on other sites More sharing options...
foster74 Posted March 18, 2009 Share Posted March 18, 2009 (edited) I think you have to release the key: Send ("{DOWN up}") Edited March 18, 2009 by foster74 Link to comment Share on other sites More sharing options...
Anon Posted March 18, 2009 Author Share Posted March 18, 2009 I think you have to release the key: Send ("{DOWN up}") I love you man, Thanks. Problem Fixed 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