z0mgItsJohn Posted January 31, 2008 Share Posted January 31, 2008 (edited) Well If You Add For Say #Include <Test.au3> In A Func At The End Of Your Script.. It Includes Test.au3 At The Begging! Can Any One Tell Me How To Make It Include It When I Want... For Say When The Func Is Called :3 Edited January 31, 2008 by John2006 Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
ReaImDown Posted January 31, 2008 Share Posted January 31, 2008 (edited) Well If You Add For Say #Include <Test.au3> In A Func At The End Of Your Script.. It Includes Test.au3 At The Begging! Can Any One Tell Me How To Make It Include It When I Want... For Say When The Fucn Is Called :3whats the problem? it doesnt matter where its placed in the script, it wont affect anything when the func. is called Edited January 31, 2008 by ReaImDown [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
Swift Posted January 31, 2008 Share Posted January 31, 2008 hes asking if he can include it later...just use Run(@Scriptdir & "\blah")? will this work? Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted January 31, 2008 Author Share Posted January 31, 2008 First Off I Want To Run An AutoIt Command Form Another File Later On In The Script.. And 'Run' Cannot Open .Au3 Files :3 Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
GEOSoft Posted January 31, 2008 Share Posted January 31, 2008 First Off I Want To Run An AutoIt Command Form Another File Later On In The Script.. And 'Run' Cannot Open .Au3 Files :3Yes it can if AutoIt is installed. The easier way (still need AutoIt) is ShellExecute.You can not conditionaly #include a file. It is either included or it's not and If the script is compiled then the AutoIt compiler looks for all the #included files first. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted January 31, 2008 Author Share Posted January 31, 2008 err.. i want to be able to run autoit commands form another file... can some one help me Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted January 31, 2008 Author Share Posted January 31, 2008 Bump Help Please :3 Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
NELyon Posted January 31, 2008 Share Posted January 31, 2008 (edited) Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "'& @Scriptdir &'\blah.au3"') EDIT: Always works if compiled. Needs autoit installed if not compiled Edited January 31, 2008 by Senton-Bomb Link to comment Share on other sites More sharing options...
Swift Posted January 31, 2008 Share Posted January 31, 2008 Ok...we might be able to help better...show me your currect script...please Link to comment Share on other sites More sharing options...
NELyon Posted January 31, 2008 Share Posted January 31, 2008 Ok...we might be able to help better...show me your currect script...pleaseI showed him exactly what he needed. Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted January 31, 2008 Author Share Posted January 31, 2008 Yep Ty Hay In A Min Ill Show You My Main Script - It Will Be In Example Scripts Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
Swift Posted January 31, 2008 Share Posted January 31, 2008 HM.....ok 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