Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 03:32

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

Advertisement



2 Autoit scripts zu einem machen HILFE

Discussion on 2 Autoit scripts zu einem machen HILFE within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 60
Join Date: Sep 2010
Posts: 20
Received Thanks: 0
2 Autoit scripts zu einem machen HILFE

Hallo ich wollt mal fragen wie man diese beiden Scripts zu einem macht. Bin sehr neu im Autoit berreich und kenn mich so gut wie garnicht mit Autoit aus.^^

Code:
HotKeySet ("{NUMPADMULT}", "Start")
HotKeySet ("{numpadsub}", "_Exit")

While 1
	Sleep(250)
WEnd

Func Start()
	While 1
		$pos = PixelSearch(217,186,1574,885,15721686,1)
		If isArray($pos) then
			MouseMove($pos[0],$pos[1],0)
			MouseClick("Right")
		EndIf
	WEnd
EndFunc

Func _Exit()
	Exit
EndFunc
&
Code:
HotKeySet ("{NUMPADMULT}", "Start")
HotKeySet ("{numpadsub}", "_Exit")

While 1
	Sleep(250)
WEnd

Func Start()
	While 1
		$pos = PixelSearch(778,461,977,487,16777215,1)
		If isArray($pos) then
			MouseMove($pos[0],$pos[1],0)
			MouseClick("Left")
		EndIf
	WEnd
EndFunc

Func _Exit()
	Exit
EndFunc
Alle 120 Sekunden sollte sich das ganze Wiederholen.

Wäre echt net wenn mir einer weiterhelfen könnte

MfG.
stev123 is offline  
Old 01/12/2014, 16:37   #2
 
Beni's Avatar
 
elite*gold: 0
The Black Market: 171/0/0
Join Date: Jul 2009
Posts: 3,269
Received Thanks: 786
Sleep(Zeit in Millisekunden)

und dann einfach ne Endlosschleife machen. [Ich würde aber sagen bau dir zur Sicherheit nen Button ein, der das ganze Beendet..]
und in dem einen Script das andere aufrufen...
Beni is offline  
Thanks
1 User
Old 01/12/2014, 16:43   #3
 
elite*gold: 60
Join Date: Sep 2010
Posts: 20
Received Thanks: 0
Ich versteh das nicht so ganz, könntest du es mir genauer erklären?
stev123 is offline  
Old 01/12/2014, 17:00   #4
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Sehr schlecht aber sollte reichen. Das mit dem Sleep kannste ja selber einbauen.

Code:
HotKeySet ("{NUMPADMULT}", "Start")
HotKeySet ("{numpadsub}", "_Exit")

While 1
	Sleep(250)
WEnd

Func Start()
	While 1
		$pos = PixelSearch(217,186,1574,885,15721686,1)
		If isArray($pos) then
			MouseMove($pos[0],$pos[1],0)
			MouseClick("Right")
		EndIf
		$pos = ""
		$pos = PixelSearch(778,461,977,487,16777215,1)
		If isArray($pos) then
			MouseMove($pos[0],$pos[1],0)
			MouseClick("Left")
		EndIf
		$pos = ""
	WEnd
EndFunc

Func _Exit()
	Exit
EndFunc
alpines is offline  
Thanks
1 User
Old 01/12/2014, 17:02   #5
 
elite*gold: 60
Join Date: Sep 2010
Posts: 20
Received Thanks: 0
danke funktioniert aber wie kann ich das jetz machen damit sich das alle 120 Sekunden wiederholt?
stev123 is offline  
Old 01/12/2014, 20:47   #6
 
mo.tennis's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 178
Received Thanks: 4
einfach das sleep() einfügen^^
Code:
HotKeySet ("{NUMPADMULT}", "Start")
HotKeySet ("{numpadsub}", "_Exit")

While 1
	Sleep(250)
WEnd

Func Start()
	sleep(120000)
         While 1
		$pos = PixelSearch(217,186,1574,885,15721686,1)
		If isArray($pos) then
			MouseMove($pos[0],$pos[1],0)
			MouseClick("Right")
		EndIf
		$pos = ""
		$pos = PixelSearch(778,461,977,487,16777215,1)
		If isArray($pos) then
			MouseMove($pos[0],$pos[1],0)
			MouseClick("Left")
		EndIf
		$pos = ""
	WEnd
EndFunc

Func _Exit()
	Exit
EndFunc
mo.tennis is offline  
Old 01/12/2014, 20:53   #7
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Das hat mit Wiederholung sicherlich nicht viel zu tun, er jumpt in die Schleife nach 120 Sekunden... Er will wahrscheinlich das wenn der Bot einmal rechtsklickt nach 120 Sekunden wieder dasselbe tut.
alpines is offline  
Old 01/12/2014, 21:13   #8
 
elite*gold: 60
Join Date: Sep 2010
Posts: 20
Received Thanks: 0
Ganz genau nur ich weiß jetz net wie das gehen soll.
stev123 is offline  
Old 01/13/2014, 05:29   #9
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Code:
HotKeySet ("{NUMPADMULT}", "Start")
HotKeySet ("{numpadsub}", "_Exit")

While 1
	Sleep(250)
WEnd

Func Start()
         While 1
		$pos = PixelSearch(217,186,1574,885,15721686,1)
		If isArray($pos) then
			MouseMove($pos[0],$pos[1],0)
			MouseClick("Right")
		EndIf
		$pos = ""
                sleep(120000)
		$pos = PixelSearch(778,461,977,487,16777215,1)
		If isArray($pos) then
			MouseMove($pos[0],$pos[1],0)
			MouseClick("Left")
		EndIf
		$pos = ""
	WEnd
EndFunc

Func _Exit()
	Exit
EndFunc
frage nebenbei: Muss man $pos immer "leeren" ? PixelSearch würde das doch einfach überschreiben oder nicht?
YatoDev is offline  
Old 01/13/2014, 07:24   #10
 
Gotoxy's Avatar
 
elite*gold: 35
Join Date: Aug 2007
Posts: 460
Received Thanks: 114
PixelSearch gibt die Koordinaten des ersten Pixels mit den gegebenen Werten zurück.
Sollte es keinen Pixel geben = keine koordinaten.

Würdest du die Variable nicht leeren, würdest du auf alte Koordinaten klicken.
Gotoxy is offline  
Old 01/13/2014, 14:12   #11
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
FlutterShy, deins ist nicht richtig.
So ist das was er meint, nur blockiert es dabei die andere Anfrage.
Das mit $pos = "" hab ich absichtlich gemacht, hab das Script nicht getestet und wollte nur sichergehen.
Man müsste eine Funktion triggern die einen Count-Down jede Sekunde abprüft (Funktion triggern, TimerInit -> AdlibRegister) und nach dem das erreicht wurde einfach LClicken oder RClicken und dann Unregister.
Code:
HotKeySet ("{NUMPADMULT}", "Start")
HotKeySet ("{numpadsub}", "_Exit")

While 1
	Sleep(250)
WEnd

Func Start()
         While 1
		$pos = PixelSearch(217,186,1574,885,15721686,1)
		If isArray($pos) then
			MouseMove($pos[0],$pos[1],0)
			MouseClick("Right")
			Sleep(120000)
			MouseClick("Right")
		EndIf
		$pos = ""
		$pos = PixelSearch(778,461,977,487,16777215,1)
		If isArray($pos) then
			MouseMove($pos[0],$pos[1],0)
			MouseClick("Left")
			Sleep(120000)
			MouseClick("Left")
		EndIf
		$pos = ""
	WEnd
EndFunc

Func _Exit()
	Exit
EndFunc
alpines is offline  
Reply


Similar Threads Similar Threads
[HowTo]Autoit Scripts undetected machen!
08/01/2012 - S4 League Hacks, Bots, Cheats & Exploits - 26 Replies
German: Hallo liebe Community, heute hab ich herausgefunden wie man kostenlos Autoit Scripts undetected macht! Was brauchen wir? -Resource Hacker



All times are GMT +1. The time now is 03:33.


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.