vkey Posted January 24, 2009 Share Posted January 24, 2009 This is my scipt, the first part has to run continuously, the second part only every hour after starting. Like: Start script, 60 min running normal script, run part2 for a minute, 60 min normal script...... While 1 WEnd Func PressMouseButtons1();; Normal running scipt While 1 MouseClick("left", 80, 100, 1, 0) ;;blabla... WEnd EndFunc Func PressMouseButtons2();; Part of the script to run every hour after starting MouseClick("left", 80, 100, 1, 0) ;;blabla... EndFunc I hope you understand this and you can help me to fix it. Link to comment Share on other sites More sharing options...
Paulie Posted January 24, 2009 Share Posted January 24, 2009 (edited) AdLibEnable() Or you can do a TimerInit() and in the loop check if it's been an hour Edited January 24, 2009 by Paulie Link to comment Share on other sites More sharing options...
vkey Posted January 24, 2009 Author Share Posted January 24, 2009 Thanks, so it should be like this? While 1 WEnd Func PressMouseButtons1();; Normal running scipt While 1 AdlibEnable("myadlib", 3600) MouseClick("left", 80, 100, 1, 0) ;;blabla... WEnd EndFunc Func myadlib();; Script running every hour MouseClick("left", 80, 100, 1, 0) ;;blabla... EndFunc Link to comment Share on other sites More sharing options...
Authenticity Posted January 24, 2009 Share Posted January 24, 2009 Nope ^^. $Interval = 60000 ;1000 ms = second AdlibEnable('myadlib', $Interval * 60) Link to comment Share on other sites More sharing options...
Hawkwing Posted January 24, 2009 Share Posted January 24, 2009 It should be like this:CODEWhile 1 WEndFunc PressMouseButtons1();; Normal running sciptWhile 1 AdlibEnable("myadlib", 3600000) MouseClick("left", 80, 100, 1, 0);;blabla...WEndEndFuncFunc myadlib();; Script running every hour MouseClick("left", 80, 100, 1, 0);;blabla...EndFuncThe way you have it the second part will run every 3.6 seconds. The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again. Link to comment Share on other sites More sharing options...
vkey Posted January 24, 2009 Author Share Posted January 24, 2009 Of course, stupid me! 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