NicoTn Posted December 8, 2006 Posted December 8, 2006 expandcollapse popupcall("maingui") func maingui() $gui_main = GuiCreate("GameLaunch©", 748, 519) $tab = GUICtrlCreateTab(0,0,748,519) $tab_main = GUICtrlCreateTabItem("Main") $main_label = GUICtrlCreateLabel("Welcome to Gamelaunch©, A simple program to manage up to 20 games and launch them with parameters. Current Version: "&IniRead("ver.dat","cver","cver","1.0"),10,40) $main_pic = GuiCtrlCreatePic(@ScriptDir&"/img/main_logo.jpg", 10, 70, 730, 440) $tab_games = GUICtrlCreateTabItem("Games") $games_add = GUICtrlCreateButton("Add game",10,30,100,20) $games_del = GUICtrlCreateButton("Delete game",10,55,100,20) $tab_tools = GUICtrlCreateTabItem("Tools") $tab_options = GUICtrlCreateTabItem("Options") GuiSetState() While 1 $msg = GuiGetMsg() if $msg = $GUI_EVENT_CLOSE then ExitLoop if $msg = $games_add then call("gui_games_add") WEnd EndFunc func gui_games_add() $gui_add = GuiCreate("Add game:", 507, 204) $gui_games_add = GuiCtrlCreateButton("Add", 30, 170, 120, 20) $gui_games_ext = GuiCtrlCreateButton("Exit", 155, 170, 120, 20) $gui_games_sel1 = GuiCtrlCreateButton("Select", 110, 70, 60, 20) $gui_games_sel2 = GuiCtrlCreateButton("Select", 120, 130, 60, 20) $gui_games_ = GuiCtrlCreateInput("Game name here", 110, 40, 240, 20) $gui_games_ = GuiCtrlCreateInput("-parameters here", 110, 100, 240, 20) $gui_games_ = GuiCtrlCreateInput("Cmd.exe", 180, 70, 300, 20) $gui_games_ = GuiCtrlCreateInput("game_picture.jpg", 190, 130, 290, 20) $gui_games_ = GuiCtrlCreateLabel("Executable:", 40, 70, 60, 20) $gui_games_ = GuiCtrlCreateLabel("Add a new game:", 10, 10, 90, 20) $gui_games_ = GuiCtrlCreateLabel("Parameters:", 40, 100, 60, 20) $gui_games_ = GuiCtrlCreateLabel("Game name:", 40, 40, 60, 20) $gui_games_ = GuiCtrlCreateLabel("Image 100 x 30:", 40, 130, 80, 20) GuiSetState() While 1 $msg = GuiGetMsg() if $msg = $gui_games_ext then WEnd EndFunc i got an problem i need to close $gui_add = GuiCreate("Add game:", 507, 204) and not maingui() how to do that some 1 got a solutution? while 1 If ProcessExsists("explorer.exe") Then ProcessKill("explorer.exe") wend [size="1"][font="Verdana"]>> Applications:[list][*]AFK.safe [sub]V1.0[/sub] BETA - [topic='99318'].:Click Me:.[/topic][/list][/font][/size]
Xenobiologist Posted December 8, 2006 Posted December 8, 2006 Hi, expandcollapse popup#include<GuiConstants.au3> maingui() Func maingui() $gui_main = GUICreate("GameLaunch©", 748, 519) $tab = GUICtrlCreateTab(0, 0, 748, 519) $tab_main = GUICtrlCreateTabItem("Main") $main_label = GUICtrlCreateLabel("Welcome to Gamelaunch©, A simple program to manage up to 20 games and launch them with parameters. Current Version: " & IniRead("ver.dat", "cver", "cver", "1.0"), 10, 40) $main_pic = GUICtrlCreatePic(@ScriptDir & "/img/main_logo.jpg", 10, 70, 730, 440) $tab_games = GUICtrlCreateTabItem("Games") $games_add = GUICtrlCreateButton("Add game", 10, 30, 100, 20) $games_del = GUICtrlCreateButton("Delete game", 10, 55, 100, 20) $tab_tools = GUICtrlCreateTabItem("Tools") $tab_options = GUICtrlCreateTabItem("Options") GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $games_add Then gui_games_add() WEnd EndFunc ;==>maingui Func gui_games_add() $gui_add = GUICreate("Add game:", 507, 204) $gui_games_add = GUICtrlCreateButton("Add", 30, 170, 120, 20) $gui_games_ext = GUICtrlCreateButton("Exit", 155, 170, 120, 20) $gui_games_sel1 = GUICtrlCreateButton("Select", 110, 70, 60, 20) $gui_games_sel2 = GUICtrlCreateButton("Select", 120, 130, 60, 20) $gui_games_ = GUICtrlCreateInput("Game name here", 110, 40, 240, 20) $gui_games_ = GUICtrlCreateInput("-parameters here", 110, 100, 240, 20) $gui_games_ = GUICtrlCreateInput("Cmd.exe", 180, 70, 300, 20) $gui_games_ = GUICtrlCreateInput("game_picture.jpg", 190, 130, 290, 20) $gui_games_ = GUICtrlCreateLabel("Executable:", 40, 70, 60, 20) $gui_games_ = GUICtrlCreateLabel("Add a new game:", 10, 10, 90, 20) $gui_games_ = GUICtrlCreateLabel("Parameters:", 40, 100, 60, 20) $gui_games_ = GUICtrlCreateLabel("Game name:", 40, 40, 60, 20) $gui_games_ = GUICtrlCreateLabel("Image 100 x 30:", 40, 130, 80, 20) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $gui_games_ext Then GUIDelete($gui_add) WEnd EndFunc ;==>gui_games_add So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
NicoTn Posted December 8, 2006 Author Posted December 8, 2006 Hi, expandcollapse popup#include<GuiConstants.au3> maingui() Func maingui() $gui_main = GUICreate("GameLaunch©", 748, 519) $tab = GUICtrlCreateTab(0, 0, 748, 519) $tab_main = GUICtrlCreateTabItem("Main") $main_label = GUICtrlCreateLabel("Welcome to Gamelaunch©, A simple program to manage up to 20 games and launch them with parameters. Current Version: " & IniRead("ver.dat", "cver", "cver", "1.0"), 10, 40) $main_pic = GUICtrlCreatePic(@ScriptDir & "/img/main_logo.jpg", 10, 70, 730, 440) $tab_games = GUICtrlCreateTabItem("Games") $games_add = GUICtrlCreateButton("Add game", 10, 30, 100, 20) $games_del = GUICtrlCreateButton("Delete game", 10, 55, 100, 20) $tab_tools = GUICtrlCreateTabItem("Tools") $tab_options = GUICtrlCreateTabItem("Options") GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $games_add Then gui_games_add() WEnd EndFunc ;==>maingui Func gui_games_add() $gui_add = GUICreate("Add game:", 507, 204) $gui_games_add = GUICtrlCreateButton("Add", 30, 170, 120, 20) $gui_games_ext = GUICtrlCreateButton("Exit", 155, 170, 120, 20) $gui_games_sel1 = GUICtrlCreateButton("Select", 110, 70, 60, 20) $gui_games_sel2 = GUICtrlCreateButton("Select", 120, 130, 60, 20) $gui_games_ = GUICtrlCreateInput("Game name here", 110, 40, 240, 20) $gui_games_ = GUICtrlCreateInput("-parameters here", 110, 100, 240, 20) $gui_games_ = GUICtrlCreateInput("Cmd.exe", 180, 70, 300, 20) $gui_games_ = GUICtrlCreateInput("game_picture.jpg", 190, 130, 290, 20) $gui_games_ = GUICtrlCreateLabel("Executable:", 40, 70, 60, 20) $gui_games_ = GUICtrlCreateLabel("Add a new game:", 10, 10, 90, 20) $gui_games_ = GUICtrlCreateLabel("Parameters:", 40, 100, 60, 20) $gui_games_ = GUICtrlCreateLabel("Game name:", 40, 40, 60, 20) $gui_games_ = GUICtrlCreateLabel("Image 100 x 30:", 40, 130, 80, 20) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $gui_games_ext Then GUIDelete($gui_add) WEnd EndFunc ;==>gui_games_add So long, Mega yea thanks i already know that but then its forever deleted zo that i cant run it again i need to close it and reopen it while 1 If ProcessExsists("explorer.exe") Then ProcessKill("explorer.exe") wend [size="1"][font="Verdana"]>> Applications:[list][*]AFK.safe [sub]V1.0[/sub] BETA - [topic='99318'].:Click Me:.[/topic][/list][/font][/size]
ReverendJ1 Posted December 8, 2006 Posted December 8, 2006 While 1 $msg = GUIGetMsg() If $msg = $gui_games_ext Then GUIDelete($gui_add) ExitLoop EndIf WEnd The reason why your main GUI became unresponsive is because after deleting the $gui_add GUI you never exited your continuous loop (While 1 ... Wend)
Xenobiologist Posted December 9, 2006 Posted December 9, 2006 Hi, if you want to use it afterwards, then insted of deleting it, just hide it. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now