gui error Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
sungho

gui error

07 Oct 2018, 08:34

#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.
garry
Posts: 3770
Joined: 22 Dec 2013, 12:50

Re: gui error  Topic is solved

08 Oct 2018, 03:53

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada and 299 guests