MRAJ Posted May 29, 2018 Share Posted May 29, 2018 (edited) Hi, I have created around 50 GUI autoit scripts for different applications and these scripts i want to run in different windows 2012 servers or same server all time one by one. How to achieve this. Edited May 29, 2018 by MRAJ Link to comment Share on other sites More sharing options...
MRAJ Posted May 29, 2018 Author Share Posted May 29, 2018 Do i have to run in Task scheduler.. Please suggest. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 29, 2018 Moderators Share Posted May 29, 2018 @MRAJ first off, as you have been asked before, please wait 24 hours before bumping your threads - this may be the most important thing in the world to you, but it doesn't mean everyone is going to leap to your assistance. Please show some patience. Secondly, as you have also been asked before, please add some actual details to your threads. What are the GUI scripts doing? Are you expecting them to run while the server is locked/not logged in/etc.? Are they supposed to run in a specific order? Help us help you. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
MRAJ Posted May 29, 2018 Author Share Posted May 29, 2018 Yes..i want them to run even after server is locked/not logged in/etc... GUI scripts doing? Ans- These scripts are like logging to URL, giving username and password,clicking on text,link,button,navigating,submit the values etc. Link to comment Share on other sites More sharing options...
BrewManNH Posted May 29, 2018 Share Posted May 29, 2018 3 minutes ago, MRAJ said: These scripts are like logging to URL, giving username and password On a server? Why are you doing this on a server? Servers aren't supposed to be used to surf the web. Earthshine and mLipok 2 If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
orbs Posted May 29, 2018 Share Posted May 29, 2018 there are valid reasons to use servers as desktops - bearing in mind that "servers" simply refers to the type of the OS, rather than to the actual usage of the computer running that OS. one such reason (which i encountered personally) is that major cloud service providers (such as Amazon AWS and Microsoft Azure) offer servers as the preferred option, sometimes not offering desktops at all. and since Windows servers are, after all, Windows, they support full desktop capabilities. either way, when working with servers or with dedicated (probably headless) desktops, one encounters the same caveats. @MRAJ, are you actively trying to make us focus on the least important bits of your case? you have provided no indication that you ever tried to run your scripts, to say nothing of the issues you encountered or any troubleshooting efforts. so, what is your problem? Earthshine 1 Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
MRAJ Posted June 7, 2018 Author Share Posted June 7, 2018 In task scheduler i schedule one of my script which runs every 5 mins..but the script is not running if i logged off or locked. Link to comment Share on other sites More sharing options...
Juvigy Posted June 7, 2018 Share Posted June 7, 2018 GUI scripts need to have a user logged on for them to work! If it is locked , it should work. Link to comment Share on other sites More sharing options...
MRAJ Posted June 7, 2018 Author Share Posted June 7, 2018 I am seeing Last run time and run result as success and completed in Task schedule but the script running is hidden and not able to see GUI of the web application script, how it is running or to find if it is stuck or it is running as expected. Link to comment Share on other sites More sharing options...
Juvigy Posted June 8, 2018 Share Posted June 8, 2018 That means that the script has run and has finished. Check out your code. Link to comment Share on other sites More sharing options...
aa2zz6 Posted June 8, 2018 Share Posted June 8, 2018 In your script does it leave the while loop at anytime? Like @Juvigy said, it sounds like it's running and finishing. Do you have a log file associated with your script so you can tracks each step so you can identify the issue? Link to comment Share on other sites More sharing options...
MRAJ Posted June 8, 2018 Author Share Posted June 8, 2018 I didnt used while loop..only i used If & Else statement . Below is the result in task schedule but i am not able to see the GUI of the running script And after sometime it shows the below result in task scheduler: Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 8, 2018 Moderators Share Posted June 8, 2018 7 minutes ago, MRAJ said: but i am not able to see the GUI of the running script Did you set up the scheduled task to run interactively (run only when user is logged in)? Otherwise, it is going to run in the isolated session 0 and you aren't going to see anything, that is by design. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Juvigy Posted June 8, 2018 Share Posted June 8, 2018 The second msg means that you or the TS have tried to start a second instance of the same script. There are settings on the TS that specify how the TS should handle this. Link to comment Share on other sites More sharing options...
MRAJ Posted June 8, 2018 Author Share Posted June 8, 2018 Thanks.i have scheduled 2 scripts and configured both Run when user is logged on. I am seeing one is running in GUI mode but another script is running but not in GUI mode. 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