ive been trying to write a timer to press a flask for me every few seconds and i cant get this to work
Code:
{
"Name": "",
"Composite": {
"Name": "Prio",
"Type": 0,
"AlwaysContinue": false,
"ConditionList": [],
"Children": [
{
"Name": "isPressHotKey",
"Type": 2,
"AlwaysContinue": false,
"ConditionList": [
{
"Parameters": {
"Invert": "False",
"key": "109"
},
"Linker": null,
"Owner": "Default",
"Name": "IsKeyPressedConditionFactory"
}
],
"Children": [
{
"Name": "StartTimer",
"Type": 3,
"AlwaysContinue": false,
"ConditionList": [],
"Children": [],
"Action": {
"Parameters": {
"TimerName": "HP",
"ForceStop": "False"
},
"Owner": "Default",
"Name": "TimerActionFactory"
}
}
],
"Action": null
},
{
"Name": "CheckTimer",
"Type": 2,
"AlwaysContinue": false,
"ConditionList": [
{
"Parameters": {
"Invert": "False",
"TimerName": "HP",
"TimeElapsed": "5000",
"TrueIfStopped": "False"
},
"Linker": null,
"Owner": "Default",
"Name": "TimerConditionFactory"
}
],
"Children": [
{
"Name": "Press1",
"Type": 3,
"AlwaysContinue": false,
"ConditionList": [],
"Children": [],
"Action": {
"Parameters": {
"key": "49"
},
"Owner": "Default",
"Name": "SendKeyActionFactory"
}
}
],
"Action": null
},
{
"Name": "StopTimer",
"Type": 3,
"AlwaysContinue": false,
"ConditionList": [],
"Children": [],
"Action": {
"Parameters": {
"TimerName": "HP",
"ForceStop": "True"
},
"Owner": "Default",
"Name": "TimerActionFactory"
}
}
],
"Action": null
}
}