Solved

Schedule job - Autoit Does not show program

Posted on 2014-02-13
3
1,156 Views
Last Modified: 2014-02-24
I have an autoit script that would launch an application and click on a few buttons to run a maintenance job.

I was able to test the autoit and it runs fine.  However, when I scheduled it in task scheduler, I do not see what it's doing.  I can see in Task Manager that the process is running in the background, but am not able to execute it like how I would run the application alone.

Is there a setting to have it run so that it's not running in the background?  I am doing some testing and would like to see how it's actually executed.
0
Comment
Question by:holemania
3 Comments
 
LVL 51

Expert Comment

by:Joe Winograd, EE MVE
Comment Utility
I use a fork of AutoIt called AutoHotkey. They've gone their separate ways since the fork, but there's a good chance that your AutoIt script will run in AutoHotkey with no changes. Here's a quote about it from the AutoHotkey site:
AutoHotkey will run most existing .aut scripts without the need to change them. Only the following AutoIt v2 features are not supported:

Adlib section (SetTimer can be used instead)
Break (break is now used for loops instead)
HideAutoItDebug

There's a new version and community that was recently established to move the language forward (still FREE, of course). The latest release has a Windows installer, an offline help file, and a compiler that turns the AHK source code into a stand-alone/no-install executable (an EXE file).

I just tested two of my AHK scripts in the W7/64-bit Task Scheduler. One has message boxes and the other has GUI windows. Both worked perfectly from the Task Scheduler, showing everything that they're doing. You may want to give AutoHotkey a spin. Regards, Joe
0
 
LVL 29

Accepted Solution

by:
matrixnz earned 500 total points
Comment Utility
You need to run-as a logged on user, its probably running as system without interaction so the process appears but you don't see the gui
0
 

Author Closing Comment

by:holemania
Comment Utility
Ah that was it.  Thanks.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now