Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When the clipboard fails to retrieve text
#1
I'd like to know how to continue execution when unable to retrieve text from the clipboard. In QM, I can simply use 'err' or omitted. How do I handle this in LA?
(This is an assumption: The text is empty when using the hotkey Ctrl+a)
OR, Is there a member function similar to getsel in QM for LA?

LA: 
 
Code:
Copy      Help
keys.send("Ctrl+A");
string s = clipboard.copy(); //get the selected text
//handle err ???
print.it(s);

QM:
Code:
Copy      Help
'Ca
str s.getsel
err
out s


Messages In This Thread
When the clipboard fails to retrieve text - by Davider - 03-04-2024, 09:36 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)