SkysLastChance Posted October 4, 2023 Share Posted October 4, 2023 (edited) So I am having problems launching my script using task scheduler. I will admit I am new to task scheduler. I found a lot of topics on this same kind of thing, but most of them had to do with Send () and WinWaitActive() being the cause. I tested with a script just using: Msgbox(0,"","") It works fine if I have "Run only when user is logged on". If I try "Run whether user is logged on or not." It will not run. (tested while logged on also) It will not pop up the message box. I am unsure of how to debug this problem I am assuming it has to do with some permissions as I am on a company computer. Not sure where to look for errors though. Any help is appreciated. Edited October 4, 2023 by SkysLastChance You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott Link to comment Share on other sites More sharing options...
Solution genius257 Posted October 4, 2023 Solution Share Posted October 4, 2023 Hi @SkysLastChance. I seems to remember applications started via task scheduler does not allow GUI to work, including your message box. Just for testing, your script could create a text file on the desktop, just to verify this claim SkysLastChance 1 My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser Link to comment Share on other sites More sharing options...
rsn Posted October 4, 2023 Share Posted October 4, 2023 (edited) If you choose to "Run whether user is logged on or not" it will automatically run hidden unless you configure for "Windows Server™ 2003, Windows® XP, or Windows® 2000" Edited October 4, 2023 by rsn screen cap SkysLastChance 1 Link to comment Share on other sites More sharing options...
robertocm Posted October 6, 2023 Share Posted October 6, 2023 (edited) Just for ideas, related with paths, not MsgBox: Edited October 6, 2023 by robertocm SkysLastChance 1 Link to comment Share on other sites More sharing options...
SkysLastChance Posted October 17, 2023 Author Share Posted October 17, 2023 Thank you for the help on this everyone. The truth is that all of these helped me out. Then I ran into more problems. My main problem ended up being that the task scheduler did not have access to the Folders/SQL tables that my script was trying to run. It is working as expected now. robertocm and argumentum 2 You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott 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