What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Handle of a PictureElement

Handle of a PictureElement
Author: Message:
effection
Full Member
***

Destroy The Runner

Posts: 135
Reputation: 4
– / Male / Flag
Joined: Sep 2006
O.P. Huh?  Handle of a PictureElement
I'm struggling to get the handle of a PictureElement which i want to be able to hide and show in the end, but the handle always returns 0.

var Handle = ReadWindow_Wnd.GetControlHandle("imgYes");
Debug.trace("Handle: "+Handle);

"Handle: 0"

Can anyone help :)?
12-13-2007 06:39 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Handle of a PictureElement
ImageElements don't have a control handle, as they aren't controls. Plus! Live itself draws the figures and images using the Windows GDI before the controls get drawn.

However, there's a simple work-around. Create a 1 pixel by 1 pixel PNG image which is empty (i.e.: the only pixel is a fully transparent one) and name it "none.png" or something. Then, use ImageElmt_SetImageFile to set the ImageElement's image to that image. This way, it will draw nothing visible. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-13-2007 07:06 PM
Profile E-Mail PM Web Find Quote Report
effection
Full Member
***

Destroy The Runner

Posts: 135
Reputation: 4
– / Male / Flag
Joined: Sep 2006
O.P. RE: Handle of a PictureElement
ah right good solution :D thanks
12-13-2007 07:18 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On