auto accept and run - 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: auto accept and run (/showthread.php?tid=93169) auto accept and run by SourSpud on 12-10-2009 at 01:34 AM
I was woundering can anyone make a script when someone sends me a picture it will auto accept and open the file, for security only have it open the file it the extension ends in either jpg, png or gif. RE: auto accept and run by blessedguy on 12-10-2009 at 01:40 AM iirc, Plus! can't detect activity related to file sharing (please correct me if I'm wrong), and the auto-accepting feature can be enabled under Plus!>Preferences>Conversations, bottom part of the window. RE: auto accept and run by SourSpud on 12-10-2009 at 07:24 PM I am pretty sure I have heard someone say it is possible. RE: auto accept and run by matty on 12-10-2009 at 07:43 PM The OnEvent_ChatWndReceiveMessage doesn't work for file transfers. There is no way to know if it is finished without constantly polling the history text. RE: auto accept and run by SourSpud on 12-10-2009 at 08:32 PM
would that be hard matty? RE: RE: auto accept and run by ryxdp on 12-11-2009 at 05:16 AM
quote: Probably not, but it would certainly be inefficient compared to what we could do if we had greater access to the internal workings of Messenger through Scripting. Perhaps we may get a huge overhaul of the Scripting Engine in MP!L5, along with other changes. RE: auto accept and run by CookieRevised on 12-11-2009 at 05:34 AM
quote:To start with, see your other thread where you asked the opposite (to check when a file transfer, which you have initiated, finishes): dont show sent file Everything said there applies for this too. Thus also the complexity of the whole thing. Although for checking when the file has been recieved, it is a bit less complex because you don't need to deal with so many possible messages. However, the counter side is that, as matty said, you need to constantly poll and process the history text which can take a relative fair bit of processing by Messenger and thus might slow things down depending on the frequency of checking. Nutshell: yes, it is possible for files _other_ than pictures, in most cases*, and it would be easier than the other way around, but it comes with a downside: the need to constant poll the history. * there is always one scenario where such stuff will fail: if you or your contact initiated a transfer and cancels the transfer before something is send and before saying anything else. In that case no action message is send to either of you and thus this can not be detected by these methods. ------------------------- However, it is not possible with these methods to detect the file type before the file is actually successfully received. So you can not automatically accept just a picture and not accept the rest. You need to accept all files. This said, even files with other extensions can be pictures too. And vice-versa: a file with the extension png, jpg or gif is not always a real picture. Especially for the png file type, it is sometimes used to send a desguised virus. Hence the png file type is considered more dangerous than the others. There actually once was a big security hole in Windows, and thus Messenger, regarding this (when you opened a special crafted PNG file in a MS program, remote code could be executed). But more importantly: to do what you want your contact also needs to disable Photo Sharing! And seeing that most people haven't disabled Photo Sharing (can only be done by patching messenger because there is no out-of-the-box option for it), the picture will always be sent with Photo Sharing, making this whole 'constantly check history' method completely useless. In fact, a file transfer wont be used at all when your contact sends you a picture. RE: auto accept and run by SourSpud on 12-11-2009 at 05:54 AM Thats for the replys guys, I din't know that about the png file, i will be more aware when receiving pictures over messenger. RE: auto accept and run by CookieRevised on 12-11-2009 at 06:08 AM [OFFTOPIC] quote:The only way to prevent such stuff is to keep your Windows up to date by visiting Windows Update, installing the latest Service Packs, and/or have automatic updates in Windows turned on. And using the latest versions of programs. [/OFFTOPIC] |