Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

DoubleClick text


  • Please log in to reply
11 replies to this topic
Guest Today
  • Guests
  • Last active:
  • Joined: --
Can someone point me to the place in the manual that explains why double clicking text on a gui with a gLabel puts the text on the clipboard? I have searched for clipboard, doubleclick, double click, gLabel and I am having trouble finding it.


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

thanks

dmg
  • Members
  • 2395 posts
  • Last active: Nov 04 2015 06:46 AM
  • Joined: 19 Nov 2010
I just tried your script in AHk_L and Basic, but could not reproduce what you are describing. Is this the entire script? Does it do this consistently? More details would be helpful. :)
"My dear Mr Gyrth, I am never more serious than when I am joking."
~Albert Campion

-----------------------------------------------------------------------------------------------
Website | Demo scripts | Blog | External contact

Alpha Bravo
  • Members
  • 1687 posts
  • Last active: Nov 07 2015 03:06 PM
  • Joined: 01 Sep 2011
I have just tried it and I have experienced the same result as the op.
AHK_L, no explanation though :shock:

dmg
  • Members
  • 2395 posts
  • Last active: Nov 04 2015 06:46 AM
  • Joined: 19 Nov 2010
My test was on XP Home SP2. Are both of you on Win7?
"My dear Mr Gyrth, I am never more serious than when I am joking."
~Albert Campion

-----------------------------------------------------------------------------------------------
Website | Demo scripts | Blog | External contact

Alpha Bravo
  • Members
  • 1687 posts
  • Last active: Nov 07 2015 03:06 PM
  • Joined: 01 Sep 2011
I am on a virtual win 7

Guest Today
  • Guests
  • Last active:
  • Joined: --
Yes, I am using Windows 7 and Autohotkey_L

and yes it is 100 percent consistent.

thanks

dmg
  • Members
  • 2395 posts
  • Last active: Nov 04 2015 06:46 AM
  • Joined: 19 Nov 2010
Hmm... I cannot see ANYTHING in that code that would put anything in the clipboard under any circumstance.

I am tempted to say it is a bug with _L and Win7, but I hesitate to submit it as such without more input. Does anyone else have any thoughts?
"My dear Mr Gyrth, I am never more serious than when I am joking."
~Albert Campion

-----------------------------------------------------------------------------------------------
Website | Demo scripts | Blog | External contact

Leef_me
  • Moderators
  • 8510 posts
  • Last active: Sep 10 2015 05:50 AM
  • Joined: 08 Apr 2009
I'm on Win7 using Ahk_basic. I confirm the odd behavior.

I rebooted my computer and tried the script again, text is still copied to the clipboard :?

Interestingly, the "gui, add, text" docs have a script example for "LaunchGoogle" that behaves the same way. :cry:

I did notice that if the 2x click is interrupted by the display of a msgbox, then the behavior is not repeated.

GeekDude
  • Spam Officer
  • 391 posts
  • Last active: Oct 05 2015 08:13 PM
  • Joined: 23 Nov 2009
Same thing happens to me