vielhuber Posted July 7, 2010 Share Posted July 7, 2010 Hello Friends!I have a big problem and I hope you can help me fix it.My project relies on this solution so please, give me a hint!I use Windows Server 2003 and have programed several batch fileswith AutoIt Scripts.When I login using RDP or VNC, everything works like a charm,even if I log out VNC (the VNC session is still alive and AutoItcan interact with the GUI, because it exists), it works.The problem is: I only can start the server every night at 3.00 am.First: Widnows has to login automatically, this is only possible witha Registry fix called "AutoAdminLogon". Windows starts, logs in butAutoAdminLogon doesn't provide either RDP nor VNC nor does it execute my AutoIt scripts (don't know why, perhaps because the GUIis not available?!)Question:How is it possible to execute AutoIt Scripts automaticallyafter a Windows Server 2003 is booted up and logged in automatically?Thanks.David Link to comment Share on other sites More sharing options...
sleepydvdr Posted July 7, 2010 Share Posted July 7, 2010 Put a shortcut to the executable in the startup folder: C:\Documents and Settings\Administrator\Start Menu\Programs\Startup I did this very thing for a web server at my company. A second option is to use Task Scheduler to run it at log on. #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
vielhuber Posted July 7, 2010 Author Share Posted July 7, 2010 Thanks for your answer, dude! The BAT FIles are still in the StartUp! But they seem to start until the "au3"-Files need to interact with the GUI! Does this work with you? Even with AutoAdminLogon? Link to comment Share on other sites More sharing options...
BrettF Posted July 7, 2010 Share Posted July 7, 2010 Have you compiled the script(s)? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
vielhuber Posted July 7, 2010 Author Share Posted July 7, 2010 No, should I try it with Aut2Exe for example? Could this be a solution? Link to comment Share on other sites More sharing options...
vielhuber Posted July 7, 2010 Author Share Posted July 7, 2010 (edited) It seems to work now! What is the difference between the AU3 and EXE scripts? They are both running in the windows session instance, which is logged in automatically! But it seems that only EXE are really working and interacting with the Windows GUI! Edited July 7, 2010 by vielhuber Link to comment Share on other sites More sharing options...
sleepydvdr Posted July 7, 2010 Share Posted July 7, 2010 The .au3 files are just code. They need to be compiled to run independently or else you will have to have a copy of autoit3.exe in the folder that has the .au3 file. Then you could call it in a batch file like this: autoit3.exe scriptfile.au3 #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
vielhuber Posted July 7, 2010 Author Share Posted July 7, 2010 Yeah I did knew this, because with the RDP Session Logged in, everything worked fine (i did autoit3.exe scriptname.au3). But it seems that without RDP only the EXE Files are working. 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