mactable Posted November 9, 2004 Posted November 9, 2004 for example: select case $a = 1 $filename = "script1.au3" case $a = 2 $filename = "script2.au3" endselect #include $filename how can i make it works or same result? thx for hints
Developers Jos Posted November 9, 2004 Developers Posted November 9, 2004 for example:select case $a = 1 $filename = "script1.au3" case $a = 2 $filename = "script2.au3"endselect#include $filenamehow can i make it works or same result?thx for hints<{POST_SNAPBACK}>doesn't really work like that....Can you give an example what you would want to do here ? 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.
this-is-me Posted November 9, 2004 Posted November 9, 2004 select case $a = 1 #include "script1.au3" case $a = 2 #include "script2.au3" endselect Who else would I be?
mactable Posted November 9, 2004 Author Posted November 9, 2004 selectcase $a = 1#include "script1.au3"case $a = 2#include "script2.au3"endselect<{POST_SNAPBACK}>yes i know this way to make my script works but is there any way to #include $myVariable ?i know it may not possible, but i would like to confirm au3 script *CANNOT* #include $myVariable.thx for all.
this-is-me Posted November 9, 2004 Posted November 9, 2004 (edited) Well at the least try your own syntax. Edited November 9, 2004 by this-is-me Who else would I be?
scriptkitty Posted November 9, 2004 Posted November 9, 2004 (edited) Help fileParametersfilename The filename of the current script to include. Path is optional. This must be a string--it cannot be a variable.If "..." is used, the filename is taken to be relative to the current script.If <...> is used the filename is taken to be relative to include library directory (usually C:\Program Files\AutoIt3\Include). The include library contains many pre-written user-functions for you to use!This must be a string--it cannot be a variable. Edited November 9, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers.
ezzetabi Posted November 9, 2004 Posted November 9, 2004 Quite crazily, you can try making on-the-fly the right .au3 file and start it.
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