Jump to content

Recommended Posts

Posted (edited)

EDIT:

I figrued out one problem, but here is the other:

When I try this code:

Global $Paused 
HotKeySet("{END}", "TogglePause") 
HotKeySet("{HOME}", "Terminate") 
 
While 1 
    Sleep(1) 
 WEnd 
  
Func TogglePause() 
$Paused = NOT $Paused 
While $Paused 
    $RandomNumber= Random ( 100,2000,1)
sleep($RandomNumber)
MouseClick("left") 
WEnd 
EndFunc 
 
Func Terminate() 
   Exit 0 
EndFunc

It does not loop or pause, just closes after 1 click.

How ever when I try it with out the random func, it loops and pauses fine.

Edited by lolp1
Posted

You don't know how to use Random, that's what's wrong:

sleep(& Random(100, 500, 1000) )oÝ÷ Ù«­¢+ÙM±À¡I¹½´ ÄÀÀ°ÔÀÀ°Ä¤¤

Makes the script sleep for 100 to 500 milliseconds

Auto3Lib: A library of over 1200 functions for AutoIt
Posted

Read my new post (edited) and learn to be respectfull on a forum.

First, you changed your post to cover up for your stupidity. Second, I'm probably one of the more respectful people around here. Most of the people here would have told you to RTFM. Third, if you're going to insult me, you need to learn how to spell first.
Auto3Lib: A library of over 1200 functions for AutoIt

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
×
×
  • Create New...