You last visited: Today at 15:24
Advertisement
[AutoIT] Problem
Discussion on [AutoIT] Problem within the General Coding forum part of the Coders Den category.
09/28/2011, 19:41
#1
elite*gold: 574
Join Date: Nov 2010
Posts: 2,498
Received Thanks: 726
[AutoIT] Problem
Guten tag liebe coder freunde
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
#2
elite*gold: 574
Join Date: Nov 2010
Posts: 2,498
Received Thanks: 726
ok hat sich geklärt ....
#closerequest
10/02/2011, 13:37
#3
elite*gold: 0
Join Date: Apr 2011
Posts: 2,514
Received Thanks: 702
Quote:
Originally Posted by
Njahs
Mit AutoIT angefangen ein Multitool zu "programmieren".
Ah, autoit und programmieren in einem Satz :O
10/02/2011, 13:40
#4
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
Quote:
Originally Posted by
EpicF4ilx3
Ah, autoit und programmieren in eine Satz :O
heul doch :O
10/02/2011, 14:25
#5
elite*gold: 0
Join Date: Apr 2011
Posts: 2,514
Received Thanks: 702
Mach ich :O
All times are GMT +2. The time now is 15:25 .