Detecting 'receive msg when minimised' & running a batch - 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: Detecting 'receive msg when minimised' & running a batch (/showthread.php?tid=75006) Detecting 'receive msg when minimised' & running a batch by Dauntless on 06-03-2007 at 09:28 AM
Hi, RE: Detecting 'receive msg when minimised' & running a batch by Volv on 06-03-2007 at 10:02 AM
I think this should work, haven't tested it though: code: RE: Detecting 'receive msg when minimised' & running a batch by Dauntless on 06-03-2007 at 10:06 AM
Thank you for your little script! I'll look into the commands you have used and I'll try to figure out how it works exactly (although it looks quite self-explanatory). RE: Detecting 'receive msg when minimised' & running a batch by Dauntless on 06-03-2007 at 10:44 AM
I now have this, and it's working: code:If someone can point me to the documentation for User32.dll, that would be really helpful! RE: Detecting 'receive msg when minimised' & running a batch by TheSteve on 06-03-2007 at 01:03 PM
User32.dll is part of Windows. RE: Detecting 'receive msg when minimised' & running a batch by Dauntless on 06-03-2007 at 01:16 PM
Thank you . code:But this gives me an error: quote: RE: Detecting 'receive msg when minimised' & running a batch by CookieRevised on 06-03-2007 at 01:43 PM
ChooseColor isn't a function, it doesn't exist. If you go to the link TheSteve has posted you see a list of functions, which are called Windows API functions (for user32.dll). code:which is way shorter than using ShellExecute. RE: Detecting 'receive msg when minimised' & running a batch by Dauntless on 06-03-2007 at 01:46 PM Ow, sorry, ChooseColor isn't declared in user32.dll . But 'CreateDialog' IS, (http://msdn2.microsoft.com/en-us/library/ms645434.aspx) and I still get the 'failed to locate function' errror. RE: Detecting 'receive msg when minimised' & running a batch by Volv on 06-03-2007 at 02:16 PM
quote:Umm, you need to fill all necessary parameters as described on the MSDN page for the function (http://msdn2.microsoft.com/en-us/library/ms645434.aspx). This is done by placing extra parameters into the Interop.Call function: code:That being said, this function probably isn't the best starting place for a beginner as it requires a grasp of somewhat complex concepts. Make sure you understand exactly what the function does and what requirements it has (such as parameters and the parameter types) - all of which is usually contained on the appropriate MSDN page. RE: Detecting 'receive msg when minimised' & running a batch by Dauntless on 06-03-2007 at 02:20 PM
It was just a little test . RE: Detecting 'receive msg when minimised' & running a batch by Volv on 06-03-2007 at 02:22 PM Optional parameters usually say "Optional" somewhere (I believe they also have their parameters in square brackets: [Param1]) |