Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 07:47

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

Advertisement



GUI Problem

Discussion on GUI Problem within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
Syc0n's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 1,835
Received Thanks: 1,638
GUI Problem

Folgendes Problem:

Ich habe eine GUI erstellt mit 2 Buttons. Zu jedem Button ist eine Funktion zugewiesen. Nun will ich, dass, wenn ein Button gedrückt wurde, die gesamt GUI sich schließt, aber die Funktion weiter läuft. Geht das irgendwie?

Habs schon mit GUIEVENTCLOSE probiert, aber das versteh ich noch nicht so richtig.


EDIT:Habs gelöst.
Syc0n is offline  
Old 04/02/2009, 23:55   #2
 
S T A Y L A's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 84
Received Thanks: 44
Dann teil uns doch mal bitte deine Lösung mit, würde mich auch interessieren...
S T A Y L A is offline  
Old 04/03/2009, 00:01   #3


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Quote:
Originally Posted by S T A Y L A View Post
Dann teil uns doch mal bitte deine Lösung mit, würde mich auch interessieren...
Code:
GuiDelete($Form)
buFFy! is offline  
Old 04/03/2009, 10:15   #4
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
Code:
#include <GUIConstants.au3>

GUICreate("Meine GUI-Buttons") ; erstellt ein GUI-Fenster welches mittig ausgerichtet wird

Opt("GUICoordMode",2)
$Button_1 = GUICtrlCreateButton ("Starte den Editor",  10, 30, 100)
$Button_2 = GUICtrlCreateButton ( "Button Test",  0, -1)

GUISetState ()      ; zeigt das GUI-Fenster mit 2 Buttons
; die GUI läuft bis sie geschlossen wird
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button_1
			GUISetState (@SW_HIDE )
            Run('Notepad.exe')    ; Startet/Öffnet den Editor
        Case $msg = $Button_2
			GUISetState (@SW_HIDE )
            MsgBox(0, 'Test', 'Button 2 wurde gedrückt')    ; zeigt, dass der Button 2 gedrückt wurde
			
    EndSelect
Wend
GUISetState (@SW_HIDE ) heißt das zauberwort
| Moep | is offline  
Old 04/03/2009, 12:48   #5
 
Syc0n's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 1,835
Received Thanks: 1,638
yop das wars
Syc0n is offline  
Reply


Similar Threads Similar Threads
Metin 2 Pserver Problem/ Lösung für das Matrix Kartennummer Problem
01/04/2010 - Metin2 Private Server - 3 Replies
Hy Leute Wie in der Überschrift genannt, hab ich gerade ein Problem mit meinem Metin 2Server. Ich lasse ihn via Loopbackadapter laufen, funktioniert auch ganz gut. Ich hab aber jetzt das Poblem, das in meinem Account nur noch Krieger mit Level null stehen. Wie kann ich das Beheben??, das is auch manchmal da, wenn ich via Navicat n neuen Account mach. Hoffe einer hatt ne Lösung Hab n Screenshot im Anhang Aber ich hab ja auch ne Lösung für n anderes Problem. Gestern hatte ich beim...
[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 +1. The time now is 07:48.


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