[Hilfe]Autoit

06/23/2010 14:56 Killermufin#1
hallo....

habe gestern mal angefangen eautoit zu lernen....
und möchte nun zu mien pickup bot ein fenster zu fügen nur wie?
es sollt ungefähr so ausehen:

[Only registered and activated users can see links. Click Here To Register...]

hier mien code:
Code:
HotKeySet ( "{F8}" , "Start" )
HotKeySet ( "{F9}" , "Ende" )
HotKeySet("{Pause}", "Pause")

Func Start ()
While 1
Sleep (1)
Send ( "{y down}")
Send ( "{y up}")
WEnd
EndFunc


Func Ende ()
Exit
EndFunc

Func Pause()
Sleep(1)
EndFunc

While 1
sleep (1)
WEnd
06/23/2010 15:28 black_byte#2
Schau die mal in der Hilfe die GUI funktionen an.

MfG Xxx Daniel xxX
06/23/2010 15:29 Killermufin#3
was ist gui??
06/23/2010 15:35 black_byte#4
[Only registered and activated users can see links. Click Here To Register...]

MfG Xxx Daniel xxX
06/23/2010 15:35 bladerofdarknes#5
Killermufin
die benutzeroberflächer also das fenster

Quote:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$PickUp = GUICreate("PickUp Bot", 167, 183, 192, 124)
$Button1 = GUICtrlCreateButton("PickUp", 24, 16, 121, 49)
$Button2 = GUICtrlCreateButton("Pause", 24, 88, 121, 49)
GUISetState(@SW_SHOW)


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

EndSwitch
WEnd

[Only registered and activated users can see links. Click Here To Register...]
06/23/2010 15:53 _sh0x#6
Benutz mal Koda Designer! Google einfach mal damit kannst du Fenster erstellen und so weiter! Und hier ist dein Code:
06/23/2010 16:22 bladerofdarknes#7
koda im anhang
06/23/2010 16:31 Smincke2#8
Code:
#NoTrayIcon
Global $Pickup = False
$Form1 = GUICreate("", 79, 115, 192, 124, -2067267584)
$Button1 = GUICtrlCreateButton("Pickup", 0, 0, 79, 49, 0)
$Button2 = GUICtrlCreateButton("Pause", 0, 50, 79, 49, 0)
$Label1 = GUICtrlCreateLabel("Paused...", 16, 100)
GUISetState(@SW_SHOW)

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case -3
			Exit
		Case $Button1
			GUICtrlSetData($Label1, "Started...")
			$Pickup = True
		Case $Button2
			GUICtrlSetData($Label1, "Paused...")
			$Pickup = False
	EndSwitch
	If $Pickup = True Then
		Send("{y down}")
		Send("{y up}")
	EndIf
WEnd