web2win Posted November 23, 2023 Share Posted November 23, 2023 (edited) When I compile an autoit script with the SciTE editor, it lets me enter Resource Update details such as comments, file version, copyright. etc. It then saves all this data as "Directives created by AutoIt3Wrapper_GUI" How can I get Aut2Exe to read a similar directive script and compile the properties details that I want, such as file version, etc., into the exe ? Thanks. Edited November 23, 2023 by web2win Link to comment Share on other sites More sharing options...
donnyh13 Posted November 23, 2023 Share Posted November 23, 2023 Not sure if this will help, but here is a similar question, web2win 1 LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions." Link to comment Share on other sites More sharing options...
Nine Posted November 23, 2023 Share Posted November 23, 2023 do "aut2exe /?" “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...
junkew Posted November 23, 2023 Share Posted November 23, 2023 Read the docs https://www.autoitscript.com/autoit3/docs/intro/compiler.htm FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
donnyh13 Posted November 23, 2023 Share Posted November 23, 2023 (edited) 2 hours ago, junkew said: Read the docs https://www.autoitscript.com/autoit3/docs/intro/compiler.htm I don't believe that offers setting version etc? Unless I'm mistaken? Nine was correct -- Disregard. 4 hours ago, web2win said: I want, such as file version, etc., Edited November 23, 2023 by donnyh13 LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions." Link to comment Share on other sites More sharing options...
Developers Jos Posted November 23, 2023 Developers Share Posted November 23, 2023 Yes it does... the #pragma directive is read by aut2exe. The #Autoit3Wrapper directives makes the changes after the exe is created when done by AutoIt3Wrapper. donnyh13 and web2win 2 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...
junkew Posted November 23, 2023 Share Posted November 23, 2023 https://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/AutoIt3Wrapper.html donnyh13 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Nine Posted November 23, 2023 Share Posted November 23, 2023 1 hour ago, donnyh13 said: Unless I'm mistaken? Like I already told you, if you have listen, you would have seen this : web2win and donnyh13 2 “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...
donnyh13 Posted November 23, 2023 Share Posted November 23, 2023 (edited) 1 hour ago, Jos said: The #Autoit3Wrapper directives makes the changes after the exe is created when done by AutoIt3Wrapper. But if you compile via CMD for example, #Autoit3Wrapper directives aren't read, which, I think, is what the poster is referring to?? 33 minutes ago, Nine said: Like I already told you, if you have listen, you would have seen this : Thanks Nine, I should have tried before I replied. My bad. I went to Junkew's link, and none of those params were listed. Edited November 23, 2023 by donnyh13 LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions." Link to comment Share on other sites More sharing options...
Nine Posted November 24, 2023 Share Posted November 24, 2023 No problem, I first thought you were OP. Sorry. In anyway, it might be of use to know the params of Aut2exe. “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...
Developers Jos Posted November 24, 2023 Developers Share Posted November 24, 2023 8 hours ago, donnyh13 said: But if you compile via CMD for example, #Autoit3Wrapper directives aren't read, which, I think, is what the poster is referring to?? Correct... So hence my whole answer! 😏 web2win and donnyh13 1 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...
web2win Posted November 24, 2023 Author Share Posted November 24, 2023 the INI file named myScript.ini Aut2Exe reads an INI file named Scriptname.ini if it is available. The INI file should be located in the same directory as the AutoIt script that you are compiling. The Aut2Exe command for reading an INI file is as follows: aut2exe.exe /i Scriptname.ini This command tells Aut2Exe to read the INI file named Scriptname.ini and use the information in the file to compile the AutoIt script. If you do not specify an INI file to read, Aut2Exe will use the default configuration settings. Here is an example of how to use the Aut2Exe command to read an INI file: aut2exe.exe /i myScript.au3 /i myScript.ini This command tells Aut2Exe to compile the AutoIt script named myScript.au3 and use the information in the INI file named myScript.ini to compile the script. Link to comment Share on other sites More sharing options...
web2win Posted November 24, 2023 Author Share Posted November 24, 2023 (edited) Yes I want to compile from CMD. But I don't know why the #Autoit3Wrapper directives aren't being read. Meanwhile I discovered that Aut2Exe reads an INI file named Scriptname.ini. I will experiment with that ini to see if it can read: file version, company, copyright, language, etc. and display that stuff in the compiled program properties. Edited November 24, 2023 by Melba23 Link to comment Share on other sites More sharing options...
web2win Posted November 24, 2023 Author Share Posted November 24, 2023 (edited) A sample INI file for Aut2Exe [Aut2Exe] ProductName=MyProg FileDescription=MyProgram Version=22 Icon=myicon.ico Copyright=Copyright (C) 2023 MyCompany Edited November 24, 2023 by Melba23 Link to comment Share on other sites More sharing options...
web2win Posted November 24, 2023 Author Share Posted November 24, 2023 (edited) Unfortunately it does not work for me. Aut2Exe doesn't read the ini. Is there another way of writing an ini file for Aut2Exe ? Edited November 24, 2023 by Melba23 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 24, 2023 Moderators Share Posted November 24, 2023 web2win, When you reply in future, please use the "Reply to this topic" button at the top of the thread or the "Reply to this topic" editor at the bottom rather than the "Quote" button - responders (particularly when it is yourself!) know what they wrote and it just pads the thread unnecessarily. Thanks in advance for your cooperation. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Developers Jos Posted November 24, 2023 Developers Share Posted November 24, 2023 Fileinstall will add/include a file in the program resources which then will be installed on the computer that runs the script. Open the helpfile and search for the details. 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...
web2win Posted November 24, 2023 Author Share Posted November 24, 2023 I know how to use Fileinstall and I know the command line parameters I need. But I am not sure of the correct syntax for an ini file. I want to make changes to the program properties, fileversion, description, etc. but Aut2Exe doesn't seem to read the ini at all. And is AutoIt3Wrapper an exe file or an au3 data file? When I run it nothing happens.... Is there working example for a command line AutoIt3Wrapper use somewhere? Link to comment Share on other sites More sharing options...
web2win Posted November 24, 2023 Author Share Posted November 24, 2023 Someone said use AutoitWrapper instead of Aut2Exe to set your compiled program description, comments, language, etc. But how exactly is it done from the command line? Or do you have to use the SciTE editor for that? Link to comment Share on other sites More sharing options...
web2win Posted November 24, 2023 Author Share Posted November 24, 2023 To compile au3 to exe ... these are the details I want to set from the command line or from an external ini file...... 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