Sending a File (VB) - 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) +----- Forum: Plug-Ins (/forumdisplay.php?fid=28) +------ Thread: Sending a File (VB) (/showthread.php?tid=27748) Sending a File (VB) by Jutx on 06-26-2004 at 04:50 PM
not exactly sure which forum to post in so i'll post here. RE: Sending a File (VB) by Mike on 06-26-2004 at 04:56 PM
code: RE: Sending a File (VB) by Dempsey on 06-26-2004 at 04:59 PM why cant you use /dropfile? RE: Sending a File (VB) by Jutx on 06-26-2004 at 05:06 PM
quote: tags dont let you use commands in sResult thats why i cant use dropfile. edit: meh Sendkeys... is there a better way at all because i dont think sendkeys will cut it. RE: Sending a File (VB) by Mike on 06-26-2004 at 06:11 PM Clipboard then RE: Sending a File (VB) by matty on 06-26-2004 at 06:15 PM You can use PostMessage to send a message to the conversation box which will allow you to send a file without using the api, you will still have to use /dropfile tho, if you can find an example on http://www.msnfanatic.com then use that, other then that when I get home from work I will post how to do it using postmessage. RE: Sending a File (VB) by Jutx on 06-26-2004 at 08:09 PM Cheers everyone. I have found a way to do it, you can close this thread if you want. RE: Sending a File (VB) by Chestah on 06-27-2004 at 07:58 AM lol Jutx, can u please tell others how to do it RE: Sending a File (VB) by Jutx on 06-27-2004 at 11:48 AM
Just use the sendfile property of the Messenger object then use Sendkeys "{Enter}" after it because Open is the default button. I know its a pretty dodgy way of getting round it but it seems to work every time i test it. RE: Sending a File (VB) by Mike on 06-27-2004 at 12:31 PM
Sendkeys is not the best way to press a key since it wont work all the times. code:http://www.mentalis.org/apilist/keyb_event.shtml RE: Sending a File (VB) by edkwh on 06-27-2004 at 12:48 PM You could also use the Windows API functions; FindWindow and SetForegroundWindow. Use it both to make sure the SendKeys or other functions you use to send the keystrokes, works all the time. RE: Sending a File (VB) by CookieRevised on 06-27-2004 at 12:55 PM
quote:IIRC that is just the way sendkeys works in a way, it's as dodgy as the API... |