elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   AutoIt (https://www.elitepvpers.com/forum/autoit/)
-   -   könnte mir wer das scripten? (https://www.elitepvpers.com/forum/autoit/608171-k-nnte-mir-wer-das-scripten.html)

Shadow992 06/14/2010 17:59

Quote:

Originally Posted by huberhans (Post 5621998)
Shadow, wie hast das gelöst? Über Funktionen mit Timer für die einzelnen Tastendrücke?

Naja ist doch ganz billig ...
PHP Code:

HotKeySet("!s""Start")
HotKeySet("!e""exi")
Dim $timer[5]


While 
1
    Sleep
(111)
WEnd



Func Start
()

    For 
$i 0 To UBound($timer) - 1
        $timer
[$i] = TimerInit()
    
Next

    
While 1
        
If TimerDiff($timer[0]) > 5000 Then
            Send
("e")
            
$timer[0] = TimerInit()
        EndIf
        If 
TimerDiff($timer[1]) > 1000 Then
            Send
("a")
            
$timer[1] = TimerInit()
        EndIf
        If 
TimerDiff($timer[2]) > 1000 Then
            Send
("w")
            
$timer[2] = TimerInit()
        EndIf
        If 
TimerDiff($timer[3]) > 3000 Then
            Send
("2")
            
$timer[3] = TimerInit()
        EndIf
        If 
TimerDiff($timer[4]) > 4000 Then
            Send
("q")
            
$timer[4] = TimerInit()
        EndIf
        
sleep(10)
    
WEnd
EndFunc   
;==>start


Func exi
()
    Exit
EndFunc   ;==>exi 


Zorro' 06/14/2010 18:23

könnteste evtl umstellen das er noch taste "r" alle 8,5 sek drückt? musste wenne willst nich sofort machen nur wenne lust hast

Shadow992 06/14/2010 19:46

1 Attachment(s)
Quote:

Originally Posted by Dourflamingo (Post 5627402)
könnteste evtl umstellen das er noch taste "r" alle 8,5 sek drückt? musste wenne willst nich sofort machen nur wenne lust hast

Klar ...

Zorro' 06/14/2010 20:45

danke vielmals :D

huberhans 06/14/2010 23:11

Timer als Array hab ich auch noch net gesehen! Gefällt mir!


All times are GMT +2. The time now is 02:39.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.