Jump to content
Advert

wellknown

Members
  • Posts

    4
  • Joined

  • Last visited

wellknown's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Yes, it is just a testing script but I really want to be able to use this method to install application with GUI interaction by using AutoIt automatically without any logged on user. Is it possible or any workaround? Thank you.
  2. Dear Volly, Actually I am using xyNTservice to start a batch program as a service and use the batch program to run a simple AutoIt script to test whether it can interact with other GUI program for installation. The testing script is trying to invoke a notepad.exe, type some words on it and saving it as a file. The script is : Opt("WinTitleMatchMode", 2) Run("notepad.exe test.txt") WinWaitActive("Notepad") Send("This is some text.") sleep(3000) WinClose("Notepad") WinWaitActive("Notepad") Send("!y") It can work if the batch program is configured to interact with UserInterface in xyNTservice when a user is logged on. For other cases (no user is logged on or the batch program is configured not to interact with UserInterface in xyNTservice), it won't work and the testing script seems not able to detect the presence of the Notepad window and keeps waiting forever. Thank you.
  3. I have tried to configure an AutoIt script to run as a Windows service to install application in the background automatically. But I found that AutoIt script cannot detect the presence of the application's GUI or the GUI cannot be output when starting from a service. May be it can work if the service is allowed to interact with the active desktop. But this is not what I want as there is no guarantee there is a logged on user. Also, it is no good to interfere with the current logged on user. Any suggestion or workaround? Thank you.
×
×
  • Create New...