or/and a simple message box. Msgbox,`n (%A_LineFile%~%A_LineNumber%)
Mod edit: Moved post due to topic duplicate, OP of this topic is the post below.gameba wrote:...Code: Select all
ESC:: { ExitApp return }
Mod edit: Moved post due to topic duplicate, OP of this topic is the post below.gameba wrote:...Code: Select all
ESC:: { ExitApp return }
Code: Select all
#include Vis2.ahk
CoordMode, mouse, screen
CoordMode, Pixel, screen
global bookid:=0
pToken := Gdip_StartUp()
funcOCR(){
regText := OCR([28, 170, 250, 90])
;OutPutDebug, % regText "chil"
if (InStr(regText,"chil")){
sleep 1000
click 500,603
sleep 2000
funcOCR()
;sendInput {F1} I tried sendInput but It also crashed
return
}else{
click 37,603
sleep 2000
funcOCR()
;sendInput {F1} I tried sendInput but It also crashed
return
}
}
F1::
{
funcOCR()
return
}
ESC::
ExitApp
Code: Select all
Faulting application name: AutoHotkey.exe, version: 1.1.28.0, time stamp: 0x5a7f9e69
Faulting module name: gdiplus.DLL_unloaded, version: 10.0.16299.248, time stamp: 0x3e35f305
Exception code: 0xc0000005
Fault offset: 0x00000000000013e3
Faulting process id: 0x2928
Faulting application start time: 0x01d3c0ad66dcb756
Faulting application path: C:\Program Files\AutoHotkey\AutoHotkey.exe
Faulting module path: gdiplus.DLL
Report Id: e28afa19-b5d0-410c-a0ed-a85c9016fa92
Faulting package full name:
Faulting package-relative application ID: