diff --git a/roles/autohotkey/tasks/main.yaml b/roles/autohotkey/tasks/main.yaml index f91d300..e23ad74 100644 --- a/roles/autohotkey/tasks/main.yaml +++ b/roles/autohotkey/tasks/main.yaml @@ -31,3 +31,25 @@ run_level: highest start_when_available: true wake_to_run: false + +- name: create scheduled task + win_scheduled_task: + path: Benie + name: mouse.ahk + state: present + enable: true + triggers: + - type: logon + enabled: true + - type: registration + enabled: true + actions: + - path: '{{autohotkey_repo_dir}}/mouse.ahk' + disallow_start_if_on_batteries: false + stop_if_going_on_batteries: false + execution_time_limit: PT0S + logon_type: interactive_token + multiple_instances: 3 + run_level: highest + start_when_available: true + wake_to_run: false