I want to transform from gui 1 to gui 2 by press F2. But i don't know how to do it directly. I don't want 1 second show my desktop before gui 2 show.
Code: Select all
Gui 1:Default
Gui,+AlwaysOnTop
Gui, Add,Picture, w%A_ScreenWidth% h%A_ScreenHeight% vPicture, bg0.png
Gui, Show,w%A_ScreenWidth% h%A_ScreenHeight%
Gui, -Caption
return
F2::
gui,destroy
Gui,+AlwaysOnTop
Gui, Add, Picture, w%A_ScreenWidth% h%A_ScreenHeight% , bg1.png
Gui Show, w%A_ScreenWidth% h%A_ScreenHeight%, home
Gui, Add, Text, x6 y110 w70 h100 BackGroundTrans +Center,
Gui Font, S30 ,Arial
Gui Add, Text, cwhite w1260 h60 BackGroundTrans +Center, HELLO WORD
Gui Add, Edit, vsotien gtest hWndhEdit1 w1260 h60 BackGroundTrans +Center,
Gui Font, S30
Gui Add, Edit, cwhite w1260 h60 hWndhEdit2 BackGroundTrans +Center ,
Gui Add, Edit, cwhite w1260 h60 vsotienbangchu hWndhEdit3 BackGroundTrans +Center,
Gui Add, Text, cwhite w1260 h60 BackGroundTrans +Center,
Gui, -Caption
return
ESC::
ExitApp