autohotkey

11/23/2012 16:53 oododo#1
hey kann mir jemand eine start funktion einbauen

HotKeySet("{F4}","Ende")
HotKeySet("{F2}", "pause")




Func Ende ()

While 1

Exit

WEnd

EndFunc




while 1
send("{Right}")
send("{Left}")
send("{Left}")
send("{Left}")
send("{Space}")
WEnd

Func pause()
While True
Sleep(1000)
WEnd
EndFunc

und irgendwie bekomm ich nicht controlsend hin für ein bestimmtes online spiel

bitte um hilfe

mfg oododo
11/23/2012 20:30 aj1987#2
PHP Code:
Global $pause False

HotKeySet
("{F4}""Ende")
HotKeySet("{F2}""Pause")
HotKeySet("{F1}""Start")

Func Ende()
    Exit (
0)
EndFunc   ;==>Ende

Func Pause
()
    If (
$pause == TrueThen
        $pause 
False
        TrayTip
("TITEL""Pause deaktiviert."3)
    Else
        
$pause True
        TrayTip
("TITEL""Pause aktiv."3)
    EndIf

    While 
$pause
        Sleep
(50)
    
WEnd
    
Return
EndFunc   ;==>Pause

Func Start
()
    
TrayTip("TITEL""Bot start."3)

    If (
$pauseThen
        TrayTip
("TITEL""Pause aktiv."3)
        While 
$pause
            Sleep
(50)
        
WEnd
    
EndIf

    While 
1
        Send
("{Right}")
        
Send("{Left}")
        
Send("{Left}")
        
Send("{Left}")
        
Send("{Space}")
    
WEnd
EndFunc   
;==>Start

TrayTip
("TITEL""Warte auf Eingabe."3)
While 
1
    Sleep
(50)
    ;
Schleife ohne Funktion
WEnd 
Habs dir etwas schöner gemacht und die Pause sicherer gemacht...

Programstart mit F1
Pause F2
Ende F4

Thx, falls ich dir geholfen habe ;)
11/24/2012 03:15 naruto3967#3
hi guys can i request this ^^
need a script that makes you press "Y" every5 seconds and at the same time it presses "1" every 0.5 second
11/27/2012 00:25 KaT̅1muR̅#4
aber wenn man das z.b in einem Spiel Benutzen möchte Funktioniert es nicht