[AutoIT] Problem

09/28/2011 19:41 Njahs#1
Guten tag liebe coder freunde :D

Habe vor genau 4 Tagen mit AutoIT angefangen , also noch ein anfänger ,
und hatte mir vorgenommen , ein Multitool zu "programmieren".

Meine erste version funktioniert einwandfrei , doch diese enthilt nur msgbox und inputbox...
Also habe ich mich an eine GUI drangesetzt.
Die Gui steht , aber ich weiss nicht , wie ich die funktionen einbauen soll.

Code:
#include <ButtonConstants.au3> 
#include <EditConstants.au3> 
#include <GUIConstantsEx.au3> 
$Form1 = GUICreate("Menue", 367, 250, 250, 150)
GUICtrlCreateList ("Version 0.1", 150, 40, 60, 80)
$a = GUICtrlCreateButton("Autoklicker", 30, 120, 60, 25) 
GUISetState(@SW_SHOW)
$panic = GUICtrlCreateButton("Panicmode", 150, 120, 60, 25) 
GUISetState(@SW_SHOW)
$plbutton = GUICtrlCreateButton("Platzhalter", 270, 120, 60, 25) 
GUISetState(@SW_SHOW)
$menu2 = GUICtrlCreateButton("Seite 2", 150, 170, 60, 25) 
GUISetState(@SW_SHOW)

$nMsg = GUIGetMsg()

HotKeySet  ("^!d", "funktion")

Func funktion()
Exit
EndFunc

While 1
 $nMsg = GUIGetMsg() 
 if $nMsg=$GUI_EVENT_CLOSE then msgbox (48, "Zugriff verweigert","Ihnen wurde der Zugriff zu diesem Programm verweigert , da es von einer anderen Person benutzt wird.")	 
	
 if $nMsg=$a Then 

 $ak = GUICreate("Autoklicker", 367, 250, 250, 150)
 GUICtrlCreateList ("Version 0.1", 150, 40, 60, 80)
 $akC = GUICtrlCreateButton("Creative", 150, 120, 60, 25) 
 GUISetState(@SW_SHOW)
 $akS = GUICtrlCreateButton("Survival", 150, 170, 60, 25) 
 GUISetState(@SW_SHOW)
 GuiDelete ( $Form1)
Endif

 if $nMsg=$panic Then 

 $pm = GUICreate("Panic Mode", 367, 250, 250, 150)
 GUICtrlCreateList ("Version 0.1", 150, 40, 60, 80)
 $pEasy = GUICtrlCreateButton("Easy", 150, 120, 60, 25)  
 GUISetState(@SW_SHOW)
 $pHard = GUICtrlCreateButton("Hard", 150, 170, 60, 25)  
 GUISetState(@SW_SHOW)
 GuiDelete ( $Form1)
 Endif

 if $nMsg=$plbutton Then 
	
 $x = GUICreate("----", 367, 250, 250, 150)
 GUICtrlCreateList ("Version 0.1", 150, 40, 60, 80)
 GuiDelete ( $Form1)
 Endif

 if $nMsg=$menu2 Then 
	
 $s2 = GUICreate("Menue S.2", 367, 250, 250, 150)
 GUICtrlCreateList ("Version 0.1", 150, 40, 60, 80)
 $plbutton3 = GUICtrlCreateButton("Platzhalter", 30, 120, 60, 25) 
 GUISetState(@SW_SHOW)
 $plbutton4 = GUICtrlCreateButton("Platzhalter", 150, 120, 60, 25) 
 GUISetState(@SW_SHOW)
 $plbutton5 = GUICtrlCreateButton("Platzhalter", 270, 120, 60, 25) 
 GUISetState(@SW_SHOW)
 $credits = GUICtrlCreateButton("Credits", 150, 170, 60, 25) 
 GUISetState(@SW_SHOW)
 GuiDelete ( $Form1)
 
 Endif
WEnd
So , nun will ich z.b.

Quote:
If $nMsg=$credits Then
GuiDelete ( $s2)
Msgbox (48, "Credits", "Credits gehen zu: xxx @Elitepvper.de")
Endif
Als ausgabe haben , wenn man den button $credits drückt , doch wenn ich dies in die While schleife einfüge , kommt , wenn ich auf den Button drücke , nichts...

Jede hilfreiche antwort bekommt natürlich auch ein Danke!

Mfg Njahs
09/30/2011 18:12 Njahs#2
ok hat sich geklärt ....
#closerequest
10/02/2011 13:37 Prestino#3
Quote:
Originally Posted by Njahs View Post
Mit AutoIT angefangen ein Multitool zu "programmieren".
Ah, autoit und programmieren in einem Satz :O
10/02/2011 13:40 omer36#4
Quote:
Originally Posted by EpicF4ilx3 View Post
Ah, autoit und programmieren in eine Satz :O
heul doch :O
10/02/2011 14:25 Prestino#5
Mach ich :O