AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

change where #includes take place

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
savage



Joined: 02 Jul 2004
Posts: 206

PostPosted: Sat Nov 19, 2005 12:14 am    Post subject: change where #includes take place Reply with quote

I don't know if this would even be possible, but it would kick ass for those of us who have dabbled in the forbidden arts of metaprogramming in order to make some tasks in ahk a little cooler Smile.

What I mean is this:
parsemenus.rb produces the file keymenus.ahk
Code:

Run, parsekeymenus.rb
#include keymenus.ahk       ;<URL:keymenus.pp>


Currently this happens - the keymenus.ahk is stuck into the file, then the file is interpreted. The next time the script is reloaded the new file will be included.

What I'd like to see happening is the file resulting from parsekeymenus.ahk being included. Basically I'd like to see #includes done as they are encountered.

If you're wondering, this is different from the old ahk-preprocesser request because the stuff I'm doing is out of the league of normal text preprocessors. This is more metaprogramming - programs writing programs stuff. I'm working on something that will show why having this would make it somewhat more straightforward to add nice things to ahk.
_________________
<enormous animated gif>
Back to top
View user's profile Send private message AIM Address
savage



Joined: 02 Jul 2004
Posts: 206

PostPosted: Sat Nov 19, 2005 1:00 am    Post subject: Reply with quote

Err, I guess this isn't really necessary at all. You can do the same thing by checking the file modification times, running the parse and then (duh) reloading the script. No wrapper script is necessary, like I had imagined.
_________________
<enormous animated gif>
Back to top
View user's profile Send private message AIM Address
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Sat Nov 19, 2005 1:43 am    Post subject: Reply with quote

Hmm I'm not sure but it sounds like RunWait (instead of Run) would work.
Back to top
View user's profile Send private message Visit poster's website
savage



Joined: 02 Jul 2004
Posts: 206

PostPosted: Sat Nov 19, 2005 3:35 am    Post subject: Reply with quote

No the point is that the included file is merged in and THEN everything is run. Unless I've completely missed something.
_________________
<enormous animated gif>
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group