Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 20:27

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

Advertisement



While in If Problem

Discussion on While in If Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2009
Posts: 141
Received Thanks: 26
While in If Problem

Hallo Leute(:
will mir für CCS kleinen Schies Bot machen für ZM (ZombiMap)
Problem ist:
Er soll die Linke Maustaste immer nach 100 millisekunden wieder drücken(für die Pistole) bis ich halt wieder die selbe Taste drücke
aber die Schleife hört nicht auf
Naja hier erstmal der Script:
Code:
HotKeySet("{UP}", "hi")
HotKeySet("{DOWN}", "ghh")

Global $Start = False

Func hi()
	If $Start = False Then
		$Start = True
		MouseDown ("LEFT")
	ElseIf $Start = True Then
		$Start = False
		MouseUp ("LEFT")
	EndIf
EndFunc

Func ghh()
	If $Start = False Then
		$Start = True
		
		Mouseclick ("Left")      ; hier weiß ich nicht weiter!!
		sleep (100)
	    
		ElseIf $Start = True Then
		$Start = False
	EndIf
EndFunc

While (True) * Sleep(0)
WEnd
Hab ne Menge ausprobiert aber entweder ich bin zu dumm(: odeer ich suche nach dem Falschen
Danke schonmal im Vorraus
LG -Marks-
-MARKS- is offline  
Old 02/17/2010, 17:03   #2
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
schau dir mal _IsPressed an.
HardCore.1337 is offline  
Old 02/17/2010, 17:15   #3
 
elite*gold: 0
Join Date: Oct 2009
Posts: 141
Received Thanks: 26
Tut mir leid aber das is mir noch bisschen zu hoch was ich damit machen soll:S

#Include <Misc.au3>
_IsPressed($sHexKey[, $vDLL = 'user32.dll'])

???
-MARKS- is offline  
Old 02/17/2010, 17:59   #4
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
Code:
Global $Fire
HotKeySet("{SPACE}", "ToggleFire")

While 1
    Sleep(100)
WEnd

Func ToggleFire()
    $Fire = NOT $Fire
    While $Fire
        sleep(100)
	MouseClick("left")
    WEnd
EndFunc
Mit space schaltest du ein und aus, ggf den Button bei Hotkeyset ändern.
| Moep | is offline  
Thanks
1 User
Old 02/17/2010, 18:38   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 141
Received Thanks: 26
Dankeschön
-MARKS- is offline  
Reply


Similar Threads Similar Threads
Metin 2 Pserver Problem/ Lösung für das Matrix Kartennummer Problem
01/04/2010 - Metin2 Private Server - 3 Replies
Hy Leute Wie in der Überschrift genannt, hab ich gerade ein Problem mit meinem Metin 2Server. Ich lasse ihn via Loopbackadapter laufen, funktioniert auch ganz gut. Ich hab aber jetzt das Poblem, das in meinem Account nur noch Krieger mit Level null stehen. Wie kann ich das Beheben??, das is auch manchmal da, wenn ich via Navicat n neuen Account mach. Hoffe einer hatt ne Lösung Hab n Screenshot im Anhang Aber ich hab ja auch ne Lösung für n anderes Problem. Gestern hatte ich beim...
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



All times are GMT +2. The time now is 20:27.


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.