1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Leertasten Spammer", 138, 58, 192, 124) $Button1 = GUICtrlCreateButton("Start", 0, 0, 65, 25) $Button2 = GUICtrlCreateButton("Stop", 72, 0, 65, 25) $Button3 = GUICtrlCreateButton("Schließen", 32, 32, 65, 25) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button1 AdlibRegister('_Space', 1700) Case $msg = $Button2 AdlibUnregister() Case $msg = $Button3 Exit EndSelect Wend Func _Space() Send("{^}") MouseClick("left") MouseClick("left") MouseClick("left") MouseClick("left") MouseClick("left") MouseClick("left") MouseClick("left") Send("1") EndFunc |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Terrax2« (24.03.2012, 19:29)
1 |
$playing = 1 |
1 |
$playing = 0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Leertasten Spammer", 138, 58, 192, 124) $Button1 = GUICtrlCreateButton("Start", 0, 0, 65, 25) $Button2 = GUICtrlCreateButton("Stop", 72, 0, 65, 25) $Button3 = GUICtrlCreateButton("Schließen", 32, 32, 65, 25) GUISetState() Global $playing = 0 HotKeySet("{F1}", "_start") HotKeySet("{F2}", "_stop") While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button1 AdlibRegister('_Space', 1700) ; alle 10 ms wird die Funktion aufgerufen Case $msg = $Button2 AdlibUnregister() Case $msg = $Button3 Exit EndSelect Wend Func _start() $playing = 1 EndFunc Func _stop() $playing = 0 EndFunc If $playing Then AdlibRegister('_Space', 1700) EndIf Func _Space() Send("{^}") MouseClick("left") MouseClick("left") MouseClick("left") MouseClick("left") MouseClick("left") MouseClick("left") MouseClick("left") Send("1") EndFunc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
$gui = GUICreate("Leertasten Spammer", 138, 58, 192, 124) $btnStart = GUICtrlCreateButton("Start", 0, 0, 65, 25) $btnStop = GUICtrlCreateButton("Stop", 72, 0, 65, 25) $btnClose = GUICtrlCreateButton("Schließen", 32, 32, 65, 25) GUISetState() HotKeySet("{F1}", "_start") HotKeySet("{F2}", "_stop") While Sleep(10) $msg = GUIGetMsg() Select Case $msg = -3 Or $msg = $btnClose Exit Case $msg = $btnStart _start() Case $msg = $btnStop _stop() EndSelect Wend Func _start() AdlibRegister('_Space', 1700) EndFunc Func _stop() AdlibUnregister() EndFunc Func _Space() Send("{^}") For $i = 1 To 7 MouseClick("left") Next Send("1") EndFunc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Global $iStart = False $Form1 = GUICreate("Leertasten Spammer", 138, 58, 192, 124) $Button1 = GUICtrlCreateButton("Start", 0, 0, 65, 25) $Button2 = GUICtrlCreateButton("Stop", 72, 0, 65, 25) $Button3 = GUICtrlCreateButton("Schließen", 32, 32, 65, 25) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button1 $iStart = True Case $msg = $Button2 $iStart = False Case $msg = $Button3 Exit EndSelect If ($iStart = True) Then ; Alles hier wird nur aufgefüht wenn $iStart auf True ist Send("{^}") For $i = 1 To 7 MouseClick("left") Next Send("1") EndIf Wend |
Zitat
Danke
also starten funktioniert schonmal
aber stoppen kann ich das ganze nicht
ich drücke F1 und das proggi legt los
drücke ich f2 bleibt es aber an wird aber nicht angehalten
Habe mir nach jahrelanger Treue gegenüber meinem Röhrenfernseher einen Samsung LED Fernseher zugelegt!