Jump to content
Macro Express Forums

Runs Fine When I Test But...


XCore

Recommended Posts

Hello there,

 

I would really love to use this software. The problem I keep having is that I setup a macro to open a program and do some things...It works great just as it should every time I test it. However, every day when I log back into the machine, there is an error message from macro express that the macro did not function properly. It does appear to have started the firat step by opening the program but nothing further.

 

I must apologize for not giving a lot of specifics as I have uninstalled macroexpress for the time being and can't remember all the details.

 

If this seems like something that has been experienced as described and fixed, I would greatlky appreciate any help with the solution. If more details are indeed needed, I can reinstall the software.

 

Thank you in advance.

Link to comment
Share on other sites

Hi, Xcore,

 

I have these troubles all the time!

Usually just a timing issue; when I'm away, there may be a timing difference from when on the keyboard all the time, or some other window taking focus - usually soluble if I look at my script and control the timing/ window focus / control focus more precisely.

I would need to see your scripts.

 

Best, randall

Link to comment
Share on other sites

Welcome to the group XCore

 

Not knowing what macro you created, or what it was supposed to do, makes it impossible to diagnose a problem. As Randall stated, it could be a timing issue. But it could be other things outside the control of Macro Express as well. The group will be here if you ever decide to try Macro Express again. Good luck to you.

Link to comment
Share on other sites

Thanks again for the help. Here's my macro. It runs flalwlessly when I test it but when I login the next morning (I have it setup to run every day) it seems to have opened the prgram but that's all.

-- Start --

<LAUNCHDEL2:1:05C:\Program Files\XMLSWeb\XMLSPhotos\XMLSPhoto.exe>

<ACTIVATE2:Login>

<TEXTTYPE:<TAB><TAB><TAB><TAB>>

<TEXTTYPE:password>

<TEXTTYPE:<TAB>>

<TEXTTYPE:<ENTER>>

<WAITWIN2:000000:000059:Download [cmls]>

<ACTIVATE2:Download [cmls]>

<TDELAY:2>

<TEXTTYPE:<TAB><TAB><TAB><TAB><TAB><TAB><TAB><TAB>>

<TEXTTYPE:<DELETE><DELETE><DELETE><DELETE><DELETE><DELETE><DELETE><DELETE><DELETE><DELETE>>

<DELAY:2>

<MM/DD/YYYY{NP000}{P000}>

<TEXTTYPE:<TAB><TAB><TAB><TAB>>

<TEXTTYPE:<ENTER>>

<TDELAY:240>

<TEXTTYPE:<TAB>>

<TEXTTYPE:<ENTER>>

-- End --

 

Also, here are screen shots of the program.

post-2-1113417537_thumb.jpg

Link to comment
Share on other sites

The macro looks reasonable. Maybe the app cannot keep up with the speed that Macro Express is throwing keystrokes at it. Here are some suggestions:

 

Place a "Keystroke Speed: 50 Milliseconds" command at the beginning. Always take the shortest route when tabbing. For example, in the Download (cmls) screen it appears that you tab all the way through it to get to the Date field. Maybe a single Shft+Tab will do. Make use of the accelerator keys. Instead of tabbing to the Download Photos button, maybe a simple Alt+d would work. Change the first few lines of your code to:

Keystroke Speed: 50 Milliseconds
Launch and Activate: "XMLSPhoto.exe"
Wait For Window Title: "Login"

This will both launch and activate the window in the same command. The Wait for Window Title command is more of a safety feature. It may not be needed, but it certainly can't hurt!

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...