GeneZ Posted April 5, 2008 Posted April 5, 2008 OK, i'm new to this so please help me. I need my script to send "F10" every 360 seconds. while sending "F5" "F6" "F7" and "INSERT" in between. can somebody help. it has to be looped. f5 f6 f7 and insert gets pressed in order then sleeps for 2 seconds, then f5 f6 f7 insert again, then sleep. again and again, but when 360 seconds has passed it will press f10. how am i suppose to do that? please help. thanks.
Swift Posted April 5, 2008 Posted April 5, 2008 While 1 $Time=TimerInit() Send("{F5}{F6}F7}") If $Time>360 Then Send("{F10}") $Time=TimerInit() EndIf Sleep(2000) WEnd
GeneZ Posted April 5, 2008 Author Posted April 5, 2008 While 1 $Time=TimerInit() Send("{F5}{F6}F7}") If $Time>360 Then Send("{F10}") $Time=TimerInit() EndIf Sleep(2000) WEnd uhm If $Time>360 or If $Time>360000 ?? and how will i put a 1 second waiting time between f5 f6 and f7? btw. thanks for replying
Swift Posted April 5, 2008 Posted April 5, 2008 While 1 $Time=TimerInit() Send("{F5}") Sleep(1000) Send("{F6}") Sleep(1000) Send("F7}") If $Time>360*1000 Then Send("{F10}") $Time=TimerInit() EndIf Sleep(2000) WEnd
cppman Posted April 5, 2008 Posted April 5, 2008 (edited) There are two ways to do this: (The easiest way) AdlibEnable("OnTimeUp", 360000) While 1 Send("{F5}{F6}{F7}") Sleep(2000) WEnd Func OnTimeUp() ; Do your stuff in this function Send("{F10}") EndFunc Edited April 5, 2008 by cppman Miva OS Project
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