KeyBoard event when form is not active?
-
Try the form's Deactivate event. Or setting forms Top most property ot true.. But i believe that this works only among .Net apps
Shyam.. My Blog dotnetscoups.blogspot.com
-
//this code from codeproject.com i could give you the keyward //but i forget it so... //this code in main form and the other in new class.....have fun UserActivityHook u; string s = ""; private void Form1_Load(object sender, EventArgs e) { u = new UserActivityHook(); u.KeyPress += new KeyPressEventHandler(Form1_KeyPress); } private void Form1_KeyPress(object sender, KeyPressEventArgs e) { s += e.KeyChar.ToString(); } ------------------------------------ using System; using System.Runtime.InteropServices; using System.Reflection; using System.Threading; using System.Windows.Forms; using System.ComponentModel; namespace gma.System.Windows { /// <summary> /// This class allows you to tap keyboard and mouse and / or to detect their activity even when an /// application runes in background or does not have any user interface at all. This class raises /// common .NET events with KeyEventArgs and MouseEventArgs so you can easily retrive any information you need. /// </summary> public class UserActivityHook { #region Windows structure definitions /// <summary> /// The POINT structure defines the x- and y- coordinates of a point. /// </summary> /// <remarks> /// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/rectangl\_0tiq.asp /// </remarks> [StructLayout(LayoutKind.Sequential)] private class POINT { /// <summary> /// Specifies the x-coordinate of the point. /// </summary> public int x; /// <summary> /// Specifies the y-coordinate of the point. /// </summary> public int y; } /// <summary> /// The MOUSEHOOKSTRUCT structure contains information about a mouse event passed to a WH_MOUSE hook procedure, MouseProc. /// </summary> /// <remarks> /// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookstructures/cwpstruct.asp /// </remarks> [StructLayout(LayoutKind.Sequential)] private class MouseHookStruct { /// <summary> /// Specifies a POINT structure that contains the x- and y-coordinates of the cursor,
-
//this code from codeproject.com i could give you the keyward //but i forget it so... //this code in main form and the other in new class.....have fun UserActivityHook u; string s = ""; private void Form1_Load(object sender, EventArgs e) { u = new UserActivityHook(); u.KeyPress += new KeyPressEventHandler(Form1_KeyPress); } private void Form1_KeyPress(object sender, KeyPressEventArgs e) { s += e.KeyChar.ToString(); } ------------------------------------ using System; using System.Runtime.InteropServices; using System.Reflection; using System.Threading; using System.Windows.Forms; using System.ComponentModel; namespace gma.System.Windows { /// <summary> /// This class allows you to tap keyboard and mouse and / or to detect their activity even when an /// application runes in background or does not have any user interface at all. This class raises /// common .NET events with KeyEventArgs and MouseEventArgs so you can easily retrive any information you need. /// </summary> public class UserActivityHook { #region Windows structure definitions /// <summary> /// The POINT structure defines the x- and y- coordinates of a point. /// </summary> /// <remarks> /// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/rectangl\_0tiq.asp /// </remarks> [StructLayout(LayoutKind.Sequential)] private class POINT { /// <summary> /// Specifies the x-coordinate of the point. /// </summary> public int x; /// <summary> /// Specifies the y-coordinate of the point. /// </summary> public int y; } /// <summary> /// The MOUSEHOOKSTRUCT structure contains information about a mouse event passed to a WH_MOUSE hook procedure, MouseProc. /// </summary> /// <remarks> /// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookstructures/cwpstruct.asp /// </remarks> [StructLayout(LayoutKind.Sequential)] private class MouseHookStruct { /// <summary> /// Specifies a POINT structure that contains the x- and y-coordinates of the cursor,
nice :wtf:
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can