Quicksearch - HRT and HTN guidelines Textexpansions - Gabapentin dosing Referral letter - first draft, not working
78 lines
1.5 KiB
AutoHotkey
78 lines
1.5 KiB
AutoHotkey
; 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:
|
|
Loop, 20
|
|
{
|
|
CoordMode, Pixel, Screen
|
|
ImageSearch, FoundX, FoundY, 0, 0, 2560, 1440, assets\eps\prescription_icon.png
|
|
CenterImgSrchCoords("assets\eps\prescription_icon.png", FoundX, FoundY)
|
|
Sleep, 100
|
|
}
|
|
Until ErrorLevel = 0
|
|
|
|
FoundX := FoundX+45
|
|
CoordMode, Mouse, Screen
|
|
Click, %FoundX%, %FoundY% Left, 2
|
|
;Sleep, 1500
|
|
Loop, 20
|
|
{
|
|
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)
|
|
Sleep, 100
|
|
}
|
|
Until ErrorLevel = 0
|
|
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
|
|
Loop, 20
|
|
{
|
|
CoordMode, Pixel, Screen
|
|
ImageSearch, FoundX, FoundY, 0, 0, 2560, 1440, assets\eps\prescription_selected.png
|
|
CenterImgSrchCoords("assets\eps\prescription_selected.png", FoundX, FoundY)
|
|
|
|
Sleep, 100
|
|
}
|
|
Until ErrorLevel = 0
|
|
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 |