Re: AutoIt



I managed to finally make this work. Digging through the AutoIt Newsgroup I
noticed that WinWaitActive is the wrong way to do this remotely. Instead I
went with ControlSend and it did launch the program and the application was
uninstalled successfully.
Thanks,

"TerryM" wrote:

Instead of doing a send("!Y")
find the ControlID and send a click to that. You'll always get better
results that way and more reliable.

Terry

"Miguel" <Miguel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9A8A257D-4870-43D1-9BAB-2E1986EB7B1C@xxxxxxxxxxxxxxxx
Thanks for the response,
To answer your questions the script does run in SMS's context and the
program is setup to run whether or not the usr is logged on. I've also
tried
to run the AutoIt package using PSExec and I still can't get it to run
remotely. What confuses me is that why this thing does what it supposed to
do
when I manually double-click on it while logged in to the local machine?
I'll
go ahead and past the script to this Newsgroup so hopefully if I made any
mistakes it can be corrected. What this script does is that it launches
the
uninstall string of an application (no silent switch available). When
prompted to uninstall the program, the script selects Yes from the dialog
box
and the program is consequently uninstalled.

Run("C:\Program Files\InstallShield Installation

nformation\{E0000650-0650-0650-0650-000000000650}\Setup.exe -l0x9 -uninst")
WinWaitActive("PureEdge Viewer", "&Yes")
Send("!Y")
Exit


"TerryM" wrote:

I've used AutoIt A LOT executing through SMS Installer.

I've never had a problem.

I don't know what your script does, but I'd look at how you're sending
things out with SMS. Is it running in sms's context or the user's? Is
it
set to run even if the machine is not logged onto? Would those things
affect things your script is doing? Have you ran this on multiple
machines
or just one? Is there a difference?

But if you have compiled your autoit script into a stand alone exe then
it
should run just fine.

You should also add in the line so that the line in the script is
displayed
when you hover over the tray autoit icon.

To do that add the following tot he top of your script:
AutoItSetOption("TrayIconDebug", 1)

Then you can see what line it is getting held up on.

Terry


"Miguel" <Miguel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:05761A64-9485-4A49-8F64-19A9578279D9@xxxxxxxxxxxxxxxx
I was hoping someone in this newgroup happens to be familiar with AutoIt
application. I wrote a script in AutoIt compiled, it and included it in
my
SMS Installer script to run on client systems. The executable runs
without
any problems when I run it manually on a client machine. However it
does
not
execute when I push it out with SMS. I see the process in Task Manager
and
it
appears to hang. I was wondering if there is any other command or
switches
I
need to use to make the AutoIt executable run.







.



Relevant Pages

  • Re: Lock the keyboard
    ... will let you block keyboard input and/or screen output. ... you can't use an ActiveX, you can use AutoIt's own script, which can also ... Will prevent any user input via the mouse or keyboard. ... Windows 2000 User input is blocked and AutoIt can simulate input. ...
    (microsoft.public.scripting.vbscript)
  • Re: Import text file into a field
    ... I know I can do this with Import Folder, selecting text files, but is ... and write a simple script in any text editor and compile it. ... Let FMP open any text editor with the wanted file as the argument; ... Now run that compiled AutoIt script from FMP: ...
    (comp.databases.filemaker)
  • Re: AutoIt
    ... went with ControlSend and it did launch the program and the application ... To answer your questions the script does run in SMS's context and the ... uninstall string of an application. ... But if you have compiled your autoit script into a stand alone exe ...
    (microsoft.public.sms.installer)
  • Re: C++ Script for USB scheduling
    ... Sorry, no tutorials, just the documentation that came with AutoIt and poking around in Windows. ... So the script to turn the root hub OFF is what youve got there, and the script to turn the root hub ON is what youve got there, except I replace ... Opens/runs Device Manager disables a USB hub then quits. ...
    (microsoft.public.windowsxp.general)
  • Re: C++ Script for USB scheduling
    ... It will happily work in a GUI environment. ... Create the AutoIt script to perform your tasks. ... > knows the commands to do what my first post sed that would be great. ...
    (microsoft.public.windowsxp.general)