wimhek Posted May 28, 2012 Share Posted May 28, 2012 Hi Is there a switch to check if Autoit it is compiled, so I can test is the running autoit is compiled or interpreted. e.g. if compiled then .... Link to comment Share on other sites More sharing options...
water Posted May 28, 2012 Share Posted May 28, 2012 Sure. Check macro @Compiled: Returns 1 if script is a compiled executable; otherwise, returns 0. wimhek 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
armoros Posted May 28, 2012 Share Posted May 28, 2012 Maybe naive quest but why and when we check if Autoit is compiled or interpreted. I dont get it.. Thanks [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
water Posted May 28, 2012 Share Posted May 28, 2012 @Compiled returns 1 if the script is a compiled exe file, and 0 if run (interpreted) from SciTE. This can be useful if you want to run some functions (check authorization etc.) when run on a customers PC as an exe but suppress the function when you develop and run the script from SciTE. armoros 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
armoros Posted May 28, 2012 Share Posted May 28, 2012 I got the meaning now Water...Thank you for another explanation you gave me.. [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
water Posted May 28, 2012 Share Posted May 28, 2012 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Zedna Posted May 28, 2012 Share Posted May 28, 2012 I use it when using icons from compiled EXE. If @Compiled Then $ico = @ScriptName $ico_id = 0 Else $ico = "my.ico" $ico_id = -1 EndIf GUISetIcon($ico, $ico_id, $form) GUICtrlCreateIcon ($ico,$ico_id,11,11) Resources UDF ResourcesEx UDF AutoIt Forum Search 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