Strikes me I’ve done something incredibly unhelpful and not included the script !
{
"Name": "PayrollManagerAutomation",
"CreationDate": "2021-1-8",
"Commands": [
{
"Command": "comment",
"Target": "// PAYROLL MANAGER AUTOMATION //",
"Value": ""
},
{
"Command": "",
"Target": "",
"Value": ""
},
{
"Command": "store",
"Target": "fast",
"Value": "!replayspeed"
},
{
"Command": "",
"Target": "",
"Value": ""
},
{
"Command": "XRun",
"Target": "\"C:\\Program Files (x86)\\Moneysoft\\Payroll Manager\\PM3.EXE\"",
"Value": "\"${!cmd_var1}\""
},
{
"Command": "comment",
"Target": "// Check For New Notices",
"Value": ""
},
{
"Command": "do",
"Target": "",
"Value": ""
},
{
"Command": "visualSearch",
"Target": "ToolsMenu_dpi_192.png",
"Value": "found"
},
{
"Command": "repeatIf",
"Target": "${found} == 0",
"Value": ""
},
{
"Command": "XClick",
"Target": "ToolsMenu_dpi_192.png",
"Value": ""
},
{
"Command": "",
"Target": "",
"Value": ""
},
{
"Command": "do",
"Target": "",
"Value": ""
},
{
"Command": "visualSearch",
"Target": "DownloadPAYENoticesMenuOption_dpi_192.png",
"Value": "found"
},
{
"Command": "repeatIf",
"Target": "${found} == 0",
"Value": ""
},
{
"Command": "XClick",
"Target": "DownloadPAYENoticesMenuOption_dpi_192.png",
"Value": ""
},
{
"Command": "",
"Target": "",
"Value": ""
},
{
"Command": "do",
"Target": "",
"Value": ""
},
{
"Command": "visualSearch",
"Target": "CheckForNewNotices_dpi_192.png",
"Value": "found"
},
{
"Command": "repeatIf",
"Target": "${found} == 0",
"Value": ""
},
{
"Command": "XClick",
"Target": "CheckForNewNotices_dpi_192.png",
"Value": ""
},
{
"Command": "",
"Target": "",
"Value": ""
},
{
"Command": "do",
"Target": "",
"Value": ""
},
{
"Command": "visualSearch",
"Target": "OKButton_Notices_dpi_192.png",
"Value": "found"
},
{
"Command": "repeatIf",
"Target": "${found} == 0",
"Value": ""
},
{
"Command": "XClick",
"Target": "OKButton_Notices_dpi_192.png",
"Value": ""
},
{
"Command": "",
"Target": "",
"Value": ""
},
{
"Command": "comment",
"Target": "// ITERATE AND SELECT ANY NOTICES TO APPLY",
"Value": ""
},
{
"Command": "do",
"Target": "",
"Value": ""
},
{
"Command": "visualSearch",
"Target": "nonoticestoapply_dpi_192.png",
"Value": "noNoticesFound"
},
{
"Command": "visualSearch",
"Target": "nonoticestoapply_dpi_192.png",
"Value": "noticesFound"
},
{
"Command": "if_v2",
"Target": "${noticesFound} == 1",
"Value": ""
},
{
"Command": "XClick",
"Target": "nonoticestoapply_dpi_192.png",
"Value": ""
},
{
"Command": "end",
"Target": "",
"Value": ""
},
{
"Command": "repeatIf",
"Target": "${noNoticesFound} == 0",
"Value": ""
},
{
"Command": "",
"Target": "",
"Value": ""
},
{
"Command": "comment",
"Target": "Open File Listing and see if new entry",
"Value": ""
},
{
"Command": "do",
"Target": "",
"Value": ""
},
{
"Command": "visualSearch",
"Target": "OKButton_Notices_dpi_192.png",
"Value": "found"
},
{
"Command": "repeatIf",
"Target": "${found} == 0",
"Value": ""
},
{
"Command": "XClick",
"Target": "OKButton_Notices_dpi_192.png",
"Value": ""
},
{
"Command": "",
"Target": "",
"Value": ""
},
{
"Command": "comment",
"Target": "// CLOSE PAYROLL MANAGER",
"Value": ""
},
{
"Command": "do",
"Target": "",
"Value": ""
},
{
"Command": "visualSearch",
"Target": "FileMenu_dpi_192.png",
"Value": "found"
},
{
"Command": "repeatIf",
"Target": "${found} == 0",
"Value": ""
},
{
"Command": "XClick",
"Target": "FileMenu_dpi_192.png",
"Value": ""
},
{
"Command": "",
"Target": "",
"Value": ""
},
{
"Command": "do",
"Target": "",
"Value": ""
},
{
"Command": "visualSearch",
"Target": "ExitMenuOption_dpi_192.png",
"Value": "found"
},
{
"Command": "repeatIf",
"Target": "${found} == 0",
"Value": ""
},
{
"Command": "XClick",
"Target": "ExitMenuOption_dpi_192.png",
"Value": ""
}]}