Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:07

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

Advertisement



Bessere start / stop funktion?

Discussion on Bessere start / stop funktion? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
xF4ke :þ's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,273
Received Thanks: 1,268
Bessere start / stop funktion?

hallo ich bräuchte ne bessere PAUSE funktion für meinen bot

miene jetzige funktion sieht so aus:

PHP Code:
func pause ()
while 
1
wend
EndFunc 
xD man merkt's sie ist sehr simpel gehalten
ich bräuchte aber eine die die momentane funktion (z.B. spambot) nur pausiert und bei Wiederholung der taste weiter macht
gibts da ne möglichkeit ohne das ich gleich den ganzen quellcode poste? :P
xF4ke :þ is offline  
Old 09/09/2011, 19:22   #2
 
elite*gold: 0
Join Date: Jun 2011
Posts: 96
Received Thanks: 21
ich kenne keine autoIt syntax, aber vom prinzip würde ich es so machen:

eine globale variable nehmen z.B
bool pause = false;

dann bauste die while schleife so auf :

while pause
Sleep(100)
wend

Wenn jetzt deine Pause-Taste gedrückt wird, schaltest du einfach pause immer zwischen true und false hin und her.
kurrbis is offline  
Thanks
1 User
Old 09/09/2011, 19:29   #3
 
xF4ke :þ's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,273
Received Thanks: 1,268
omg xD
da hab ich überhaupt nicht dran gedacht

mal gucken obs klappt ^^
danke

€: Klappt nicht :>
xF4ke :þ is offline  
Old 09/09/2011, 21:14   #4
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
mach $pause = true

while $pause = false
blaBLA
wend
und dann wenn du auf den button start drückst machst also: case $button1 $pause = false
Ludder231 is offline  
Old 09/11/2011, 02:42   #5

 
FichteFoll's Avatar
 
elite*gold: 237
Join Date: Sep 2008
Posts: 4,476
Received Thanks: 4,587
PHP Code:
Main()

Func Main()
    While 
1
        
irgendetwas
    WEnd
EndFunc

Funktion, die eine Schleife ausführt und alle anderen Funktionen unterbrichtaufrufbar durch zB HotKeySet
Func _Pause
()
    Do
        
Sleep(100)
    
Until Bedingungbei der weitergemacht werden sollzB _IsPressed
    
Alternativ kann auch eine MsgBox benutzt werden, die den Prozess fotsetztsobald sie geschlossen wurde
EndFunc 
FichteFoll is offline  
Reply


Similar Threads Similar Threads
[ESRO]Start client, login, select character, click start and stop...
06/23/2011 - SRO Private Server - 1 Replies
Okay, so whats up with that new thing when you get to select character screen, when you click start it does nothing? DONT JUST SAY SAME, I know you have the same problem... You can thank me if you have the same problem tho... :P
Hilfe bei Send Funktion mit Stop Funktion
04/02/2011 - AutoIt - 11 Replies
Hallo Elitepvpers ich habe ein Problem und Mein Problem ist das mein Text einfach weiter schreibt wenn ich mit HotKey verwende... gib es keine Funktion das der Text einmal kommt und nicht wenn man einmal die HotKey das er 10 min das selbe schreibt :confused:
[Request] How to stop auto start
02/03/2010 - Grand Chase - 9 Replies
Using The Brian and his group hack (sorry dont know other names) for the IPUC hack. But i cant stop auto start someone plz tell me how to stop. IF someone does help thank and i will do this :handsdown: XD.
Stop Leeching, Start Learning
02/16/2008 - Metin2 - 6 Replies
Just wondering, maybe we should start a learning/teaching thread for people to post tutorials or request explanations on how things work etc. I, for one, would be very interested on how Gex001 makes his teleporters, hack packs, and so on..



All times are GMT +1. The time now is 17:08.


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.