Hab grad den Überblick verloren. Hat schon jemand ein Hotkey zum beenden vorgeschlagen?
AutoIt
HotKeySet("{ESC}", "_Exit")
While 1
MouseMove(10, 10)
Sleep(1000)
MouseMove(10, 100)
Sleep(1000)
MouseMove(100, 100)
Sleep(1000)
MouseMove(100, 10)
Sleep(1000)
WEnd
Func _Exit()
Exit
EndFunc
Alles anzeigen
Update:
Den Ablauf mit der Mausposition würde ich mir logisch so vorstellen:
AutoIt
HotKeySet("{ESC}", "_Exit")
Local $iX = 0
Local $iy = 0
While 1
MouseMove(10, 10)
Sleep(1000)
$iX = MouseGetPos(0)
$iY = MouseGetPos(1)
If ( $iX <> 10 Or $iY <> 10 ) Then
MsgBox(0, "", "User moved mouse ...")
_Exit()
EndIf
MouseMove(10, 100)
Sleep(1000)
$iX = MouseGetPos(0)
$iY = MouseGetPos(1)
If ( $iX <> 10 Or $iY <> 100 ) Then
MsgBox(0, "", "User moved mouse ...")
_Exit()
EndIf
MouseMove(100, 100)
Sleep(1000)
$iX = MouseGetPos(0)
$iY = MouseGetPos(1)
If ( $iX <> 100 Or $iY <> 100 ) Then
MsgBox(0, "", "User moved mouse ...")
_Exit()
EndIf
MouseMove(100, 10)
Sleep(1000)
$iX = MouseGetPos(0)
$iY = MouseGetPos(1)
If ( $iX <> 100 Or $iY <> 10 ) Then
MsgBox(0, "", "User moved mouse ...")
_Exit()
EndIf
WEnd
Func _Exit()
Exit
EndFunc
Alles anzeigen
Deine Rap-Effekte kann man da natürlich noch überall einbauen ![]()
![]()