Added home visit summary, right click menu, and EPS
This commit is contained in:
62
includes/EPS.ahk
Normal file
62
includes/EPS.ahk
Normal 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
|
||||
Reference in New Issue
Block a user