peterbbrown Posted January 12, 2007 Report Share Posted January 12, 2007 I have a form to fill in in a program and I have a macro that does almost everything, except that one keystroke differs each time (the alternatives are m4, m5, and m6). So I have the macro waiting for a keypress and using ENTER after I type in the number. Is it possible to eliminate the extra ENTER and have something detect that I have added one key press, and then move on to the rest of the macro? Either any key, or any numeric key, or some such would be fine. I know it's reductionist to want to eliminate the one extra ENTER, but maybe with variables (I've never used them)??? Thanks in advance Quote Link to comment Share on other sites More sharing options...
joe Posted January 12, 2007 Report Share Posted January 12, 2007 Hello! You can set a string variable of any length and have the macro type it. Which variable to type out, would be the question. Is there something different, say a window title, that Macro Express can know about? Something that will tell it to type m4 or M5 or m6? Is this what you mean? Quote Link to comment Share on other sites More sharing options...
kevin Posted January 12, 2007 Report Share Posted January 12, 2007 It sounds like the Variable Set String %T1% from Prompt would work. Just enter the number when you are prompted. Have the macro send the <ENTER> key. Quote Link to comment Share on other sites More sharing options...
peterbbrown Posted January 17, 2007 Author Report Share Posted January 17, 2007 Thank you both! The variable worked, and as I'm letting others use my macros, the added text I could write for the popup will help them. As always, the forum replies are right to the point! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.