Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 15:54

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

Advertisement



AotoIt Frage

Discussion on AotoIt Frage within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Lik3's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 133
Received Thanks: 4
AotoIt Frage

HotKeySet("{F11}", "Starten")
HotKeySet("{F10}", "Programmbeenden")




Func Programmbeenden()
Exit
EndFunc

Func Starten()
While
WEnd
EndFunc
While True
MouseClick("right", 1005, 435, 1, 5 )
Sleep(100)
MouseClick("left" ,1046, 402 , 1, 5 )
Sleep(10000)
WEnd


So was muss ich machen das sich das script startet wenn ich F11 Drücke bekomme das nicht hin und z.b. mit F9 pausieren kann was müsste ich da noch einfügen das es funktioniert ps es sollte nach dem pausieren wieder mit F11 startbar sein können oder wieder mit F9 die pause zu entfernen danke für eure hilfe schon mal
Lik3 is offline  
Old 01/29/2013, 05:32   #2
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
Quote:
Originally Posted by Lik3 View Post
HotKeySet("{F11}", "Starten")
HotKeySet("{F10}", "Programmbeenden")




Func Programmbeenden()
Exit
EndFunc

Func Starten()
While
WEnd
EndFunc
While True
MouseClick("right", 1005, 435, 1, 5 )
Sleep(100)
MouseClick("left" ,1046, 402 , 1, 5 )
Sleep(10000)
WEnd


So was muss ich machen das sich das script startet wenn ich F11 Drücke bekomme das nicht hin und z.b. mit F9 pausieren kann was müsste ich da noch einfügen das es funktioniert ps es sollte nach dem pausieren wieder mit F11 startbar sein können oder wieder mit F9 die pause zu entfernen danke für eure hilfe schon mal
arbeite mit zuständen... definiere dir einen pause zustand, zb in einer variable namens $pause.
nun brauchst du nurnoch in einer endlosschleife schauen, ob $pause wahr oder falsch ist. ist $pause wahr, so machst du nichts, ist pause falsch, so machst du deine gewünschten aktionen.

den zustand von pause kannst du mit "$pause = not $pause" einfach in den jeweils anderen zustand ändern.

Code:
HotKeySet("{F11}", "Pause")
HotKeySet("{F10}", "Ende")

Dim $pause = True

While True
	If Not $pause Then
		MouseClick("right", 1005, 435, 1, 5 )
		Sleep(100)
		MouseClick("left" ,1046, 402 , 1, 5 )
		Sleep(10000)
	EndIf
WEnd

Func Pause()
	$pause = Not $pause
EndFunc

Func Ende()
	Exit
EndFunc
lolkop is offline  
Thanks
1 User
Old 01/29/2013, 05:49   #3
 
Lik3's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 133
Received Thanks: 4
Ah cool ist starte und pausierte das ja nun mit F11 danke dir und cool wie schnell die antwot da war
Lik3 is offline  
Reply


Similar Threads Similar Threads
AotoIt Frage
02/01/2013 - AutoIt - 6 Replies
HotKeySet("{F11}", "Starten") HotKeySet("{F10}", "Programmbeenden") Func Programmbeenden() Exit EndFunc
AotoIT pixle help please
06/28/2012 - AutoIt - 1 Replies
Im working on my first bot and my issue so far is im nubbing it up thinking about this wrong and cant figure out how to do this one part with pixel search I wanna find the pixel (done) Send my commands(done) When that pixel is gone send a diff command(promblem) So I wanna find the HP bar if its red send me attacks when the red is gone send TAB (lock next target) I tryed a few things and i just not sure why it wont work. DO



All times are GMT +1. The time now is 15:54.


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.