AutoHotkey Community

It is currently May 27th, 2012, 5:59 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: November 19th, 2005, 12:14 am 
Offline

Joined: July 2nd, 2004, 11:53 pm
Posts: 207
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 :).

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>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2005, 1:00 am 
Offline

Joined: July 2nd, 2004, 11:53 pm
Posts: 207
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>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2005, 1:43 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Hmm I'm not sure but it sounds like RunWait (instead of Run) would work.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2005, 3:35 am 
Offline

Joined: July 2nd, 2004, 11:53 pm
Posts: 207
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>


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group