mr-es335 Posted September 15, 2023 Posted September 15, 2023 Good day, Maybe a completely redundant query, but where can I obtain information on what #include data is required to run basic scripts. I am apparently unable to obtain a precise answer to this question. Most of my scripts are for copying and deleting data and launching applications. At present, I am including both #include <AutoItConstants.au3> and #include <FileConstants.au3> but can honestly say I do not know why... Thank you for any assistance that one may provide. mr-es335 Sentinel Music Studios
Andreik Posted September 15, 2023 Posted September 15, 2023 If you are not sure where your functions or constants are defined you can use SciTE's search in file. Just select the think you are looking for and the includes directory of AutoIt and you are done.
Zedna Posted September 18, 2023 Posted September 18, 2023 (edited) 1) In AutoIt3Wrapper there is directive: #AutoIt3Wrapper_Add_Constants=y 2) Look at latest beta Scite4AutoIt3 where is implemented dynamic includes: Edited September 18, 2023 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
mr-es335 Posted October 19, 2023 Author Posted October 19, 2023 Good day, Real neophyte here!!! Let me ask in this manner...can I run a basic script without #include? For example: ; ----------------------------------------------- #include <AutoItConstants.au3> ; ----------------------------------------------- global $_a="C:\Windows\toggleTaskbarAutohide.exe" global $_f1="C:\RML\SAC\SAC64.exe C:\RML\Audio\Session_Master\Session_Master.mxs" global $_f2="C:\RML\SAW\SAWStudio64.exe C:\RML\Audio\Session_Master\Session_Master.edl" ; ----------------------------------------------- Run($_a) ; ----------------------------------------------- Run($_f1) Sleep(500) MouseClick($MOUSE_CLICK_RIGHT, 27, 56, 1, 0) Send("{F12}") Sleep(2000) ;---------------- Run($_f2) Sleep(500) Send("{Alt}") ; ----------------------------------------------- MouseClick($MOUSE_CLICK_LEFT, 1562, 126, 1, 0) Send("{o}") ; ----------------------------------------------- Please advise? Thanks! mr-es335 Sentinel Music Studios
Zedna Posted October 19, 2023 Posted October 19, 2023 ; ----------------------------------------------- ;#include <AutoItConstants.au3> ; -> now not needed Global Const $MOUSE_CLICK_LEFT = "left" Global Const $MOUSE_CLICK_RIGHT = "right" ; ----------------------------------------------- global $_a="C:\Windows\toggleTaskbarAutohide.exe" global $_f1="C:\RML\SAC\SAC64.exe C:\RML\Audio\Session_Master\Session_Master.mxs" global $_f2="C:\RML\SAW\SAWStudio64.exe C:\RML\Audio\Session_Master\Session_Master.edl" ; ----------------------------------------------- Run($_a) ; ----------------------------------------------- Run($_f1) Sleep(500) MouseClick($MOUSE_CLICK_RIGHT, 27, 56, 1, 0) Send("{F12}") Sleep(2000) ;---------------- Run($_f2) Sleep(500) Send("{Alt}") ; ----------------------------------------------- MouseClick($MOUSE_CLICK_LEFT, 1562, 126, 1, 0) Send("{o}") ; ----------------------------------------------- Resources UDF ResourcesEx UDF AutoIt Forum Search
Solution Andreik Posted October 19, 2023 Solution Posted October 19, 2023 As long you declare all your constants and functions that you use in your script you don't need to include anything. Zedna gave you such an example.
mr-es335 Posted October 19, 2023 Author Posted October 19, 2023 Yes...however, Zedna's example did not come until after I had submitted mine... The explanation that you provided, Andreik, would have sufficed if such had been provided at the outset...so..."Thank you!" mr-es335 Sentinel Music Studios
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