Code: Select all
Gui, clippos:-Caption +Disabled +ToolWindow
Gui, clippos:Font, s15
Gui, clippos:Add, Text, cWhite vselrect, "Coordinates: (0, 0) (0, 0)"
Gui, clippos:Color, Black
x1 := 100, x2 := 200, y1 := 300, y2 := 400
capcord := "Coordinates: (" x1 ", " y1 ") (" x2 ", " y2 ")"
MsgBox % capcord ; Shows correctly
GuiControl, clippos:Text, selrect, %capcord% ; Shows only first coord
Gui, clippos:Show, % "x" A_ScreenWidth // 40 " y" A_ScreenHeight // 27
If I remove the space between the parentheses only the "Coordinates: (100, " shows
If I remove the quotations around x2 i.e. "Coordinates: (" x1 ", " y1 ") ( x2 , " y2 ")" Then up to the 2nd ( shows, but not the "x2"
If I remove the space between the 2nd ( and x2 ....................... ") (x2 , "......... Then Only the first coordinates show