Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 14:56

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

Advertisement



autoit hotkey funzt ned

Discussion on autoit hotkey funzt ned within the AutoIt forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 264
Received Thanks: 43
autoit hotkey funzt ned

hallo an alle
ich habe ein kleines problem....
ich bin in autoit ein anfänger und habe probiert einen bot zu schreiben der ganz gut funktioniert aber leider schaffe ich es nicht einen hotkey einzubaun... bitte helft mir

so sieht er aus
Quote:
HotKeySet ("0", "Start")

Func Start()

while True

Send(" 1 y 2 y 3 y 4 y")

Sleep(60)

WEnd

EndFunc
flothekilla94 is offline  
Old 06/11/2009, 16:08   #2
 
felixli93's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 820
Received Thanks: 909
du musst noch irgendwo eine "While 1 - Sleep (100) - WEnd" - Schleife drinhaben
felixli93 is offline  
Old 06/11/2009, 17:57   #3
 
elite*gold: 0
Join Date: Dec 2007
Posts: 137
Received Thanks: 30
HotKeySet("{0}", "Start")
bingbongman is offline  
Old 06/11/2009, 18:54   #4
 
elite*gold: 0
Join Date: May 2009
Posts: 264
Received Thanks: 43
ok danke ich werds gleich probieren
flothekilla94 is offline  
Old 06/11/2009, 20:33   #5

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,324
Quote:
Originally Posted by felixli93 View Post
du musst noch irgendwo eine "While 1 - Sleep (100) - WEnd" - Schleife drinhaben
Hat er doch.

While True ist While 1.
Adroxxx is offline  
Old 06/11/2009, 20:40   #6
 
elite*gold: 0
Join Date: May 2009
Posts: 264
Received Thanks: 43
es funktioniert super mit dem while 1 sleep und wEnd danke ^^
flothekilla94 is offline  
Old 06/11/2009, 21:27   #7
 
Syc0n's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 1,835
Received Thanks: 1,638
Quote:
Originally Posted by Adroxxx View Post
Hat er doch.

While True ist While 1.
Die While Schleife ist aber in einer Funktion
Syc0n is offline  
Old 06/12/2009, 00:04   #8

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,324
Quote:
Originally Posted by Syc0n View Post
Die While Schleife ist aber in einer Funktion
Oh Stimmt. Hab ich nicht drauf geachtet.
Adroxxx is offline  
Old 06/12/2009, 10:12   #9
 
elite*gold: 0
Join Date: May 2009
Posts: 264
Received Thanks: 43
nun komm ich zu meiner nächsten frage:
wie macht man einenweitern hotkey damit der bot pausiert????

Quote:
HotKeySet ("{0}", "Start")

Hotkeyset ("{9}", "Stop")

while 1

Sleep(100)

WEnd

Func Start()

while True

Send(" 1 y 2 y 3 y 4 y")

Sleep(60)

WEnd

EndFunc

Func Stop()

while true

Sleep(100)

WEnd
flothekilla94 is offline  
Old 06/12/2009, 11:14   #10
 
elite*gold: 0
Join Date: Dec 2007
Posts: 137
Received Thanks: 30
PHP Code:

Global $Paused

Func pause
()
    
$Paused Not $Paused
    
While $Paused
        Sleep
(100)
    
WEnd
EndFunc 
bingbongman is offline  
Old 06/12/2009, 11:28   #11
 
Knochenfabrikant's Avatar
 
elite*gold: 13
Join Date: Apr 2008
Posts: 4,278
Received Thanks: 573
#Reported.
Knochenfabrikant is offline  
Old 06/12/2009, 12:05   #12
 
elite*gold: 0
Join Date: May 2009
Posts: 264
Received Thanks: 43
is des dann alles so richtig?????

Quote:
HotKeySet ("{0}", "Start")

HotKeySet ("{9}", "pause")

while 1

Sleep(100)

WEnd

Func Start()

while True

Send(" 1 y 2 y 3 y 4 y")

Sleep(60)

WEnd

EndFunc

Global $Paused

Func pause()

$Paused = Not $Paused

While $Paused

Sleep(100)

WEnd

EndFunc
flothekilla94 is offline  
Old 06/12/2009, 12:18   #13
 
elite*gold: 0
Join Date: Dec 2007
Posts: 137
Received Thanks: 30
Quote:
Originally Posted by flothekilla94 View Post
is des dann alles so richtig?????
Funktioniert´s denn nicht?
bingbongman is offline  
Old 06/12/2009, 13:27   #14
 
elite*gold: 0
Join Date: May 2009
Posts: 264
Received Thanks: 43
ne geht ned immer wenn ich 9 drück kommt diese fehlermeldung
und die datei wird beendet

Quote:
error 1:varibale used without being declared
flothekilla94 is offline  
Old 06/12/2009, 13:48   #15
 
elite*gold: 0
Join Date: Dec 2007
Posts: 137
Received Thanks: 30
PHP Code:
HotKeySet ("{0}""Start")
HotKeySet ("{9}""pause")

Global 
$Paused 
while 1

Sleep
(100)

WEnd

Func Start
()

while 
True

Send
(" 1 y 2 y 3 y 4 y")

Sleep(60)

WEnd

EndFunc



Func pause
()

$Paused Not $Paused

While $Paused

Sleep
(100)

WEnd

EndFunc 
So sollte es klappen.
bingbongman is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
[AutoIt] HOTKEY BRAUCHE HILFE
07/01/2010 - AutoIt - 10 Replies
mein problem ist: Ich hab gelesen das wenn man ein hotkeyset einstellt immer while 1 drin sein muss doch ich möchte, das wenn man z.B. "n" drückt, dann wird das "n" gelöscht mit backspace, und dann mit send ("Günter") nur wenn ich den script starte dann passiert folgendes--> "n" wird gelöscht und die ganze zeit Günter geschrieben!!!! mein code HotKeySet ("n","name")
AutoIt Hotkey ergänzung
06/05/2010 - AutoIt - 10 Replies
Trotz einiger recherche finde ich einfach nicht heraus wie ich wietere Hotkey ergänzen kann könntet ihr das pls tun? Hier mein Code er funktioniert schonmal. HotKeySet("{ESC}","close") While 1 MouseClick("left", 204,600,10) Sleep(3000) MouseClick("left",715,508,10) Sleep(5000) MouseClick("left",211,620,10) Sleep(3000)
[HELP]AutoIt - RICHTIG Hotkey setzten
04/16/2010 - AutoIt - 4 Replies
also wie die überschrift schon sagt (und mein spoiler Meine WICHTIGEN Ziele bin ich ja noch ein anfänger) brauche ich hilfe um (RICHTIG) einen hotkey zu setzten!! wofür???: ich habe mir in autoit einen autocklicker gebastelt (NUR linkscklick) und der is halt schwer zu beenden wenn man unten rechts neben der uhr auf Exit klicken will hier der code: #RequireAdmin MsgBox(64, Autocklicker", "Zum beenden Alt und E drücken") HotKeySet("!e")



All times are GMT +1. The time now is 14:58.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.