Injecting Drag/Drop message.
BlitzMax Forums/BlitzMax Programming/Injecting Drag/Drop message.
| ||
Hi, Anyone knows if it's possible for an application to send Drag/Drop function to another application? I'll explain a little further, I'm creating a media player, and when the user dubbleclicks on a music file in explorer the media player will open it and play it, but if there already is an instance of the media player opened, I want the new one to send the file/files the user clicked on through the Drag/Drop function, and then exit. I've looked into the Win32 API a bit, but I'm so not good with externs etc, Any help appritiated :) |
| ||
pretty sure you can use Extern "Win32" Function SendMessage:Int(hWnd:Int, MSG:Int, wParam:Int, lParam:Int) = "SendMessageA@16" End Extern for this sort of thing, but you'll have to find the correct variables to use with it. |
| ||
Yeah, I've looked into that function, but I can't get any further :/ Don't know what message to send etc :/ |
| ||
readup on it on MSDN at microsoft. Its a windows api function |