acantor Posted October 6, 2009 Report Share Posted October 6, 2009 Is there a way to script a hotkey macro, set to "Activate as soon as the keys are pressed," that ignores the keys that have been pressed? For example, I want to assign Alt + Up to navigate "up" a list. The script looks something like this: Text Type Ctrl + 1 Text Type Up Text Type Enter It works perfectly when I disable "Activate as soon as the keys are pressed." But as soon as I enable the setting, the script effectively becomes this: Text Type Alt + Ctrl + 1 Text Type Alt + Up Text Type Alt + Enter At that point, it fails. Is there a way to force Macro Express to ignore the keys I press during hotkey activation? "Lock" and "Unlock Keyboard and Mouse" do not help. Quote Link to comment Share on other sites More sharing options...
Cory Posted October 6, 2009 Report Share Posted October 6, 2009 Yeah, develop ninja like reflexes to take your finger off the ALT key before the macro runs! This is precisely why one does not use this option with macros that are going to execute keystrokes. The only thing I can think of is to use the <ALTU> (Alt Up) in front of your text type. Or of course you could put a delay in to wait for you to take your finger off the ALT key but I'm guessing this would defeat your purpose. I'm curious, why is it a problem to wait for release? Quote Link to comment Share on other sites More sharing options...
acantor Posted October 7, 2009 Author Report Share Posted October 7, 2009 I'm curious, why is it a problem to wait for release? By holding down the hotkey, it's essentially a single keystroke to perform the action. But if I am forced to press and release the hotkey, it could be five, ten, twenty, or in some cases, 100 actions. Quote Link to comment Share on other sites More sharing options...
acantor Posted October 7, 2009 Author Report Share Posted October 7, 2009 Hey Cory, Your idea inspired to try something that works: LOCK KEYBOARD AND MOUSE TEXT TYPE ALTU TEXT TYPE CONTROL>1 TEXT TYPE ALTU TEXT TYPE ARROW DOWN TEXT TYPE ALTU TEXT TYPE ENTER TEXT TYPE ALTD UNLOCK KEYBOARD AND MOUSE Quote Link to comment Share on other sites More sharing options...
Cory Posted October 7, 2009 Report Share Posted October 7, 2009 You might not want to end with <ALTD> as that might keep the Alt key depressed. However I'm not sure, you would need to test. I know it works that way with the shift key. Quote Link to comment Share on other sites More sharing options...
acantor Posted October 7, 2009 Author Report Share Posted October 7, 2009 You might not want to end with <ALTD> as that might keep the Alt key depressed. However I'm not sure, you would need to test. I know it works that way with the shift key. Hi Cory, I tested your theory, but <ALTD> really is needed at the end. Since yesterday, I have been testing the macro -- there are two actually, one for moving "up" a list, the other for moving "down" -- and so far, I have observed no side effects. When I changed the activation from Alt + Up to Shift + Alt + Up, I added <SHIFTD> and <SHIFTU> to the script, but the macro became less reliable. 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.