Hello Everyone again!
i had an idea to minimize or close my app when i press a key combo(like CTRL+E or something). Now i know how to minimize and close the app, i can do that either using the win api using the DestroyWindow method or the CloseWindow(this is to minimize the app) method
i also want to be able to press CTRl+B or some sort of key combo and bring the app to the front of the window stack(or window chain or whatever its called) i can do this by calling the BringWindowToTop method in the windows api
what i don't know how to do is how do i tell my app to execute those functions when a keyboard combo is pressed globally, or i should say when my app has focus or not.
i have a felling i will be referring to the win api and the User32.dll method list for this job right?(Gosh i hate using P/Invoke, its so complicated to use unmanned C++)
For the functions i want to do(like minimizing the window and bringing it to the front) i have imported the following methods:
[DllImport("user32.dll")]
using System.Runtime.InteropServices;
public static extern void DestroyWindow(IntPtr hWnd);
[DllImport("user32.dll")]
public static extern void CloseWindow(IntPtr hWnd);
[DllImport("user32.dll")]
public static extern void BringWindowToTop(IntPtr hWnd);
thanks for all of your help in advance,
MasterCodeon