Doubleclicking text being sent to clipboard
#1
Guest Today
Posted 28 February 2012 - 11:22 PM
I am using Windows 7, Autohotkey_L 1.1.05.01 Ansi version.
Seems to be happening with Windows 7, Vista, Autohotkey_L and Basic.
Here is my original post.
http://www.autohotke...topic83139.html
Is it a bug or undocumented feature?
#2
Guest Today
Posted 28 February 2012 - 11:27 PM
Heres the code.
Gui 1: Add, text, x6 y15 w60 h20 gGlabel , Static text gui 1: show, w100 h60,test script return onclipboardchange: TrayTip,%clipboard%,-,3 return Glabel: return
#3
Posted 29 February 2012 - 11:13 AM
#4
Posted 29 February 2012 - 12:04 PM
On Vista+, WM_NCLBUTTONDBLCLK and WM_LBUTTONDBLCLK on static text controls will copy the static text to the clipboard.
EricLaw - MSFT
11/16/2008
Source: About Static Controls
On Windows XP and earlier (or AutoHotkey Basic on all Windows versions), OnClipboardChange is called once when the script starts because that is how the clipboard viewer chain (used to detect clipboard changes) works. On Windows Vista and 7 with AutoHotkey_L, the behaviour is replicated for consistency and backward-compatibility.why is the OnClipboardChange label triggered on script start?
#5
Posted 29 February 2012 - 01:58 PM
#6
Guest Today
Posted 29 February 2012 - 02:24 PM
On Vista+, WM_NCLBUTTONDBLCLK and WM_LBUTTONDBLCLK on static text controls will copy the static text to the clipboard.
EricLaw - MSFT
11/16/2008
Source: About Static Controls
Can this be added to the Autohotkey documentation?
Any suggestions on how to prevent this?
thanks




