Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do AutoIt scripts, executed as service, function for GUI actions?

I'm using an AutoIt script to start and automate a GUI application. I need to activate the script each hour.

Will AutoIt scripts (which perform actions on a GUI) work when used as a service? The script will be run as a service (not scheduled task).

like image 999
FerranB Avatar asked Mar 06 '09 10:03

FerranB


People also ask

How do I run an AutoIt script?

Pressing Ctrl-F5 will run Tylo's AutoIt3 syntax checker, which will syntax check the script. Pressing just F5 will run Au3Check and then, if no errors/warnings are found, run AutoIt3.exe to run the script.

What is UDF in AutoIt?

From AutoIt Wiki. This page is a listing of libraries of user defined functions (UDF). These libraries have been written to allow easy integration into your own scripts and are a very valuable resource for any programmer.


1 Answers

You can easily make an autoit script run as a service using service.au3 written by archer of the autoit forums. Unfortunately or fortunately since it is a security measure. A service needs to start independent of the current user session (before login). It cant access send APIs for input manipulation of the current user session from there. It does sound much more like you need a scheduled task and not a service.

like image 120
Copas Avatar answered Sep 27 '22 21:09

Copas