Code: Select all
; Start
evaluateTrendQRS()
{
global DailyMax, DailyMin
If (DailyMax == "0" AND DailyMin == "0")
{
MsgBox, 262148, Trend Strip, Is this a Maximum Daily?
IfMsgBox, Yes
{
DailyMax := 1
clickHRField()
CurrentKeyDelay := A_KeyDelay
SetKeyDelay, 1
SendEvent, DAILY MAXIMUM AVERAGE HR - %getHR% bpm
SetKeyDelay, %CurrentKeyDelay%
Sleep, 100
HRValidation()
ControlClick, Button14, QRS Measurements ahk_class #32770,, Left, 1, x28 y8 NA ; Close QRS Window
Sleep, 10
}
}
Else IfMsgBox, No
{
MsgBox, 262148, Trend Strip, Is this a Minimum Daily?
IfMsgBox, Yes
{
DailyMin := 1
clickHRField()
CurrentKeyDelay := A_KeyDelay
SetKeyDelay, 1
SendEvent, DAILY MINIMUM AVERAGE HR - %getHR% bpm
SetKeyDelay, %CurrentKeyDelay%
Sleep, 100
HRValidation()
ControlClick, Button14, QRS Measurements ahk_class #32770,, Left, 1, x28 y8 NA ; Close QRS Window
Sleep, 10
}
Else IfMsgBox, No
{
Sleep, 100
CurrentKeyDelay := A_KeyDelay
SetKeyDelay, 2
SendEvent, AVERAGE HR - %getHR% bpm
SetKeyDelay, %CurrentKeyDelay%
HRValidation()
ControlClick, Button14, QRS Measurements ahk_class #32770,, Left, 1, x28 y8 NA ; Close QRS Window
Sleep, 10
}
}
Else If (DailyMax == "1" AND DailyMin == "0")
{
MsgBox, 262148, Trend Strip, Is this a Minimum Daily?
IfMsgBox, Yes
{
DailyMin := 1
clickHRField()
CurrentKeyDelay := A_KeyDelay
SetKeyDelay, 1
SendEvent, DAILY MINIMUM AVERAGE HR - %getHR% bpm
SetKeyDelay, %CurrentKeyDelay%
Sleep, 100
HRValidation()
ControlClick, Button14, QRS Measurements ahk_class #32770,, Left, 1, x28 y8 NA ; Close QRS Window
Sleep, 10
}
}
Else If (DailyMin == "1" AND DailyMax =="0")
{
MsgBox, 262148, Trend Strip, Is this a Maximum Daily?
IfMsgBox, Yes
{
DailyMax := 1
clickHRField()
CurrentKeyDelay := A_KeyDelay
SetKeyDelay, 1
SendEvent, DAILY MAXIMUM AVERAGE HR - %getHR% bpm
SetKeyDelay, %CurrentKeyDelay%
Sleep, 100
HRValidation()
ControlClick, Button14, QRS Measurements ahk_class #32770,, Left, 1, x28 y8 NA ; Close QRS Window
Sleep, 10
}
}
Else
{
Sleep, 100
CurrentKeyDelay := A_KeyDelay
SetKeyDelay, 2
SendEvent, AVERAGE HR - %getHR% bpm
SetKeyDelay, %CurrentKeyDelay%
HRValidation()
ControlClick, Button14, QRS Measurements ahk_class #32770,, Left, 1, x28 y8 NA ; Close QRS Window
Sleep, 10
}
}