Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 23:48

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

Advertisement



AutoIt sendet bei verwendung einer GUI immer nur "4"!! Hilfe

Discussion on AutoIt sendet bei verwendung einer GUI immer nur "4"!! Hilfe within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2008
Posts: 86
Received Thanks: 29
AutoIt sendet bei verwendung einer GUI immer nur "4"!! Hilfe

Hi,
hier erst mal meine Source:

Code:
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

HotKeySet ("{Insert}", "start")
HotKeySet ("{Delete}", "stop")
HotKeySet ("{End}" , "ende")



ToolTip ("Hotkeys: Einfg: Starten; Entf: Stoppen; Ende: Beenden", 1, 1, "Hotkeys", 1)

#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\Alex\Desktop\AutoIts\PotBot\Nue.kxf
$Form1 = GUICreate("Form1", 329, 87, 191, 125)
$Input1 = GUICtrlCreateInput("PotRate in ms (1000ms = 1 Sekunde)", 8, 8, 313, 28)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
$Input2 = GUICtrlCreateInput("Hotkeys (nicht ^ und ! benutzen!!)", 8, 48, 313, 28)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
			
	

	EndSwitch
WEnd



Func start()
	ToolTip ("")
	
	While 1
	Send ($input2)
	Sleep ($input1)
	
WEnd

EndFunc


Func stop()
	ToolTip ("Hotkeys: Einfg: Starten; Entf: Stoppen; Ende: Beenden")
	
	While 1
		Sleep (1000)
	WEnd
	
EndFunc




Func ende()
	Exit
EndFunc
Wenn ich das geschriebene nun Ausführe, und in $input1 in der GUI den Sleep-Intervall und in $input2 einen gewünschten Hotkey eingebe und dann Einfg zum starten drücke wird IMMER nur der Befehl "4" gesendet.

Egal was ich eingebe.

Hab auch schon verschiedene Buttons und anderes zum Starten reingebaut, aber es wird immer nur die Taste "4" gesendet.

Bitte um Hilfe

/HipTheHop
HipTheHop is offline  
Old 07/05/2009, 15:47   #2


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
du musst guictrlread verwenden.
also
Code:
sleep(guictrlread($input1))
send(guictrlread($input2))
andernfalls sendest du nur die id des control's, indem fall 4.
und ein sleep(3) bringt dir auch nicht viel.
buFFy! is offline  
Old 07/05/2009, 16:10   #3
 
elite*gold: 0
Join Date: Nov 2008
Posts: 86
Received Thanks: 29
Dankeschön.

Bin noch sehr neu auf dem Gebiet von GUI, hab vor 2 Tagen damit angefangen.

Jetz weiß ich es. Funktioniert auch alles gut
HipTheHop is offline  
Old 07/05/2009, 17:34   #4
 
felixli93's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 820
Received Thanks: 909
GuiCtrlCreate... returned immer eine GUI Id, nicht das, was tatsächlich drinsteht.
zum auslesen von Gui-Elementen wird GuiCtrlRead verwendet!
felixli93 is offline  
Old 07/12/2009, 19:14   #5
 
elite*gold: 0
Join Date: Nov 2008
Posts: 86
Received Thanks: 29
Kann geclosed werden
HipTheHop is offline  
Reply


Similar Threads Similar Threads
Autoit Script "Hilfe"!
09/02/2010 - General Coding - 14 Replies
Hi ich bin ein Totaler autoit Neuling und brauche eure hilfe ich habs selber nun 2 tage lang versucht aber i-wie bin ich zu blöd dafür ich brauche ein Autoit Script was alle 10-15 min eine bestimmte HP anwählt auf einer bestimmten stelle Linke Maustaste drückt und dann Enter kann mir jemand helfen wie muss das aussehen;)? mfG raffmich
Bot sendet "602", soll aber nur "6" senden
12/01/2009 - AutoIt - 8 Replies
Guden, bin grade dabei mir einen kleinen Bot zu basteln, der mich alarmiert (pn Bot) wenn ich angeschrieben werde und mich bei einer bestimmten Prozentzahl meines Lebens und Mana automatisch Healt. Hier der Bot: #include <Sound.au3> #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3>



All times are GMT +1. The time now is 23:51.


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.