Shibuya Posted September 22, 2005 Share Posted September 22, 2005 Can I put #include<file> into Functions? I tried to do one today and it gave me errors The speed of sound is defined by the distance from door to computer divided by the time interval needed to close the media player and pull up your pants when your mom shouts "OH MY GOD WHAT ARE YOU DOING!!!" Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted September 22, 2005 Share Posted September 22, 2005 You can do #include-once<>Remember that you CANNOT use variables in pre-processor statements (ie. anything starting with #). Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
Shibuya Posted September 22, 2005 Author Share Posted September 22, 2005 You can do #include-once<>Remember that you CANNOT use variables in pre-processor statements (ie. anything starting with #).hmmm...i don't really get what you're saying#include-once did remove the errors, but the script isn't workingI've switched to using If-else statements, but seems like I can't use #include statements in it as well The speed of sound is defined by the distance from door to computer divided by the time interval needed to close the media player and pull up your pants when your mom shouts "OH MY GOD WHAT ARE YOU DOING!!!" Link to comment Share on other sites More sharing options...
Developers Jos Posted September 22, 2005 Developers Share Posted September 22, 2005 (edited) Can I put #include<file> into Functions?I tried to do one today and it gave me errors Yes you can... BUT:When your file which is included contain another Func...EndFunc, you obviously get an Error because you cannot have a Function inside another Function... its as simple as that ..... Edited September 22, 2005 by JdeB 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. 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