Jump to content

Script start and pause hotkey functions


Recommended Posts

  • Developers

Welcome :)

I need a nice glas of red wine, but am sure I will have to get it myself. (there is a hint in there ;) )

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites
  • Developers

So you seriously want to tell me you came up with nothing when searching for hotkeys in either this forum or helpfile?

..and please be honest or else your noise will start growing!

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites
Just now, Jos said:

So you seriously want to tell me you came up with nothing when searching for hotkeys in either this forum or helpfile?

..and please be honest or else your noise will start growing!

Jos

i did find alotta threads about hotkeys but like i said i aint no scripter and i didnt understand most of it, dude if i was in ur position i would totally help a brother out 

Link to post
Share on other sites

Dumpster fire...staight ahead!!!!

edit: Seriously, you wrote the code you posted and can't figure out hotkeys?

and why on earth do you want to spin your mouse around like its been on a wine bender with Jos?

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Link to post
Share on other sites
#include <Constants.au3>


 ; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused
HotKeySet("{a}", "TogglePause")
HotKeySet("{s}", "Terminate")

$centerX = @DesktopWidth / 2
$centerY = @DesktopHeight / 2
$radius = 100
$i = 0
While 1
    MouseMove($centerX + ($radius * Cos($i)), $centerY + ($radius * Sin($i)),0)
    $i += 0.55
    Sleep(10)
 WEnd

While 1
    Sleep(100)
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

GUYS I DID IT, ARENT YOU PROUD OF ME? MY FIRST SCRIPT!

Link to post
Share on other sites
  • Developers

That wasn't too hard now was it.
So the lesson for today: Stop the begging and start learning so you can get it done yourself. 

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...