Register for your free account! | Forgot your password?

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

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

Advertisement



Pause Funktion

Discussion on Pause Funktion within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2012
Posts: 28
Received Thanks: 3
Pause Funktion

Hey leute,
bin neu in Programmierung und wollte mal fragen, wie ich bei HotKeySet eine Start und Pause funktion machen kann, mit dem ein und selben Hotkey:

Code:
HotKeySet("{F1}", "_start")

Func _start()
While 1
WinWaitActive("Darkorbit")
Send("4")
Sleep(3210)
Send("5")
WEnd
EndFunc
Hoffe, das weis jmd hier

~RD~
~RD~ is offline  
Old 12/24/2012, 22:34   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 52
Received Thanks: 2
Code:
Global $Pause = True
Func _PauseAnAus() 
        $Pause = Not $Pause
EndFunc
einfach der funktion einen hotkey zuweisen
und ab geht der fisch
wertron is offline  
Thanks
2 Users
Old 12/28/2012, 13:57   #3
 
elite*gold: 0
Join Date: Dec 2008
Posts: 371
Received Thanks: 115
Versuch das mal:
Code:
$startpause = 0
HotKeySet("{F1}", "_start")

Func _start()
if $startpause = 0 then
$startpause = 1
While 1
WinWaitActive("Darkorbit")
Send("4")
Sleep(3210)
Send("5")
WEnd
else
$startpause = 0
while 1
sleep(1)
wend
Endif
EndFunc
die logik dahinter:
Code:
$startpause wird auf 0 gesetzt
wenn der hotkey gedrückt wird dann wird die funktion start gestartet.
wenn in der variable $startpause eine 0 drinne ist dann
$startpause wird auf 1 gesetzt
normaler code wird ausgeführt
und wenn in $startpause keine 0 drinne ist dann
$startpause wird auf 0 gesetzt
while schleife
wartet 1 millisekunde
schleife ende
MFG die0unddie1
isaias is offline  
Reply


Similar Threads Similar Threads
Pause - Ende Funktion geht nicht
01/05/2012 - AutoIt - 3 Replies
Hey AutoIt-ler aus e*PvP ich habe einen kleinen Spambot gebaut ... aber ich scheitere an der 'Pause' und an der 'Ende' Funktion ... kann auch sein dass es sehr simpel ist xD aber ich komme nicht drauf Script #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3>
[04.11.10]SonyX Dinar Bot[mit pause...start und beenden Funktion]
11/13/2010 - WarRock Hacks, Bots, Cheats & Exploits - 18 Replies
Dinar Bot >>Starte Warrock >>Zombie Server >>passwort room >>Bot starte (Windows7 und Vista als administrator) >>und S für start drücken >>und P für Pause >>und Esc zum beenden



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


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