AutoHotkey Community

It is currently May 26th, 2012, 6:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 14th, 2005, 12:34 am 
Hi.

The OnClipboardChange feature is superior in most ways to ClipWait for scripts that react to clipboard events, but the former can't be temporarily paused (in the sense that the OnClipboardChange label is no longer invoked) the way scripts that use ClipWait can be (via the script's tray context menu) -- AutoIt considers that the script is "doing nothing" and therefore can't be paused.

Would this be a difficult thing to implement? [I'd converted a number of ClipWait scripts to use OnClipboardChange instead before I realized this "issue"]

Thanks,

Jacques.

PS: On a totally different topic, how do you create a URL that points to a specific forum message?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 14th, 2005, 12:36 am 
Offline

Joined: November 16th, 2004, 6:38 am
Posts: 153
Location: New York
Forgot to log in before I posted the previous message. Sorry!

Jacques.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 15th, 2005, 3:08 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
The best thing to do for now is set a global variable (or use the A_IsSuspended variable) to tell the OnClipboardChange subroutine not to do what it normally does. For example:

Code:
OnClipboardChange:
if A_IsSuspended   ; Script is suspended so do nothing when clipboard changes.
    return
; Otherwise, do normal clipboard processing:
; ....
return

Some enhancements will probably be made to the OnClipboardChange capability in the future.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group