Jump to content

AutoIt3Wrapper - Compile methods and parameters


Recommended Posts

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

  • Developers
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

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

  • Developers

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

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:

taskman.png.6964961962eb7f2c3e50a3d6f9b0ee93.png

Thanks

Link to comment
Share on other sites

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 by Zedna
Link to comment
Share on other sites

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

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 by TheXman
Added how to customize description
Link to comment
Share on other sites

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):

test.png.ba4187e2f7bead53e1a5b6221cdb4e88.png

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):

test2.png.73b9a6297f854171f24848c72bf4b220.png

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

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

 

image.png

 

 

image.png

Edited by TheXman
Link to comment
Share on other sites

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

Look at the example in my previous posts

Edited by TheXman
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...