Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 12:27

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

Advertisement



Problem mit Menüleiste.

Discussion on Problem mit Menüleiste. within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
nicobellic's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 153
Received Thanks: 12
Problem mit Menüleiste.

Hallo,
Ich hab da ein Problem bei Autoit ich habe jz so eine Menüleiste gemacht , nun will ich aber das ich wenn ich zum beispiel auf Einstellung gehe ein neue GUI öffnet , das klappt nicht .

Wie krieg ich das zum funktionieren ?

Ich habe im Netzt so ein code gefunden der aber nicht funktioniert

[...]

$MenuItem1 = GUICtrlCreateMenu("Menü")
$options = GUICtrlCreateMenuItem("Einstellung", $MenuItem1)
$about = GUICtrlCreateMenuItem("About", $MenuItem1)
$hide = GUICtrlCreateMenuItem("verstecken", $MenuItem1)

#EndRegion ### END Koda GUI section ###


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
$options
_op()
$about
MsgBox(64,"About" , "Copyright by TIPower")

EndSwitch
WEnd

Func _op()

GUICreate("Einstellungen", 240, 198, 192, 164)
$Label1 = GUICtrlCreateLabel("Speicherort:", 8, 64, 61, 17)
$Label2 = GUICtrlCreateLabel("Options", 24, 16, 66, 30)
GUICtrlSetFont(-1, 16, 400, 2, "Harlow Solid Italic")
GUICtrlSetColor(-1, 0x0000FF)
$Ort = GUICtrlCreateInput("Ort", 8, 88, 201, 21)
$Label3 = GUICtrlCreateLabel("Videos zusammenfügen:", 8, 120, 119, 17)
$Checkbox1 = GUICtrlCreateCheckbox("", 136, 120, 17, 17)
$Button1 = GUICtrlCreateButton("Speichern", 72, 160, 75, 25)
GUISetState(@SW_SHOW)
EndFunc


Wie krieg ich den zum laufen ?
nicobellic is offline  
Old 06/03/2010, 22:48   #2
 
elite*gold: 0
Join Date: Nov 2009
Posts: 927
Received Thanks: 1,317
Quote:
Originally Posted by nicobellic View Post
Hallo,
Ich hab da ein Problem bei Autoit ich habe jz so eine Menüleiste gemacht , nun will ich aber das ich wenn ich zum beispiel auf Einstellung gehe ein neue GUI öffnet , das klappt nicht .

Wie krieg ich das zum funktionieren ?

Ich habe im Netzt so ein code gefunden der aber nicht funktioniert

Wie krieg ich den zum laufen ?
Du hast im Switch 2x Case vergessen

PHP Code:
$MenuItem1 GUICtrlCreateMenu("Menü")
$options GUICtrlCreateMenuItem("Einstellung"$MenuItem1)
$about GUICtrlCreateMenuItem("About"$MenuItem1)
$hide GUICtrlCreateMenuItem("verstecken"$MenuItem1)

#EndRegion ### END Koda GUI section ###


While 1
$nMsg 
GUIGetMsg()
Switch 
$nMsg
Case $GUI_EVENT_CLOSE
Exit
Case 
$options
_op
()
Case 
$about
MsgBox
(64,"About" "Copyright by TIPower")

EndSwitch
WEnd

Func _op
()

GUICreate("Einstellungen"240198192164)
$Label1 GUICtrlCreateLabel("Speicherort:"8646117)
$Label2 GUICtrlCreateLabel("Options"24166630)
GUICtrlSetFont(-1164002"Harlow Solid Italic")
GUICtrlSetColor(-10x0000FF)
$Ort GUICtrlCreateInput("Ort"88820121)
$Label3 GUICtrlCreateLabel("Videos zusammenfügen:"812011917)
$Checkbox1 GUICtrlCreateCheckbox(""1361201717)
$Button1 GUICtrlCreateButton("Speichern"721607525)
GUISetState(@SW_SHOW)
EndFunc 
Allerdings würde ich die neue GUI nicht erst in der Funktion definieren, sondern schon vorher. In der Funktion kannst du diese dann per GUISetState ein- und ausblenden.
huberhans is offline  
Thanks
1 User
Old 06/03/2010, 22:50   #3
 
elite*gold: 0
Join Date: Aug 2009
Posts: 74
Received Thanks: 13
Ähh ja mach dir selber einen.Haste schon mal was von Coda from Designer gehört ???
Wenns dann nicht klappt frag nochmal und poste deinen Versuch
sido47 is offline  
Old 06/04/2010, 10:04   #4
 
nicobellic's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 153
Received Thanks: 12
Die sind mit Koda gemacht ,nur ich weiß nicht wie ich eine GUI machen kann und die dann erst mit einer funktion starte :S ?
nicobellic is offline  
Reply


Similar Threads Similar Threads
Homepage-Menüleiste
09/06/2010 - Metin2 PServer Guides & Strategies - 30 Replies
Hi Com ich habe ein Menü für eure Homepage ^^ Es ist so en Weltall style Download ist im Anhang... Beispiel ist auch dort :) wenns nicht erkennbar ist uploade ich es noch ^^ Freue mich über Feeds :) und leute die schreiben "unnötig" können alt+f4 drücken ... thx :awesome:
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



All times are GMT +2. The time now is 12:27.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.