jasondd95

Script start and pause hotkey functions

9 posts in this topic

$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

i need help with this mouse spinning script, i need a start, pause and quit hotkeys for it please.

Share this post


Link to post
Share on other sites



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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
2 minutes ago, Jos said:

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

come on man please i aint no scripter and i did search the forums but didnt understand jack

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


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 

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


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!

Share this post


Link to post
Share on other sites
Quote

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

 

Yes, actually, why all the whining at first?

1 person likes this

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

Share this post


Link to post
Share on other sites

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

1 person likes this

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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