Register for your free account! | Forgot your password?

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

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

Advertisement



Start über Hotkey?

Discussion on Start über Hotkey? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1



 
xShizoidx's Avatar
 
elite*gold: 0
The Black Market: 279/0/0
Join Date: Feb 2011
Posts: 1,342
Received Thanks: 410
Start über Hotkey?

Guten Tag,

ich habe einen kleinen Bot über Autoit geschrieben und würde es nun gerne so einstellen, das der Bot erst anfängt, nachdem ich ein Hotkey gedrückt habe.

Z.B. Wenn ich Hotkey F7 drücke startet der bot

und wenn ich Hotkey F8 drücke beendet es

Danke im voraus.

MfG netterwurm8
xShizoidx is offline  
Old 04/19/2011, 14:25   #2
 
TrickGamer's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 487
Received Thanks: 196
PHP Code:
Hotkeyset("{F7}","_Start")
Hotkeyset("{F8}","_Exit")

While 
1
wend

Func _Start
()
;
Dein Bot Code
Endfunc

Func _Exit
()
Exit
Endfunc 
so?
TrickGamer is offline  
Thanks
1 User
Old 04/19/2011, 14:33   #3



 
xShizoidx's Avatar
 
elite*gold: 0
The Black Market: 279/0/0
Join Date: Feb 2011
Posts: 1,342
Received Thanks: 410
Genau das habe ich gesucht Viele Dank

Kannst du mir vielt auch sagen, wie ich das mit dem Befehlen wiederholen bzw. Schleife mache? Ich kapier es nicht, wo ich den Code reinpacken soll und wo ich einstellen kann, wie oft er es wiederholt.

Danke im voraus.

MfG Netterwurm8
xShizoidx is offline  
Old 04/20/2011, 15:51   #4
 
TrickGamer's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 487
Received Thanks: 196
PHP Code:
Hotkeyset("{F7}","_Start")
Hotkeyset("{F8}","_Exit")

While 
1
wend

Func _Start
()
while 
1    ;< anfang der schleife
;Dein Bot Code der sich wiederholen soll
wend      
;< ende der schleife
Endfunc

Func _Exit
()
Exit
Endfunc 
TrickGamer is offline  
Old 04/20/2011, 17:16   #5
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
niemals mit mehr als einer endlosschleife arbeiten

solltest dir besser gleich angewöhnen mit zuständen zu arbeiten:
Code:
HotKeySet('{F1}', 'ChangeState')

Dim $run = False

While Sleep(10)
	If $run Then
		ConsoleWrite('Script is running...'&@CRLF)
	EndIf
WEnd

Func ChangeState()
	$run = Not $run
EndFunc
lolkop is offline  
Reply


Similar Threads Similar Threads
Hotkey Hack
03/06/2011 - Combat Arms Hacks, Bots, Cheats & Exploits - 2 Replies
This is a hotkey hack that I leeched, some of you may want it. Features: NumPad 0 = * Frame Per Second NumPad 1 = * No Recoil(including no sway) NumPad 2 = * No Reload NumPad 3 = * No Spread NumPad 4 = * No Cam Damage NumPad 5 = * Super Bullets
hotkey
07/22/2010 - WarRock - 4 Replies
hay wollte wissen wie ist der hotkey zum einen blocken?
Hotkey Für VB 6
07/05/2010 - WarRock - 6 Replies
hi leute ich hab ein problem. also: ich möchte für meinen hack hotkeys anlegen die auch funktionieren wenn der hack im hintergrund ist.(also man in warrock zockt^^.) das bräuchte ich zum beispiel für superjump und sky stormer. kann mir evtl. jemand behilflich sein??? mfg noobnoob4
Start Npc(also start Equiqment)und wie connectet man(Navicat)
05/02/2010 - WoW Private Server - 1 Replies
Hallo Elitepvpers, ich hoffe ich bin hier im richtigen Forum. Wie macht man einen Npc für start Equiqment? und wie connectet man in Navicat(for MySQL)? danke im vorraus:handsdown::handsdown:
Metin2 + Angelbot Start über Autoit >FAIL<!
04/14/2010 - AutoIt - 3 Replies
Tagle, Hab bissl mit AutoIt rumgespielt... ;) Immer wen ich Metin2 über Autoit starten will kommt: patchserverlist Verbindungsfehler (fehlercode=CF87) kp ob jetzt das prob bei metin2 is oder bei autoit^^



All times are GMT +2. The time now is 14: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.