TBarnes Posted May 12, 2011 Share Posted May 12, 2011 I am curious if AutoIT is functional in the case where no user is logged in and no desktop exists. I have an application that is started by a service. When the system starts my application is started. I would like to have AutoIT run by this application, but it is apparently not recognizing application windows. I suspect it searches for windows via the desktop, which is causing a problem when there is none. Are there options I should try or is this unworkable? Link to comment Share on other sites More sharing options...
Clark Posted May 12, 2011 Share Posted May 12, 2011 Hi there I'm not sure, but this may do what you need. Link to comment Share on other sites More sharing options...
spudw2k Posted May 12, 2011 Share Posted May 12, 2011 (edited) I am pretty sure that the desktop has to be active for GUI scripts to work, but if your task can be scripted without GUI interaction there shouldn't be a problem....at least in my experience. Edited May 12, 2011 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Zedna Posted May 12, 2011 Share Posted May 12, 2011 I also think there can't be GUI without logging. Maybe you mean locked workstation instead? In that case look at this: http://www.autoitscript.com/wiki/FAQ#Why_doesn.27t_my_script_work_on_a_locked_workstation.3F Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
disposable Posted May 18, 2011 Share Posted May 18, 2011 You can idle your script until it detects that someone is logged on (and the desktop is therefore active). Take a look at this post for logon detection: To add another layer of verification, you can also check if both the Taskbar and the Desktop already exist.Taskbar: WinGetHandle("[Class:Shell_TrayWnd]")Desktop: WinGetHandle("Program Manager")Either one will return "" if they're not present. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now