ImageSearch, OutputVarX, OutputVarY, X1, Y1, X2, Y2, ImageFile
is there a mode to show a color rectangle box with coordinate selected like in the example ?
supposing im on www.google.com and im searchig for the logo, is there e mode to show my cordinates selected during the search ?
example
https://i.postimg.cc/59wRz9FP/Untitled.png
thanks in advance
ImageSearch show selection border Topic is solved
-
- Posts: 23
- Joined: 11 Jan 2019, 18:42
Re: ImageSearch show selection border
absolute screen coordinates only:
Code: Select all
overlay(100, 200, 300, 400)
overlay(x1, y1, x2, y2) {
static HWND := makeGui()
Gui %HWND%: Show, % Format("x{} y{} w{} h{} NoActivate", x1, y1, x2 - x1, y2 - y1)
}
makeGui() {
Gui New, +AlwaysOnTop -Caption +ToolWindow +HWNDhwnd
Gui Color, Red
Gui Show, NoActivate
WinSet Trans, 50, % "ahk_id" hwnd
Gui Show, Hide NoActivate
return hwnd
}
Re: ImageSearch show selection border
Here is a alternative that draws a border like in the image you posted
Code: Select all
Highlight(100,200,200,100)
Highlight(x,y,w,h){
Gui,Highlight:Destroy
Gui,Highlight:+AlwaysOnTop -Caption +LastFound +ToolWindow +E0x20
WinSet , Transcolor , 123456 175
Gui,Highlight:Color,ff0000
Gui,Highlight:Add,Progress,x5 y5 w%w% h%h% Background123456
Gui,Highlight:Show,% "x" x-5 " y" y-5 " w" w+10 " h" h+10 NA,
}
-
- Posts: 23
- Joined: 11 Jan 2019, 18:42
Re: ImageSearch show selection border
thanks a lot, in wich mode i can pass the cordinates to imagesearch ?
ImageSearch, OutputVarX, OutputVarY, X1, Y1, X2, Y2, ImageFile{
code to display the rectangle X1, Y1, X2, Y2..
}
can someone provide complete code in mode i can study it..thanks in advance
ImageSearch, OutputVarX, OutputVarY, X1, Y1, X2, Y2, ImageFile{
code to display the rectangle X1, Y1, X2, Y2..
}
can someone provide complete code in mode i can study it..thanks in advance
Re: ImageSearch show selection border
jeeez louise, idk what kind of example u expect, really..
2 have been posted already, both include a call to their respective functions with parameters plugged in. u also have the function signature right underneath
do u want me to instruct u how to replace letters with numbers(and possibly other letters lol)
2 have been posted already, both include a call to their respective functions with parameters plugged in. u also have the function signature right underneath
do u want me to instruct u how to replace letters with numbers(and possibly other letters lol)
-
- Posts: 23
- Joined: 11 Jan 2019, 18:42
Re: ImageSearch show selection border
thanks a lot i have tested the 2 example and work .... after the search image how i can delete the colored box ?
Thanks in advance
Thanks in advance
Re: ImageSearch show selection border Topic is solved
Code: Select all
overlay(x1 := 0, y1 := 0, x2 := 0, y2 := 0) {
static HWND := makeGui()
if !(x1 || y1 || x2 || y2)
Gui %HWND%: Hide
else
Gui %HWND%: Show, % Format("x{} y{} w{} h{} NoActivate", x1, y1, x2 - x1, y2 - y1)
}
-
- Posts: 23
- Joined: 11 Jan 2019, 18:42
Re: ImageSearch show selection border
thanks a lot.. Work 100%
Who is online
Users browsing this forum: No registered users and 121 guests