Sign in to follow this  
Followers 0
GeneZ

noob question. (i think)

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



While 1
$Time=TimerInit()
Send("{F5}{F6}F7}")
If $Time>360 Then
Send("{F10}")
$Time=TimerInit()
EndIf
Sleep(2000)
WEnd

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by cppman

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  
Followers 0