When code B is activated, window_B will be opened on screen at x35 y150.
If I active code A, and then active code B, How can I make window_B open on window_C's x35 y150 position?
A bit like this : Please let me know if my question is unclear. Thank you.
Code A:
Code: Select all
Gui, Font, S10 C000000 , Tahoma
Gui, Show, x400 y400 h400 w400,Window_C
Return
GuiClose:
ExitApp
Code: Select all
Gui +AlwaysOnTop
Gui, Font, S10 C000000 , Tahoma
Gui, Show, x131 y91 h155 w188,Window_A
Gui, MyGui: +AlwaysOnTop
Gui, MyGui:Show, x35 y150 h350 w280,Window_B
Gui, MyGui:Font, S7 C000000 , Tahoma
WinSet, ExStyle, +0x20, Window_B
WinSet, Transparent, 150, Window_B
WinSet, AlwaysOnTop, On, Window_B
Gui, MyGui:Add, Text, x20 y100 C000000, 1
Gui, MyGui:Add, Text, x40 y100 C000000, 2
Gui, MyGui:Add, Text, x60 y100 C000000, 3
Gui, MyGui:Add, Text, x80 y100 C000000, 4
Gui, MyGui:Add, Text, x100 y100 C000000, 5
Gui, MyGui:Add, Text, x120 y100 C000000, 6
Gui, MyGui:Add, Text, x140 y100 C000000, 7
Gui, MyGui:Add, Text, x160 y100 C000000, 8
Return
GuiClose:
ExitApp