Jump to content

Need Very Simple Macro


Banista
 Share

Recommended Posts

maybe this

; Press Esc to terminate script, F9 to "run/pause"


Global $Paused
HotKeySet("{F9}", "TogglePause")
HotKeySet("{ESC}", "Terminate")


;;;; Body of program would go here;;;;
While 1
    Sleep(100)
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = Not $Paused
    While $Paused
        ToolTip('Script is "Running"', 0, 0)
        Send("{w}")
        Sleep(1000 * 60); 1000 = 1 second x 60 = 1 minute
    WEnd
    ToolTip("")
EndFunc  ;==>TogglePause

Func Terminate()
    Exit 0
EndFunc  ;==>Terminate

8)

NEWHeader1.png

Link to comment
Share on other sites

Hello Ladies, i am total noob, i need a simple macro which press every minute the button w on my keyboard.

Can anyone tell me how to do?

While 1
send("w")
sleep(60000)
WEnd

Edit - Too slow again

Edited by BigDod


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Hello Ladies, i am total noob, i need a simple macro which press every minute the button w on my keyboard.

Can anyone tell me how to do?

Why are u calling us ladies

@Valuater yes that was fast just some few seconds behind

My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!
Link to comment
Share on other sites

oh very fast replies, nice nice.

But ok i tried the makro from valuater and i get the error unknown command Global $Paused

Hm anyone know why?

Try copying it again cause it works here.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...