Switch between tab Guis

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Liaxim
Posts: 35
Joined: 09 Jan 2020, 05:14

Switch between tab Guis

12 Apr 2020, 10:45

Hey guys, I want to make two guis, the first "Main" Gui and the Second "Second" Gui: Now I want to switch from the main tab Gui to the Second tab Gui but this is still broken. Hope I can get some help here..

Code: Select all

;Main tab
Main:
Gui, Main: Default
Gui, Add, Tab3, x12 y9 w770 h380 hwndhTab vTab gTab, EmailServicesa|SocialMediaServicesa|StreamingServicesa|GamingServicesa|Helpa
hParent := DllCall("GetWindow", Ptr, hTab, UInt, GW_HWNDNEXT := 1, Ptr)

Gui, EmailServicesa: Default
Gui, +Parent%hParent% -Caption +ToolWindow  
Gui, Color, B4CAEA

Gui, Add, Button, x272 y19 w30 h30 gSecond, Settings

Gui, Show, NA x5 y5 w750 h345
Gui, Main: Show
return

;Settings tab
Second:
;Gui, Main: Destroy
Gui, Second: Default
Gui, Add, Tab3, x12 y9 w770 h380 hwndhTab vTab2 gTab2, EmailServices|SocialMediaServices|StreamingServices|GamingServices|Help
hParent := DllCall("GetWindow", Ptr, hTab, UInt, GW_HWNDNEXT := 2, Ptr)

Gui, EmailServices: Default
Gui, +Parent%hParent% -Caption +ToolWindow
Gui, Color, B4CAEA

Gui, Show, NA x5 y5 w750 h345
Gui, Second: Show
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 361 guests