Added home visit summary, right click menu, and EPS

This commit is contained in:
2022-05-25 19:08:23 +01:00
parent ab4e987a87
commit e62940c2af
12 changed files with 176 additions and 8 deletions

62
includes/EPS.ahk Normal file
View File

@@ -0,0 +1,62 @@
; This script was created using Pulover's Macro Creator
; www.macrocreator.com
#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Screen
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1
LoadEPS:
CoordMode, Pixel, Screen
ImageSearch, FoundX, FoundY, 0, 0, 2560, 1440, assets\eps\prescription_icon.png
CenterImgSrchCoords("assets\eps\prescription_icon.png", FoundX, FoundY)
If ErrorLevel
Return
FoundX := FoundX+45
CoordMode, Mouse, Screen
Click, %FoundX%, %FoundY% Left, 2
Sleep, 10
Sleep, 200
CoordMode, Pixel, Screen
ImageSearch, FoundX, FoundY, 0, 0, 2560, 1440, assets\eps\prescription_select_all.png
CenterImgSrchCoords("assets\eps\prescription_select_all.png", FoundX, FoundY)
If ErrorLevel
{
MsgBox, 49, Continue?, Image / Pixel Not Found.`nPress OK to continue.
IfMsgBox, Cancel
Return
}
CoordMode, Mouse, Screen
Click, %FoundX%, %FoundY% Left, 1
Sleep, 10
Sleep, 200
CoordMode, Pixel, Screen
ImageSearch, FoundX, FoundY, 0, 0, 2560, 1440, assets\eps\prescription_selected.png
CenterImgSrchCoords("assets\eps\prescription_selected.png", FoundX, FoundY)
If ErrorLevel
{
MsgBox, 49, Continue?, Image / Pixel Not Found.`nPress OK to continue.
IfMsgBox, Cancel
Return
}
CoordMode, Mouse, Screen
Click, %FoundX%, %FoundY% Right, 1
Sleep, 10
Send, {Enter}
Return
^G:: ;; Px
signpx:
Send {Space 50}
Send +{Home}
Send {Del}
return