Blue Eye Macro
http://blueeye-macro.com/

Clipboard Get text help
http://blueeye-macro.com/viewtopic.php?f=42&t=34551
Page 1 of 1

Author:  ahmish [ Wed Feb 13, 2019 6:16 am ]
Post subject:  Clipboard Get text help

hi,

is there a way to validate below code? i am trying to copy a cell in excel. it will then send the clipboard as a variable. with below code it 90% does what it do but sometimes it fails. i tried using variable.assert has value but it will stop the macro which is not ok for me. i want to get the text to a variable if it doesnt work i want validation so that i can repeat the codes.

Clipboard.Copy()
Macro.Pause("150")
Clipboard.Get text("name")
Macro.Pause("200")

Author:  Syrifina [ Wed Feb 13, 2019 6:21 pm ]
Post subject:  Re: Clipboard Get text help

Yes by definition, "variable.assert has value" will stop and abort the macro if it doesn't have a value. Check under Criteria-->Variable for other options that won't stop the macro and you can add code to do what you want depending on if there is a value...like: viewtopic.php?f=159&t=218

Author:  ahmish [ Thu Feb 14, 2019 1:44 pm ]
Post subject:  Re: Clipboard Get text help

Wow! Syrifina as always you are the best! thanks this really works great.

Syrifina wrote:
Yes by definition, "variable.assert has value" will stop and abort the macro if it doesn't have a value. Check under Criteria-->Variable for other options that won't stop the macro and you can add code to do what you want depending on if there is a value...like: viewtopic.php?f=159&t=218

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/