Cofee Posted May 9, 2020 Share Posted May 9, 2020 Hi, I used Autoit and compile my scripts with two methods. When I used Aut2exe, the process name of the running compiled app is the same as the file name (eg: copy.exe) but the lang verison is always English and the program version is always 0.0.0.0. I did not find any parameters that could affect these. When I compile with AutoIt3Wrapper the lang and program versions are fine. If I run the complied app, the processname every time is Aut2Exe. This is a problem for me. I dont find any directives. Please tell me how can I set the process name in AutoIt3Wrapper or how can I set the lang and program version number in Aut2exe converter. Thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted May 9, 2020 Developers Share Posted May 9, 2020 53 minutes ago, Cofee said: If I run the complied app, the processname every time is Aut2Exe. I do not understand what you mean here. Please provide some more details what directives you use and where you see this processname. Jos 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...
Cofee Posted May 9, 2020 Author Share Posted May 9, 2020 19 minutes ago, Jos said: I do not understand what you mean here. Please provide some more details what directives you use and where you see this processname. Jos Sorry I wasn't accurate enough. So if I complie my script, and I run the exe, in each case, the name Aut2Exe appears in the task manager instead of the application name (if I use AutoIt3Wrapper complier). Thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted May 9, 2020 Developers Share Posted May 9, 2020 I don't get that when I compile test.au3 and then shell test.exe, the taskmanager nicely shows test.exe. Show show me a test script source that shows this issue after being compiled by autoitwrapper. Jos 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...
Cofee Posted May 9, 2020 Author Share Posted May 9, 2020 Here is a test code: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=..\..\..\..\Temp\test.ico #AutoIt3Wrapper_Res_Comment=This is a test #AutoIt3Wrapper_Res_Fileversion=1.0.0.2 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_ProductName=Test #AutoIt3Wrapper_Res_ProductVersion=1.0 #AutoIt3Wrapper_Res_CompanyName=GDT #AutoIt3Wrapper_Res_Language=1038 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ** MsgBox(0,"Username",@UserName) If I compile this in AutoIt3Wrapper (Ctrl+F7 in editor) and run the exe, in the task manager i see this: Thanks Link to comment Share on other sites More sharing options...
Zedna Posted May 9, 2020 Share Posted May 9, 2020 (edited) You have to install FULL Scite4AutoIt3 to make AutoIt3Wrapper directives work (Compile by {F7}). Standard AutoIt's installers contain only LITE Scite editor without AutoIt3Wrapper. https://www.autoitscript.com/site/autoit-script-editor/ https://www.autoitscript.com/site/autoit-script-editor/downloads/ Edited May 9, 2020 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Cofee Posted May 9, 2020 Author Share Posted May 9, 2020 2 hours ago, Zedna said: You have to install FULL Scite4AutoIt3 to make AutoIt3Wrapper directives work (Compile by {F7}). Standard AutoIt's installers contain only LITE Scite editor without AutoIt3Wrapper. https://www.autoitscript.com/site/autoit-script-editor/ https://www.autoitscript.com/site/autoit-script-editor/downloads/ As far as I remember, I installed the full version of the Scite editor. But now I am reinstalling it at your suggestion (I am now using version 4.2.0). Pressing F7 (= Build) creates the new exe file, but don't see any change in running time. The process name is still Aut2Exe in the task manager. What could be wrong with me? Thanks Link to comment Share on other sites More sharing options...
TheXman Posted May 9, 2020 Share Posted May 9, 2020 (edited) 1 hour ago, Cofee said: What could be wrong with me? The problem is that you do not understand what the different Windows 10 Task Manager tabs are showing you. The image that you posted above is a snapshot of the "Processes" tab. The "Processes" tab shows you a list of the running processes by their application description/name. If you go to the "Details" tab, you will see a list of running processes by their process name (which is what you appear to be looking for). If you want to customize what appears on the "Processes" tab of the Windows 10 Task Manager for your compiled script, then you can add one of the following 2 directives: #AutoIt3Wrapper_Res_Description=<App Description> or #pragma compile(FileDescription, <App Description>) Edited May 9, 2020 by TheXman Added how to customize description CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
Cofee Posted May 9, 2020 Author Share Posted May 9, 2020 42 minutes ago, TheXman said: The problem is that you do not understand what the different Windows 10 Task Manager tabs are showing you. The image that you posted above is a snapshot of the "Processes" tab. The "Processes" tab shows you a list of the running processes by their application description/name. If you go to the "Details" tab, you will see a list of running processes by their process name (which is what you appear to be looking for). I'm sorry, but I understand exactly what I see in Task Manager! My problem is the name on the process tab! As I wrote in the first post, if I use Aut2exe the process name is OK (also on the process tab): But the file properties are wrong (version and lang code). If I use the AutoIt3Wrapper, the result is as follows (also on the process tab): But the properties of the file are fine. Of course, in both cases, the task manager details tab shows the name: test.exe (but there was no question). Please tell me, how can I set the application description/name with AutoIt3Wrapper. Thanks Link to comment Share on other sites More sharing options...
TheXman Posted May 9, 2020 Share Posted May 9, 2020 (edited) If you look in the scite help file, under the AutoItWrapper topic, at the bottom of that topic is a link for a full list of the directives. Look at the AutoItWrapper_Res_... directives. There's one that says it changes the lang code in the app's resource information. ;** Target program Resource info #AutoIt3Wrapper_Res_Comment= ;Comment field #AutoIt3Wrapper_Res_CompanyName= ;Company field #AutoIt3Wrapper_Res_Description= ;Description field #AutoIt3Wrapper_Res_Fileversion= ;File Version #AutoIt3Wrapper_Res_FileVersion_AutoIncrement= ;(Y/N/P) AutoIncrement FileVersion. Default=N #AutoIt3Wrapper_Res_Fileversion_First_Increment=;(Y/N) AutoIncrement Y=Before; N=After compile. Default=N #AutoIt3Wrapper_Res_HiDpi= ;(Y/N) Compile for high DPI. Default=N #AutoIt3Wrapper_Res_ProductName= ;Product Name #AutoIt3Wrapper_Res_ProductVersion= ;Product Version #AutoIt3Wrapper_Res_Language= ;Resource Language code . Default 2057=English (United Kingdom) #AutoIt3Wrapper_Res_LegalCopyright= ;Copyright field #AutoIt3Wrapper_Res_LegalTrademarks= ;Trademark field #AutoIt3Wrapper_res_requestedExecutionLevel= ;asInvoker, highestAvailable, requireAdministrator or None (remove the trsutInfo section). Default is the setting from Aut2Exe (asInvoker) #AutoIt3Wrapper_res_Compatibility= ;Vista/Windows7/win7/win8/win81/win10 allowed separated by a comma (Default=Win10) #AutoIt3Wrapper_Res_Language=1033 ;<== Change to your lang code #AutoIt3Wrapper_Res_Description=Test Application example() Func example() MsgBox(0,"","Test") EndFunc Edited May 9, 2020 by TheXman Cofee 1 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
Cofee Posted May 9, 2020 Author Share Posted May 9, 2020 12 minutes ago, TheXman said: If you look in the scite help file, under the AutoItWrapper topic, at the bottom of that topic is a link for a full list of the directives. Look at the AutoItWrapper_Res_... directives. There's one that says it changes the lang code in the app's resource information. ;** Target program Resource info #AutoIt3Wrapper_Res_Comment= ;Comment field #AutoIt3Wrapper_Res_CompanyName= ;Company field #AutoIt3Wrapper_Res_Description= ;Description field #AutoIt3Wrapper_Res_Fileversion= ;File Version #AutoIt3Wrapper_Res_FileVersion_AutoIncrement= ;(Y/N/P) AutoIncrement FileVersion. Default=N #AutoIt3Wrapper_Res_Fileversion_First_Increment=;(Y/N) AutoIncrement Y=Before; N=After compile. Default=N #AutoIt3Wrapper_Res_HiDpi= ;(Y/N) Compile for high DPI. Default=N #AutoIt3Wrapper_Res_ProductName= ;Product Name #AutoIt3Wrapper_Res_ProductVersion= ;Product Version #AutoIt3Wrapper_Res_Language= ;Resource Language code . Default 2057=English (United Kingdom) #AutoIt3Wrapper_Res_LegalCopyright= ;Copyright field #AutoIt3Wrapper_Res_LegalTrademarks= ;Trademark field #AutoIt3Wrapper_res_requestedExecutionLevel= ;asInvoker, highestAvailable, requireAdministrator or None (remove the trsutInfo section). Default is the setting from Aut2Exe (asInvoker) #AutoIt3Wrapper_res_Compatibility= ;Vista/Windows7/win7/win8/win81/win10 allowed separated by a comma (Default=Win10) As you can see in my 3th post, i use this (and much more) directive: #AutoIt3Wrapper_Res_Language=1038 But I don't find directive to set name of the application (as I wrote in the first post). You found it? Thanks! Link to comment Share on other sites More sharing options...
TheXman Posted May 9, 2020 Share Posted May 9, 2020 (edited) Look at the example in my previous posts Edited May 9, 2020 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
Cofee Posted May 9, 2020 Author Share Posted May 9, 2020 5 minutes ago, TheXman said: Look at the example in my previous post I'm sorry, but the pictures in your post have not been downloaded for me so far. Okay, the answer to my question is: #AutoIt3Wrapper_Res_Description Thank you for helping me! Link to comment Share on other sites More sharing options...
TheXman Posted May 9, 2020 Share Posted May 9, 2020 You're welcome! CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman 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