G label is used when clicked
" what does that mean and how can I solve this problem I'm having
Code: Select all
JoyNomX := GetKeyState("JoyX")
JoyNomY := GetKeyState("JoyY")
Gui, +HwndGuiHwnd
Gui, Color, 5186D2
Gui, add, Button, x200 y200 w200 h200 vLabel2 gLabel1, OK
Gui, Add, Picture, x20 y20 w20 h-1 vMousePic, C:\Users\BIZZARE\Downloads\apps\New folder (2)\new2.png
Gui, Show, w800 h600, testing lol
SetTimer, MoveMouse, 20
return
MoveMouse:
GuiControlGet, Pic, Pos, MousePic
GuiControl, Move, MousePic, % "x" (PicX + (GetKeyState("JoyX") - JoyNomX) / 5) " y" (PicY + (GetKeyState("JoyY") - JoyNomY) / 5)
Sleep, 20
return
Label1:
Joy1::
Critical
GuiControlGet, MousePic, x200 y200
guicontrol, Label2
KeyWait, Joy1
return