#SingleInstance force
Gui, Font, S100,
Gui, Add, Text, gB1, Move
Gui, Font, S50,
Gui, Add, Text, x200 y100 , X
Gui, Show,,
return
GuiClose:
ExitApp
return
B1:
while GetKeyState("LButton", "P")
PostMessage, 0xA1 , 2,,, A
return
B2:
MsgBox, B2
return
---------------------------------------------------------------
hi, we are students in korea
In script, Text "X" is located on text "move".
so when i click 'X', gui must not move, and msgbox must appear.
But, It doesn't.
please run this code, and fix our bug.
gui error Topic is solved
Re: gui error Topic is solved
maybe use position x, y and size w, h etc
Code: Select all
#SingleInstance force
#warn
#noenv
setworkingdir,%a_scriptdir%
Gui, -DPIScale
Gui,Color,Black
Gui,Font,s50 cGray , Lucida Console
Gui, Add, Text, x350 y50 gB1 , X
Gui, Font, S100,
Gui, Add, Text, x200 y150 gB2, Move
Gui, Show,x100 y50 h350 w800,TEST
return
GuiClose:
ExitApp
B1:
msgbox,You clicked on X
return
b2:
while GetKeyState("LButton", "P")
PostMessage, 0xA1 , 2,,, A
return
Who is online
Users browsing this forum: Descolada and 299 guests