Solved

Schedule job - Autoit Does not show program

Posted on 2014-02-13
3
1,339 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 53

Expert Comment

by:Joe Winograd, EE MVE
ID: 39857100
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
ID: 39858395
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
ID: 39884166
Ah that was it.  Thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

749 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