Jump to content
Macro Express Forums

When macro stops play sound


koden

Recommended Posts

If there is logic in your script that determines the macro should stop for an error, then you could play a sound file at that point -- see screen shot below.

 

Sometimes (always??) an unexpected error will pop up a "Script Error" window -- the one you don't want to watch for.  So you could write a small macro activated by that window title, and play the sound file in that macro. 

 

Full disclosure: I have not tried either of the above ideas, but it seems as though they should work. 

 

ScreenCapture_10_26_2022_18_38_09.jpg.6c0cd568c30f49588aaa21b5fa2c3228.jpg

Link to comment
Share on other sites

Thanks... sometimes it's funny that I can be that blind when looking for a option 🙂

I did not see multimedia  🙂

 

 

Yes I have a logic some places that says if a window or if something else then stop macro.

 

So there I can put it in.

 

Sometimes my macro stops because a TAB stucks... maybe because of lack in connection to website or something else.

The macro then itself stops, because there is something not there as expected.

 

In that place I assume it's more difficult then?

 

 

 

Link to comment
Share on other sites

8 hours ago, koden said:

maybe because of lack in connection to website or something else.

The macro then itself stops, because there is something not there as expected.

In that place I assume it's more difficult then?

 

In addition to the "Script Error" window that I mentioned above, most macro commands have an "On Error" tab.  Look at the Help screens for "on error" or "catch error".  In most cases, it's probably just as easy to play your sound when "Script Error" appears, because you only have to write the single macro triggered by the window title, rather than do special coding for every possible error. 

ScreenCapture_10_27_2022_8_57_33.jpg

Link to comment
Share on other sites

not sure I havve the same in macro express 3 NOT pro

 

But maybe I should by newer version...

 

BUT at the time my macro actually runs almost perfect

Only very few times it fails in a TAB sequense, because of a lack or whatever.

The good thing is that it stops, and I can just start it again.

 

i think my issues have been solved with "wait" commands the correct places and cabling my laptop instead of wireless.

Link to comment
Share on other sites

34 minutes ago, koden said:

Only very few times it fails in a TAB sequense, because of a lack or whatever.

 

I'm glad it works more reliably now.

If you have not already done so, look at the "Keystroke Speed" command.  Slowing the keystrokes a little might help with the TAB sequences.  I routinely put this command at the beginning of macros, and the typing is still fast enough for most purposes.  There is a similar Mouse Speed command.

 

Keystroke Speed: 30 milliseconds

 

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...
×
×
  • Create New...