Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Gui click event


  • Please log in to reply
2 replies to this topic
Eddie24
  • Members
  • 40 posts
  • Last active: Mar 31 2012 05:19 PM
  • Joined: 13 Jul 2007
When the user clicks anywhere on the GUI, I want it to assign to the clipboard the value from a textbox on the GUI. How would I accomplish this?

Leef_me
  • Moderators
  • 8510 posts
  • Last active: Sep 10 2015 05:50 AM
  • Joined: 08 Apr 2009
We need more information. What is the program?
Is this your AHk gui or something else ?

Possible answers include using *lbutton:: as the hotkey and controlget??? as the way to collect the data.
Wanting to trigger this based on "clicks anywhere on the GUI" seems silly to me.

MasterFocus
  • Moderators
  • 4323 posts
  • Last active: Jan 28 2016 01:38 AM
  • Joined: 08 Apr 2009
If it's an AHK GUI, you probably need WM_LBUTTONDOWN.
Related:
- <!-- m -->http://www.autohotke...s/OnMessage.htm<!-- m -->
- <!-- l --><a class="postlink-local" href="http://www.autohotkey.com/community/viewtopic.php?f=1&t=76387">viewtopic.php?f=1&t=76387</a><!-- l -->

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Antonio Fran├ža -- git.io -- github.com -- ahk4.net -- sites.google.com -- ahkscript.org

Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.