Jump to content
Macro Express Forums

Clipboard Equals


Amerifax-Bob
 Share

Recommended Posts

I bought a book called Macro Ex Explaned. I was hoping to find an example of how the Clipboard can work with the equal function. It had nothing to offer. Is there another book out there on Macro Express? AS good as Macro Express is you would think there would be more books to give you a good cross section on how it works.

 

I did find something on page 263 that might be some help.

 

Bob

Link to comment
Share on other sites

I did give it a try with no luck. It will react properly when not equal to "Screen". But when = it does not do a tab.

 

Text Type:<CONTROL><SHIFT><ALT>b

Text Type:<SHIFT><TAB>

Wait For Window Title:"Layer Style"

Clipboard Copy

If Clipboard Text Equals "Screen"

Text Type <TAB>

Else

Text Type:<HOME><ARROW DOWN><ARROW DOWN><ARROW DOWN><ARROW DOWN><ARROW DOWN><ARROW DOWN><ARROW DOWN>

End if

 

I'm using the book to the best I can.

 

Bob

Link to comment
Share on other sites

Everything looks good with your ME commands. Is cursor's location in your application possibly being affected when you issue the Clipboard Copy command. I have seen this behaviour with a few applications.

 

I would suggest putting a break in on the

If Clipboard Text Equals "Screen"

line and so that you can see what happens in your application after the Clipboard Copy command is completed.

Link to comment
Share on other sites

Try running the macro using the debug command (F9), and show the variables values. Add some test lines to copy the clipboard contents to a variable, so they can be viewed in the debug window. I have found that sometimes there might be an extra leading or trailing space that gets copied to the clipboard. (Might need trim commands, etc)

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