Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 02:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Bitte helft mir bei der vollendung meines Scripts!

Discussion on Bitte helft mir bei der vollendung meines Scripts! within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Nonilol's Avatar
 
elite*gold: 10
Join Date: Dec 2009
Posts: 1,770
Received Thanks: 314
Unhappy Bitte helft mir bei der vollendung meines Scripts!

Ich habe Versucht einen Bot zu scripten,
der durchgehend "Leertaste" gedrückt hält; der alle 30sec. "F3" einsetzt und alle 1,5sec "F4".

Außerdem soll er durchgehend "y" drücken.

Ich habs schon mehrmals versucht, aber wie kriege ich es hin, das alle Sachen unabhängig voneinander funktionieren?


Das habe ich bisher:

Code:
HotKeySet ( "{F5}" , "Start" )
HotKeySet ( "{F6}" , "Ende" )



While 1
    Send("{SPACE DOWN}")
    Sleep(5000)
WEnd




While 2 
    Send("{F3}")
    Sleep(30000)
WEnd




While 3
    Send("{F4}")
    Sleep(1500)
WEnd



While 4
    Send("{y}")
    Sleep(100)
WEnd



func _exit()
    Exit
EndFunc
Ich hoffe ihr könnt mir helfen
Nonilol is offline  
Old 08/28/2010, 18:39   #2
 
93hacker's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 171
Received Thanks: 52
while ist keine funktion sondern eine schleife z.B. while 2-4 geht eigentlich garned du müsstest immer while 1 haben.
Hier mal der Code:
PHP Code:
HotKeySet "{F5}" "Start" )
HotKeySet "{F6}" "Ende" )
while 
1
wend
Func Start
()
$i 0
while 1
Send 
("{SPACE DOWN}")
Send ("{Y DOWN}")
Send ("{F4}")
sleep (1500)
$i += 1
if $i 20 Then
Send 
("{F3}")
$i 0
endif
wend
EndFunc
Func Ende
()
exit
EndFunc 
93hacker is offline  
Old 08/28/2010, 19:06   #3
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
das klappt schon eher... :

PHP Code:
HotKeySet('{F1}'"_start")
HotKeySet('{ESC}'"_exit")

Func _start()
    
$f3 TimerInit()
    
$f4 TimerInit()
    While 
1
Send
("{SPACE}")
Send("y")
        If 
TimerDiff($f3) >= 30000 Then
            Send
("{F3}")
            
$f3 TimerInit()
        EndIf
        If 
TimerDiff($f4) >= 1500 Then
            Send
("{F4}")
            
$f4 TimerInit()
        EndIf
    
WEnd
EndFunc

Func _exit
()
    Exit
EndFunc

While 1
    Sleep
(100)
WEnd 
omer36 is offline  
Reply

Tags
autoit, bot


Similar Threads Similar Threads
Server Problem bitte helft Leute bitte brauche eure hilfe sauu dringen
07/18/2011 - Metin2 Private Server - 20 Replies
Hi leute wenn man seinen server ya on bringt (ned das erste mal das ich ihn on bring) dann kommt am ende ya immer das operation timed out 7 mal aber jez steht da Operation reciefet 1000 mal der server startet so einfach ned was kann ich da maachen
Helft mir bittte bitte bitte !! :(
07/27/2010 - Metin2 Private Server - 16 Replies
Hallo liebe e*pvp com! Ich habe ein Problem und zwar: Ich habe einen Metin2 hamachi p-server gemacht und kann mich auch einloggen etc.. , aber mich kickts nach 4 mins ungefähr! Hab 1GB von 2GB und möchte den auch noch gern pub machen!
Helft bitte an Alle Spieler hier bitte
02/12/2009 - Main - 5 Replies
Ja ich feiere Samstag gebvurtstag ich hatte heute B-day... naja die frage ist:habt ihr mal paar partyspoiele die lustig sind ein beispiel: Mann nimmt ein Luftballon und schmiert ihn mit raiserschaum ein...nun muss man ihn rasieren ohen das er platztz helft mal pls mit meinen Ideen^^



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


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.