Sign in to follow this  
Followers 0
Banista

Need Very Simple Macro

18 posts in this topic

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



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

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

#4 ·  Posted (edited)

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

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

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

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

I dont get that error


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

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

And maybe get beta too


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

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

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

hm, same error Dim $Pause :o

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

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

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