看板 EzHotKey 關於我們 聯絡資訊
請問大家 如果想要先使用一個GUI介面,來輸入欲開啟的應用程式路徑 按下Button之後就結束這個GUI介面 然後等剛剛欲開啟的應用程式開啟後 再另外開啟一個新的GUI介面 ------------------------------------------------------------------- 本來想說使用WinClose來關閉第一個GUI介面 但關掉之後似乎就無法繼續執行下面的GUI介面 於是就把WinClose先不寫試試 但在做的過程中遇到新的跟舊的GUI介面會重複出現在一個視窗中 導致介面變得很亂 同一個位置會有兩個東西覆蓋 不曉得是哪邊出錯了呢? 還煩請大家指點指點^^" 謝謝 以下是兩個GUI介面以及執行的順序 ---------------------------------------------------------------------------- Gui, Font, S20 CDefault, 新細明體 Gui, Add, Text, x11 y14 w450 h40 +Center, 包含*.exe的完整路徑 Gui, Add, Edit, x11 y64 w450 h40 , %path% Gui, Add, Button, x172 y164 w130 h40 , 確定 Gui, Font, S10 CDefault, 新細明體 Gui, Show, x400 y332 h222 w485, 路徑 Return Button確定: ControlGetText, path, Edit1, 路徑 iniwrite, %path%, game.ini, 路徑, Path winclose, 路徑 ifwinnotactive, Login { run, %path% winwait, Login winactivate, Login } else { winactivate, Login } Gui, Font, S20 CDefault, 新細明體 Gui, Add, Text, x21 y14 w30 h40 , 1. Gui, Add, Text, x21 y64 w30 h40 , 2. Gui, Add, Text, x21 y114 w30 h40 , 3. Gui, Add, Text, x21 y164 w30 h40 , 4. Gui, Add, Text, x21 y214 w30 h40 , 5. Gui, Add, Text, x21 y264 w30 h40 , 6. Gui, Add, Text, x21 y314 w30 h40 , 7. Gui, Add, Text, x21 y364 w30 h40 , 8. Gui, Add, Text, x51 y14 w250 h40 , %TX1% Gui, Add, Text, x51 y64 w250 h40 , %TX2% Gui, Add, Text, x51 y114 w250 h40 , %TX3% Gui, Add, Text, x51 y164 w250 h40 , %TX4% Gui, Add, Text, x51 y214 w250 h40 , %TX5% Gui, Add, Text, x51 y264 w250 h40 , %TX6% Gui, Add, Text, x51 y314 w250 h40 , %TX7% Gui, Add, Text, x51 y364 w250 h40 , %TX8% Gui, Add, Button, x301 y14 w110 h40 , 第一組 Gui, Add, Button, x301 y64 w110 h40 , 第二組 Gui, Add, Button, x301 y114 w110 h40 , 第三組 Gui, Add, Button, x301 y164 w110 h40 , 第四組 Gui, Add, Button, x301 y214 w110 h40 , 第五組 Gui, Add, Button, x301 y264 w110 h40 , 第六組 Gui, Add, Button, x301 y314 w110 h40 , 第七組 Gui, Add, Button, x301 y364 w110 h40 , 第八組 Gui, Font, S8 CDefault, 新細明體 Gui, Show, x0 y0 h431 w435, 選擇 Return GuiClose: ExitApp ------------------------------------------------------------------------- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.43.3.56
scsnake:winclose→guiclose→exitapp 03/01 20:33
ScorAlan:請問該怎麼處理才可以讓第一個GUI的介面不會影響到第二個 03/01 22:09
ScorAlan:GUI的介面呢? 感謝scsnake的提醒^^ 03/01 22:10
opeekon:請看一下GUI的Creating Multiple GUI Windows 03/02 10:06
opeekon:EX:Gui,2: Add, Text, x21 y14 w30 h40 , 1.(第二個gui) 03/02 10:07
opeekon:其餘的請自己看Gui 03/02 10:08
ScorAlan:謝謝 我試成功了^___^ 03/02 11:38