terrypin Posted November 3, 2009 Report Share Posted November 3, 2009 First, OT, is there any way to use this forum's Search that will allow AND combinations? I'm sure I've successfully used it before, either here or in other IP.Board forums, in the form: clipboard and null or clipboard AND null which would find threads containing both the words 'clipboard' and 'null'. But it seems to deliver results as if I was using OR, so I get hundreds of irrelevant ones. Meanwhile, can anyone remind me how I detect that I've just copied a 'null' or 'empty' value to the clipboard please? I'm sure this has been discussed before but I can't find the practical conclusion. After such a copy (with TextType Ctl+c) my clipboard always contains whatever the last 'proper' string was. -- Terry, East Grinstead, UK 1 Quote Link to comment Share on other sites More sharing options...
Cory Posted November 3, 2009 Report Share Posted November 3, 2009 AND queries on the board ................................................................................ .... "+clipboard + null" And if you have problems, especially with the 3 letter limit, you can use Google and limit the results with the "site:pgmacros.invisionzone.com" parameter. Quote Link to comment Share on other sites More sharing options...
Cory Posted November 3, 2009 Report Share Posted November 3, 2009 I do not think you can detect a null copy. ................................................................ When one selects nothing to copy Windows will not empty the clipboard but as you pointed out keeps whatever was on there last. What I do is empty the clipboard before the copy command. Then use the If Clipboard equals “”. IE the field is blank. Quote Link to comment Share on other sites More sharing options...
acantor Posted November 3, 2009 Report Share Posted November 3, 2009 Meanwhile, can anyone remind me how I detect that I've just copied a 'null' or 'empty' value to the clipboard please? ... After such a copy (with TextType Ctl+c) my clipboard always contains whatever the last 'proper' string was. Here is how I do it: Clipboard Empty Clipboard Cut ' Add short delay If Clipboard Equals "" ' Do this Else ' Do that End if Quote Link to comment Share on other sites More sharing options...
terrypin Posted November 3, 2009 Author Report Share Posted November 3, 2009 Here is how I do it: Clipboard Empty Clipboard Cut ' Add short delay If Clipboard Equals "" ' Do this Else ' Do that End if Thanks both, appreciate the fast replies. -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.