Help With PlusWnd.GetControlText - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Help With PlusWnd.GetControlText (/showthread.php?tid=75083) Help With PlusWnd.GetControlText by pedro_cesar on 06-05-2007 at 04:39 PM
I have this -piece- of XMl code: code: And this -piece- of JScript code: code: but I dunno where the pics are being saved, 'cause they don't go to the path I type in "pathEdit" neither to the script's directory How do I pass correctly what was typed in "pathEdit" to a variable so later I can use that in the StealDp function? RE: Help With PlusWnd.GetControlText by matty on 06-05-2007 at 04:45 PM
quote:Can you post the rest of the XML? Did you change the Window ID? If so then you need to correct your OnWindowIdEvent_CtrlClicked() quote: Just making your routine better code: quote:Make a global variable code: RE: Help With PlusWnd.GetControlText by pedro_cesar on 06-06-2007 at 04:02 PM
I've been testing the script and I know where the problem is: The dir_path variable is taking the path ok, but at this line the script takes it the wrong way: RE: Help With PlusWnd.GetControlText by Matti on 06-06-2007 at 04:11 PM
Add a backslash! code: RE: Help With PlusWnd.GetControlText by pedro_cesar on 06-06-2007 at 05:05 PM
It doesn't work and this is the error: code: Is something like: code: I know the error is about the path not existing. How can I create a directory from "run"? RE: Help With PlusWnd.GetControlText by matty on 06-06-2007 at 06:16 PM Why dont you post all the code you have I will correct it and repost it. Just zip it all up. RE: RE: Help With PlusWnd.GetControlText by vikke on 06-06-2007 at 06:48 PM
You can use the FileSystemObject, as you call oFSO in order to create files/folders. Here you can find documentation for FSO: quote:Because he wants to learn. RE: Help With PlusWnd.GetControlText by Volv on 06-07-2007 at 01:36 AM The problem is that you can't copy the file to a directory which doesn't exist. You either have to create the directory through the script as vikke suggested or create it manually - creating manually is a decent method and saves effort if the directory is in the actual script's directory (ie. it will be included with the script package). RE: Help With PlusWnd.GetControlText by matty on 06-07-2007 at 02:12 AM
Just use the API MakeSureDirectoryPathExists from the imagehlp.dll library. code: http://msdn2.microsoft.com/en-us/library/ms680352.aspx RE: Help With PlusWnd.GetControlText by pedro_cesar on 06-07-2007 at 05:23 PM Thanks vikke for that great link, I'm getting my hands on it now, I hope it helps with what I need, yet I found so usefull I put it in my favorites RE: Help With PlusWnd.GetControlText by saralk on 06-07-2007 at 08:25 PM not to rain on your parade, but isn't there a DP stealer built into plus already? RE: Help With PlusWnd.GetControlText by Volv on 06-08-2007 at 01:57 AM
quote:Umm... no? But there have been quite a few released scripts which have DP-stealing capabilities (found in the Mockers and Content Stealing category of the scripts database). RE: Help With PlusWnd.GetControlText by pedro_cesar on 06-09-2007 at 11:51 AM The Cex Clone 1.0 on the Mockers and Content Stealing is mine, and I'm trying to make it better, that's why I'm posting all this. RE: RE: Help With PlusWnd.GetControlText by vikke on 06-09-2007 at 12:51 PM
quote:There is a feature which enables you to save contacts DP into a png whereever you want on the harddrive. To do this, in your conversation, goto Plus!->Contact Information, then click Save "Display Picture". RE: Help With PlusWnd.GetControlText by pedro_cesar on 06-10-2007 at 09:50 PM I, for example. woud have to do that for 450 times. The Script is for all -loaded- Dps on your contact list. Besides the script does other things too. |