Hello
How to create a blue rectangle area that is always on screen top level ? Even win+D
and it will display "ok" after clicking in this area ? I try to use this blue rectangle area in a touch screen as a trigger.
I can only use loop to monitor this area, but i think it's not prefec as loop will consume more system resources.
thanks in advance
How to create a blue rectangle area that is always on screen top level Topic is solved
Re: How to create a blue rectangle area that is always on screen top level Topic is solved
Code: Select all
#Requires AutoHotkey v1.1.33
Gui +AlwaysOnTop -Caption +ToolWindow
Gui Color, Blue
Gui Show, w100 h100
OnMessage(WM_LBUTTONDOWN := 0x0201, "WM_LBUTTONDOWN")
WM_LBUTTONDOWN(wParam, lParam) {
Gui Hide
MsgBox 64, Status, OK!
}
Re: How to create a blue rectangle area that is always on screen top level
works great!!mikeyww wrote: ↑11 Jul 2023, 11:05Code: Select all
#Requires AutoHotkey v1.1.33 Gui +AlwaysOnTop -Caption +ToolWindow Gui Color, Blue Gui Show, w100 h100 OnMessage(WM_LBUTTONDOWN := 0x0201, "WM_LBUTTONDOWN") WM_LBUTTONDOWN(wParam, lParam) { Gui Hide MsgBox 64, Status, OK! }
I try to Show this rectangle in left bottom. "Gui Show, x0 y980 w100 h100" is ok, but "Gui Show, x0 y%A_ScreenHeight%-100 w100 h100" is not ok.
could you please help me with it ?
Re: How to create a blue rectangle area that is always on screen top level
You need to force an expression:
Code: Select all
Gui Show, % "x0 y" . (A_ScreenHeight-100) . " w100 h100"
Re: How to create a blue rectangle area that is always on screen top level
I see, thanksboiler wrote: ↑12 Jul 2023, 05:06You need to force an expression:
See % Expression.Code: Select all
Gui Show, % "x0 y" . (A_ScreenHeight-100) . " w100 h100"
Re: How to create a blue rectangle area that is always on screen top level
another question is if my chrome is in full screen status, the taskbar will pop up after touch this rectangle ? is it possible to block it ?mikeyww wrote: ↑11 Jul 2023, 11:05Code: Select all
#Requires AutoHotkey v1.1.33 Gui +AlwaysOnTop -Caption +ToolWindow Gui Color, Blue Gui Show, w100 h100 OnMessage(WM_LBUTTONDOWN := 0x0201, "WM_LBUTTONDOWN") WM_LBUTTONDOWN(wParam, lParam) { Gui Hide MsgBox 64, Status, OK! }
thanks
Code: Select all
#Requires AutoHotkey v1.1.33
Gui +AlwaysOnTop -Caption +ToolWindow
Gui +LastFound
WinSet, TransColor, FFFFFF
WinSet, Transparent, 200
; Gui Show, x0 y780 w100 h100
Gui Show, % "x0 y" . (A_ScreenHeight-100) . " w100 h100"
OnMessage(WM_LBUTTONDOWN := 0x0201, "WM_LBUTTONDOWN")
WM_LBUTTONDOWN(wParam, lParam) {
req := ComObjCreate("MSXML2.ServerXMLHTTP")
req.open("GET", "https://powerbi.com", true)
req.send()
}
Re: How to create a blue rectangle area that is always on screen top level
I do not have the answer. Others here may know.
Re: How to create a blue rectangle area that is always on screen top level
Run this code with autohotkey ui access.
Or first execute RunWithUiAccess() function.
viewtopic.php?f=6&t=119251
Or first execute RunWithUiAccess() function.
viewtopic.php?f=6&t=119251
Re: How to create a blue rectangle area that is always on screen top level
thanks, but I don't have adminmalcev wrote: ↑12 Jul 2023, 06:57Run this code with autohotkey ui access.
Or first execute RunWithUiAccess() function.
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=119251
Re: How to create a blue rectangle area that is always on screen top level
For this You dont need admin rights
Run this code with autohotkey ui access.