Jump to content
Sign in to follow this  
Banista

Need Very Simple Macro

Recommended Posts

Banista

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?

Share this post


Link to post
Share on other sites
rambo3889

Hotkeyset("{ESC}","quit")
While 1
sleep(60000)
send("W")
wend

Func quit()
exit
endfunc


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!

Share this post


Link to post
Share on other sites
Valuater

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

Share this post


Link to post
Share on other sites
BigDod

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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
Valuater

First Place

rambo3889 12:33

Second Place

Valuater 12:33 ( seconds behind )

Third Place

BigDod 12:34

thats some fast replies

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
rambo3889

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!

Share this post


Link to post
Share on other sites
Banista

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?

Share this post


Link to post
Share on other sites
BigDod

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.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
rambo3889

Btw Valuater i dont think i have said what i think of your

Welcome to AutoIt 1-2-3

But anyway I like it :o


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!

Share this post


Link to post
Share on other sites
Valuater

Btw Valuater i dont think i have said what i think of your

Welcome to AutoIt 1-2-3

But anyway I like it :o

Thanks

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
rambo3889

Try to uupdate ur Autoit

No problem Valuater

Edited by rambo3889

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!

Share this post


Link to post
Share on other sites
Valuater

The script works... others have stated

i dont know of your "edit" program did you get SciTE???

did you get Beta???

did you look at "Welcome to Autoit 1-2-3" ???

8)


NEWHeader1.png

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.