What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Trouble using ImageElmt_SetImageFile()

[?] Trouble using ImageElmt_SetImageFile()
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: [?] Trouble using ImageElmt_SetImageFile()
quote:
Originally posted by matty
This should be classified as a bug in Plus!. The prepending the backslash is to make the script search for an absolute path not relative to the Scripts folder. However I can see that Plus! searchs the Images folder and if no match is found looks in the resources. It should be implemented that scripts use res:icon-speaker to load a resource. This would help with using resources and absolute paths. In my opinion this is a bug. Anyone agree?
Yes, it's quite odd that a backslash should be used to load Plus!' own resources... :S
I suggest Plus! should act like this:
  • Check if "icon-speaker" is in the script's Images directory. If it is, use that image file.
  • Else, check if "icon-speaker" is in Plus!' own resources. If it is, use that resource. Else, the function fails and the ImageElement's image is cleared.
Of course, the "res:xxx" option is also possible, but I think it's a bit strange because you'd expect the parameter to look like a normal file path... But it is even worse if you have to place a backslash in front of a resource of Plus! itself, I agree with you there. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
04-22-2008 06:44 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] Trouble using ImageElmt_SetImageFile() - by Skarbo on 04-22-2008 at 03:02 PM
RE: [?] Trouble using ImageElmt_SetImageFile() - by pollolibredegrasa on 04-22-2008 at 03:15 PM
RE: [?] Trouble using ImageElmt_SetImageFile() - by matty on 04-22-2008 at 05:28 PM
RE: [?] Trouble using ImageElmt_SetImageFile() - by Skarbo on 04-22-2008 at 05:51 PM
RE: [?] Trouble using ImageElmt_SetImageFile() - by Matti on 04-22-2008 at 06:44 PM


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