What I'm using is a razer orb weaver to activate the hotkeys and I"m trying to use the least amount of keys possible per lab value or group of labs (Diabetes: A1c, Glucose etc...)
I started with Cholesterol Values :
Code: Select all
!^g::
if tctg > 1 ; Last is first in line - once all values have been given, when the hotkey is reactivated it will place the values at the given coordinates in theory... but its not working out as planned
{
Click, %xldl%, %yldl%
Sleep 750
Send {-}
Send %ldl%
Sleep 750
Click, %xtctg%, %ytctg%
Sleep 750
Send {-}
Send %tctg%
Sleep 750
LDL =
TCTG =
xTCTG =
yTCTG =
xLDL =
yLDL =
return
}
if ldl > 1 ; Giving the Variable secondary cholesterol what the patient's lab value is
{
clipboard =
Send ^c
ClipWait, 2
tctg:=clipboard
return
}
if xtctg > 1 ; Giving the Variable LDL what the patient's lab value is
{
clipboard =
Send ^c
ClipWait, 2
ldl:=clipboard
return
}
if xldl > 1
{
MouseGetPos, xtctg, ytctg ; Where I want the secondary Cholesterol Value to go
return
}
else if xldl = ; Last is First - since each Variable is blank it starts here to get where I want LDL lab value to go
{
MouseGetPos, xldl, yldl
return
}