Jump to content
Macro Express Forums

Need help with breaking on keypress


emos
 Share

Recommended Posts

Ok this is what Ive been trying to do, and it seems simple but I cant solve my problem.

 

Here goes:

 

Whenever I press the 4 key the macro should

 

1) Hit Enter type "Hi" and Hit enter again.

 

2) If within 30 seconds I dont hit the 4 key again it should hit Enter type "Bye" and hit enter again. (if I do hit the 4 key before 30 seconds are up it should restart, type "Hi" and wait the 30 seconds to type "Bye" again)

 

If anyone can figure out how to do this it would be a great help, because when I tried to make this macro what would happen is it would type Hi, then wait 30 seconds but was unable to break and restart if I pressed 4 again.

Link to comment
Share on other sites

Ok this is what Ive been trying to do, and it seems simple but I cant solve my problem.

 

Here goes:

 

Whenever I press the 4 key the macro should

 

1) Hit Enter type "Hi" and Hit enter again.

 

2) If within 30 seconds I dont hit the 4 key again it should hit Enter type "Bye" and hit enter again. (if I do hit the 4 key before 30 seconds are up it should restart, type "Hi" and wait the 30 seconds to type "Bye" again)

 

If anyone can figure out how to do this it would be a great help, because when I tried to make this macro what would happen is it would type Hi, then wait 30 seconds but was unable to break and restart if I pressed 4 again.

 

 

I took a quick look at this: At first I thought it could be done within a repeat- but the problem is there is a "Wait for keypress" but no "If keypress".

 

So the only way I could think of for this to work is to put it in an argument. Simply setting up a "wait for keypress" and then setting it for 30 seconds results in an Macro abort, when what you need for this is a Break or Macro Return.

 

 

It would be fantastic if the Wait controls were further developed to add this capability!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...