OCR + MouseClick METHOD

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
AHKMode
Posts: 10
Joined: 20 Apr 2020, 20:21

OCR + MouseClick METHOD

14 May 2020, 21:22

Hello Guys,

Just wondering if anyone OCR User can help me with my script below

Code: Select all

^q::
text := OCR()
textmouse := (OCR() && mouse)

mouse:
MouseClick, L, 580, 230
sleep, 1000
MouseClick, L, 400, 300
sleep, 1000

MsgBox, % textmouse
return
I just want to activate my OCR and MouseClickDrag method together.

help would be appreciated. <3 <3
AHKMode
Posts: 10
Joined: 20 Apr 2020, 20:21

Re: OCR + MouseClick METHOD

14 May 2020, 21:48

Or Guys, Simply change the below script to a mouseclickdrag method

because below script was only on the screenshot coordinates.

Code: Select all

^q::
SetTitleMatchMode, 2
CoordMode, Mouse, Relative
if WinExist("Sample.jpg")
{
	DetectHiddenText, Off
	WinActivate
	x := 63
	y := 238
	w := 67
	h := 38
	Sleep, 1000
	Send, % OCR([x, y, w, h], "eng")
	return
}
[Mod edit: [code][/code] tags added]


thanky thanky thanky

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, Google [Bot] and 121 guests