I am close to finished with the macros I'm working on. I've created one that makes it easy for me to start a new script -- I can never remember things like where to put the title and the simple stuff, so this asks me the script title and makes a new directory for it, makes a file from a template, and saves that file in the new directory. It even distinguishes between TV and film scripts and allows me to create files that are for parts of the script, for all those times I have a scene in my head and want to write it down well before I get to that point.
Thanks for all the help on this so far. Since I'm almost done, the questions should stop soon and when I finish, I'm going to make them available through whichever sites post these things. I've got a couple more questions and both are regarding keypresses. 1) Is there any way that a macro can wait on a keypress without using a prompt or anything like that? For example, the macro may active when F4 is pressed, then wait for the next keypress, find out what key was pressed, and act on that? I've tried looking through API docs, but I'm not sure what I'd use to listen to the keyboard. 2) When I create dialog boxes for Basic, I'm running into a problem with calling macros on events from controls. If I have a push button, I can bind an action to mouse button released and it works fine, but if I also bind it to key released, then it'll call that macro even if I'm just tabbing through the controls -- once tab is released, if that button has focus, the key release macro is called. So far I've gotten around this by creating boolean variables for each button and using two routines, one for key press and one for key up. I set the variable to true on key press and on key up/released I check and if the variable isn't true, I don't execute the bound macro. This is a real pain, since it means two subroutines for each button and a new variable. Is there an easier way to do this? Thanks! Hal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
