Sign in to follow this  
Followers 0
z0mgItsJohn

How Do You Delay #Include...

12 posts in this topic

#1 ·  Posted (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 by John2006

Latest Projects :- New & Improved TCP Chat

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 :3

whats the problem? it doesnt matter where its placed in the script, it wont affect anything when the func. is called

Edited by ReaImDown

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites

hes asking if he can include it later...just use Run(@Scriptdir & "\blah")? will this work?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

First Off I Want To Run An AutoIt Command Form Another File Later On In The Script.. And 'Run' Cannot Open .Au3 Files :3

Yes 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!"

Share this post


Link to post
Share on other sites

err.. i want to be able to run autoit commands form another file... can some one help me


Latest Projects :- New & Improved TCP Chat

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "'& @Scriptdir &'\blah.au3"')

EDIT: Always works if compiled. Needs autoit installed if not compiled

Edited by Senton-Bomb

Share this post


Link to post
Share on other sites

Ok...we might be able to help better...show me your currect script...please

Share this post


Link to post
Share on other sites

Ok...we might be able to help better...show me your currect script...please

I showed him exactly what he needed.

Share this post


Link to post
Share on other sites

Yep Ty :D Hay In A Min Ill Show You My Main Script :P - It Will Be In Example Scripts


Latest Projects :- New & Improved TCP Chat

Share this post


Link to post
Share on other sites

HM.....ok

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0