Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 09:31

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

Advertisement



[AutoIT] Problem

Discussion on [AutoIT] Problem within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1

 
Njahs's Avatar
 
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
Njahs is offline  
Old 09/30/2011, 18:12   #2

 
Njahs's Avatar
 
elite*gold: 574
Join Date: Nov 2010
Posts: 2,498
Received Thanks: 726
ok hat sich geklärt ....
#closerequest
Njahs is offline  
Old 10/02/2011, 13:37   #3
 
elite*gold: 0
The Black Market: 126/1/0
Join Date: Apr 2011
Posts: 2,514
Received Thanks: 702
Quote:
Originally Posted by Njahs View Post
Mit AutoIT angefangen ein Multitool zu "programmieren".
Ah, autoit und programmieren in einem Satz :O
Prestino is offline  
Old 10/02/2011, 13:40   #4
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
Quote:
Originally Posted by EpicF4ilx3 View Post
Ah, autoit und programmieren in eine Satz :O
heul doch :O
omer36 is offline  
Old 10/02/2011, 14:25   #5
 
elite*gold: 0
The Black Market: 126/1/0
Join Date: Apr 2011
Posts: 2,514
Received Thanks: 702
Mach ich :O
Prestino is offline  
Reply




All times are GMT +1. The time now is 09:32.


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.