# 59 seconds loop?

## Recommended Posts

hi, i want create a loop with a duration from 59 seconds.

is it possible? i don't found an example

bye hekki

##### Share on other sites

hi, i want create a loop with a duration from 59 seconds.

is it possible? i don't found an example

bye hekki

something like?

```\$t = TimerInit()
While 1
If TimerDiff(\$t) > 59 *1000 then ExitLoop
WEnd```

Live for the present,
Dream of the future,
Learn from the past.

##### Share on other sites

ty! it works

have you an idea for very fast and little mouse circles, too?

only the move coordinates are to slow

##### Share on other sites

```HotKeySet ("{ESC}", "quitme")
; command line param: beep (0 = off, 1 = on)
Global \$MakeNoise = 0
If \$CmdLine[0] = 0 Then
\$MakeNoise = 0
ElseIf \$CmdLine[1] = 1 Then
\$MakeNoise = 1
EndIf

Global Const \$PI = 3.1415926535897932384626433832795
Global \$Width = @DesktopWidth, \$Height = @DesktopHeight, \$MidX = \$Width/2, \$MidY = \$Height/2
Global \$Step = \$PI/6
ToolTip ("Mouse Mover!!", \$MidX, \$MidY)
While 1
Do
For \$angle = 0 To 2*\$PI Step \$Step
MouseMove (\$MidX - (Cos (\$angle) * \$Radius), \$MidY - (Sin (\$angle) * \$Radius), 0)
If \$MakeNoise = 1 Then
EndIf
Next
Do
For \$angle = 0 To 2*\$PI Step \$Step
MouseMove (\$MidX - (Cos (\$angle) * \$Radius), \$MidY - (Sin (\$angle) * \$Radius), 0)
If \$MakeNoise = 1 Then
EndIf
Next
WEnd

Func quitme()
Exit
EndFunc```

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

##### Share on other sites

dumb question, but why would one want the mouse to move in circles?

##### Share on other sites

To trick anti-bot scripts in games.

[font="Fixedsys"][list][/list][/font]

##### Share on other sites

dumb question, but why would one want the mouse to move in circles?

dumb question, ?

Live for the present,
Dream of the future,
Learn from the past.

## Create an account

Register a new account

×

• Wiki

• Back

• #### Beta

• Git
• FAQ
• Our Picks
×
• Create New...