Jump to content

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

WM_LBUTTONDOWN and return %value%


  • Please log in to reply
2 replies to this topic
Alexou
  • Members
  • 40 posts
  • Last active: Feb 02 2016 06:39 PM
  • Joined: 10 Aug 2015

Hi,

 

I need to use WM_LBUTTONDOWN for my script and i try to do somting like this : 

DriveGet, CDrive, label, C:
Gui, add, text, x10 y10 w200 h20,  % CDrive
Gui, show, w300 h300

OnMessage(0x0201, "WM_LBUTTONDOWN")

WM_LBUTTONDOWN(){
msgbox % CDrive
}

But that not work, msgbox don't give me the CDrive value.

 

How to use WM_LBUTTONDOWN to give me CDrive value ?

 

Thanks

Sorry for my poor english



Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

Try sticking Global as the first line of the WM_LBUTTONDOWN() function.



Alexou
  • Members
  • 40 posts
  • Last active: Feb 02 2016 06:39 PM
  • Joined: 10 Aug 2015

XD Thanks this is so easy