Burgaud Posted February 15, 2021 Share Posted February 15, 2021 (edited) I have a script like this: GLOBAL $repository = "\\QNAP\MAIN\QuickLaunch\Autoit Scripts\Computer Monitor.au3" . . . local $autoit = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir") if @error <> 0 then $autoit = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AutoIt v3\AutoIt", "InstallDir") if @error <> 0 then $autoit = '' _LogMessage("Could not find Autoit installation.") endif endif if $autoit <> '' then $autoit &= "\AutoIt3.exe" $PID = ShellExecute($autoit, '"' & $repository & '" ', "", "") _LogMessage("Repository script executed with PID:" & $PID & " and @error:" & @error) endif It basically executes another autoit script "Computer Monitor.au3" and remembers the $PID of said process. My problem is that said "Computer Monitor.au3" script will appear in Task Manager as "Autoit3.exe". After executing more au3 scripts, I could not distinguish which is which... Is there a way to rename it such that Task Manager will display it something else? I tried compiling said script into an executable .exe file to a name of my choosing, however, since this is a network file, some computers refuses to execute it (antivirus, or net file permission etc....) for a variety of reasons, thus is more a headache... TIA! PS... I am reading this old thread and see if this would offer some help: the mentioned thread is not it. It basically simply changes the exe file name of a compiled script. What I need/want is renaming "autoit3.exe" because the file to execute is an "au3" script. Edited February 15, 2021 by Burgaud Link to comment Share on other sites More sharing options...
Burgaud Posted February 15, 2021 Author Share Posted February 15, 2021 Interesting find: It appears that Microsoft's antivirus/defender is blocking autoit generated exe files, thus screwing with some of the solutions found in this forum... Link to comment Share on other sites More sharing options...
Nine Posted February 15, 2021 Share Posted February 15, 2021 You can copy/rename Autoit3.exe to the name of your choice and run the new.exe with your script name as parameter ... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Exit Posted February 15, 2021 Share Posted February 15, 2021 ... or convert your 'Computer Monitor.au3' to 'Computer Monitor.cmd' using Au3toCmd App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Developers Jos Posted February 15, 2021 Developers Share Posted February 15, 2021 (edited) You can see quite well which process is which when you load the Microsoft ProcessExplorer. This is an example of running a script from SciTE: As you can see, Autoit3Wrapper is running, a "/Watcher" to monitor the shelled process and the actual script test.au3. Jos Edited February 15, 2021 by Jos Exit 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
SEuBo Posted February 15, 2021 Share Posted February 15, 2021 1 hour ago, Jos said: You can see quite well which process is which when you load the Microsoft ProcessExplorer. This is an example of running a script from SciTE: Or with the standard taskmanager: on the details page, right click the column headings, "select columns", and tick "Command Line". AutoIt Examples/UDF's:Generate Function at Runtime using IRunningObjectTable / AutoItObjectVery Simple Inter-Process Communication (using AutoItObject Pure AutoIt) Link to comment Share on other sites More sharing options...
Burgaud Posted February 15, 2021 Author Share Posted February 15, 2021 So there is a way to peek at which script it is running. I never thought that is a "view Command Line" with taskmanager. BTW: How come there is a "!" on one of the script, while the other does not? What does it denote? TIA! Link to comment Share on other sites More sharing options...
Burgaud Posted February 15, 2021 Author Share Posted February 15, 2021 9 hours ago, Exit said: ... or convert your 'Computer Monitor.au3' to 'Computer Monitor.cmd' using Au3toCmd I was having this problem yesterday indeed. Windows antivirus simply would not allow saving a compiled au3 exe, not even a blank au3 script, it was frustrating. Link to comment Share on other sites More sharing options...
Exit Posted February 16, 2021 Share Posted February 16, 2021 But the 'Computer Monitor.cmd' was running OK? App: Au3toCmd UDF: _SingleScript() 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