AutoHotkey Community

It is currently May 27th, 2012, 1:05 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: November 13th, 2011, 8:14 pm 
Offline

Joined: September 17th, 2011, 5:44 am
Posts: 16
Hi again
Using Arts Unicode variation I was able to get this to work with a button, But I cant for the life of me get it to work with an image.

Code:
Gui, Add, Picture, x219 y105 w50 h50 Background Trans HwndPicture_Hwnd gItem1, C:\!-Gui\Pirate GUI\coin2.png
AddTooltip(Item1,"AHK Read Me file")


Can you see where I am messin up?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2011, 8:27 pm 
Offline

Joined: October 13th, 2009, 10:09 pm
Posts: 1389
You're supplying the name of the g-label, not the hwnd.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Ok, I figured it out.
PostPosted: November 13th, 2011, 9:08 pm 
Offline

Joined: September 17th, 2011, 5:44 am
Posts: 16
I actually had the wrong version of AHK installed.
I would have sworn that it was current, BUT.....as it turns out I was wrong. Sorry for the bother

Installed: AuhoHotKey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Clarify please
PostPosted: November 13th, 2011, 9:14 pm 
Offline

Joined: September 17th, 2011, 5:44 am
Posts: 16
fragman wrote:
You're supplying the name of the g-label, not the hwnd.


Greetings fragman,
I am new to this, so can you tell me, where do I find the needed hwnd.
As you can see, I was able to get it going by upgrading, but a little info can go a long ways ;-)

Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Clarify please
PostPosted: November 14th, 2011, 3:38 am 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
tfwall112 wrote:
fragman wrote:
You're supplying the name of the g-label, not the hwnd.


Greetings fragman,
I am new to this, so can you tell me, where do I find the needed hwnd.
As you can see, I was able to get it going by upgrading, but a little info can go a long ways ;-)

Thanks

The first parameter of the AddToolip function is CtrlHwnd which represents the hWnd (handle) of the control. fragman was just pointing out that instead of supplying the handle to the control (Picture_Hwnd) to the function, you entered the g-label (Item1) instead. The correct code might look something like this:

Code:
Gui, Add, Picture, x219 y105 w50 h50 Background Trans HwndPicture_Hwnd gItem1, C:\!-Gui\Pirate GUI\coin2.png
AddTooltip(Picture_Hwnd,"AHK Read Me file")

I hope this helps.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Clarify please
PostPosted: November 14th, 2011, 1:51 pm 
Offline

Joined: September 17th, 2011, 5:44 am
Posts: 16
jballi wrote:
tfwall112 wrote:
fragman wrote:
You're supplying the name of the g-label, not the hwnd.


Greetings fragman,
I am new to this, so can you tell me, where do I find the needed hwnd.
As you can see, I was able to get it going by upgrading, but a little info can go a long ways ;-)

Thanks

The first parameter of the AddToolip function is CtrlHwnd which represents the hWnd (handle) of the control. fragman was just pointing out that instead of supplying the handle to the control (Picture_Hwnd) to the function, you entered the g-label (Item1) instead. The correct code might look something like this:

Code:
Gui, Add, Picture, x219 y105 w50 h50 Background Trans HwndPicture_Hwnd gItem1, C:\!-Gui\Pirate GUI\coin2.png
AddTooltip(Picture_Hwnd,"AHK Read Me file")

I hope this helps.


Ahh, I see it now...... wow something so simple ;-)
Thanks jballi, much appreciated


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2012, 8:56 am 
Offline

Joined: July 20th, 2009, 6:01 am
Posts: 166
Location: Amsterdam
Perfect! Thank you Superfraggle, Fragman (if you aren't the same person as Superfraggle?), and Art for inventing and improving this function, and for making it compatible with AHK_L! I really needed a simple tooltip function that doesn't depend on libraries. Works perfectly.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2, 3

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Bon, sks and 17 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