What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Release] Voice Clip Sender

1 votes - 5 average   [Release] Voice Clip Sender
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: RE: [Release] Voice Clip Sender
quote:
Originally posted by deAd
quote:
Originally posted by CookieRevised
1) It is not always the same (as in a subdir under the application directory) for everybody when they first install Plus!.
2) _every_ directory under Documents and settings (including documents & settings itself) can be renamed and moved by the Windows user.


And even if nothing changed, you must never ever hard code a path.

I have changed the code to get the path using SHGetFolderPath. It will be changed in the next update :). I have not accounted for (1) yet, and imo (2) is pretty unlikely -- wouldn't that screw up Plus! as well?

this still isn't correct....

The proper and only correct way to get to the custom sound dir is using the exact same method as Plus! uses, which is:
1) get the APPDATA path by using the SHGetSpecialFolderLocation (with CSIDL_COMMON_APPDATA) and SHGetPathFromIDList APIs
2) If no path is returned or those functions fail, get Plus!'s installation directory from the registry, and append the subdirectory "Data" to it.
3) Only after doing all that, you can append the directory "Messenger Plus!\Custom Sounds" to the path you get from 1 or 2.

^^ trade secret here? :D;)

quote:
Originally posted by deAd
wouldn't that screw up Plus! as well?
no as Plus! uses proper methods to get paths like "documents and settings", "program files", etc, etc... it uses the SHGetSpecialFolderPath , SHGetSpecialFolderLocation, SHGetPathFromIDList, etc APIs like every program should (and does).

;)

This post was edited on 12-22-2006 at 12:58 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-22-2006 12:28 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Release] Voice Clip Sender - by deAd on 12-20-2006 at 10:04 PM
RE: [Release] Voice Clip Sender - by prashker on 12-20-2006 at 10:08 PM
RE: RE: [Release] Voice Clip Sender - by deAd on 12-21-2006 at 06:01 PM
RE: [Release] Voice Clip Sender - by NanaFreak on 12-21-2006 at 03:32 AM
RE: [Release] Voice Clip Sender - by Ace-_Ventura on 12-21-2006 at 07:51 PM
RE: [Release] Voice Clip Sender - by deAd on 12-21-2006 at 08:24 PM
RE: [Release] Voice Clip Sender - by Fuse on 12-21-2006 at 08:40 PM
RE: RE: [Release] Voice Clip Sender - by deAd on 12-21-2006 at 09:11 PM
RE: [Release] Voice Clip Sender - by Ace-_Ventura on 12-21-2006 at 11:05 PM
RE: RE: [Release] Voice Clip Sender - by deAd on 12-21-2006 at 11:21 PM
RE: RE: RE: [Release] Voice Clip Sender - by CookieRevised on 12-21-2006 at 11:59 PM
RE: RE: RE: RE: [Release] Voice Clip Sender - by deAd on 12-22-2006 at 12:02 AM
RE: [Release] Voice Clip Sender - by Ace-_Ventura on 12-22-2006 at 12:09 AM
RE: [Release] Voice Clip Sender - by CookieRevised on 12-22-2006 at 12:10 AM
RE: RE: [Release] Voice Clip Sender - by deAd on 12-22-2006 at 12:17 AM
RE: RE: RE: [Release] Voice Clip Sender - by CookieRevised on 12-22-2006 at 12:28 AM
RE: RE: RE: RE: [Release] Voice Clip Sender - by deAd on 12-22-2006 at 12:49 AM
RE: [Release] Voice Clip Sender - by Grue on 12-22-2006 at 07:04 AM
RE: [Release] Voice Clip Sender - by Matti on 12-22-2006 at 09:32 AM
RE: [Release] Voice Clip Sender - by RaPLeX on 12-22-2006 at 11:56 AM
RE: RE: [Release] Voice Clip Sender - by deAd on 12-22-2006 at 04:30 PM
RE: [Release] Voice Clip Sender - by deAd on 12-22-2006 at 07:19 PM
RE: [Release] Voice Clip Sender - by Felu on 12-23-2006 at 02:49 AM
RE: RE: [Release] Voice Clip Sender - by deAd on 12-23-2006 at 03:25 AM
RE: [Release] Voice Clip Sender - by CookieRevised on 12-23-2006 at 06:57 AM
RE: [Release] Voice Clip Sender - by Felu on 12-23-2006 at 07:35 AM
RE: [Release] Voice Clip Sender - by jameslives on 12-23-2006 at 01:26 PM
RE: [Release] Voice Clip Sender - by deAd on 12-23-2006 at 02:47 PM
RE: [Release] Voice Clip Sender - by jameslives on 12-23-2006 at 03:17 PM
RE: [Release] Voice Clip Sender - by deAd on 12-23-2006 at 03:20 PM
RE: [Release] Voice Clip Sender - by jameslives on 12-23-2006 at 03:47 PM
RE: [Release] Voice Clip Sender - by deAd on 12-23-2006 at 04:52 PM
RE: [Release] Voice Clip Sender - by jameslives on 12-23-2006 at 07:22 PM
RE: RE: [Release] Voice Clip Sender - by deAd on 12-23-2006 at 09:04 PM
RE: [Release] Voice Clip Sender - by jameslives on 12-24-2006 at 10:51 AM
RE: [Release] Voice Clip Sender - by Fuse on 12-24-2006 at 10:55 AM
RE: [Release] Voice Clip Sender - by ehbk2006 on 12-27-2006 at 10:11 PM
RE: RE: [Release] Voice Clip Sender - by deAd on 12-27-2006 at 10:59 PM
RE: RE: RE: [Release] Voice Clip Sender - by CookieRevised on 12-29-2006 at 08:38 AM
RE: [Release] Voice Clip Sender - by ehbk2006 on 12-28-2006 at 02:18 PM
RE: [Release] Voice Clip Sender - by nothingbetter2do on 02-26-2007 at 11:25 PM
RE: RE: [Release] Voice Clip Sender - by deAd on 02-26-2007 at 11:34 PM
RE: RE: RE: [Release] Voice Clip Sender - by Ace-_Ventura on 04-20-2007 at 05:45 PM
RE: RE: RE: RE: [Release] Voice Clip Sender - by deAd on 04-20-2007 at 08:54 PM
RE: RE: RE: RE: RE: [Release] Voice Clip Sender - by V@no on 08-15-2009 at 08:20 PM
RE: [Release] Voice Clip Sender - by Morpheus on 09-21-2007 at 07:55 PM
RE: [Release] Voice Clip Sender - by Morpheus on 09-22-2007 at 01:04 PM
RE: [Release] Voice Clip Sender - by Morpheus on 09-22-2007 at 01:22 PM
RE: [Release] Voice Clip Sender - by Blue_Ninja0 on 05-16-2009 at 12:11 AM
RE: [Release] Voice Clip Sender - by ahmetgns on 05-23-2009 at 04:26 PM
RE: [Release] Voice Clip Sender - by DepecheNYC on 11-07-2009 at 05:01 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