From: <nic...@us...> - 2014-01-08 16:12:02
|
Revision: 4716 http://sourceforge.net/p/mp-plugins/code/4716 Author: nicsergio Date: 2014-01-08 16:11:59 +0000 (Wed, 08 Jan 2014) Log Message: ----------- Modified Paths: -------------- trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx Added Paths: ----------- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs Removed Paths: ------------- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/UnlockKeys.cs Modified: trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln 2014-01-05 14:41:43 UTC (rev 4715) +++ trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln 2014-01-08 16:11:59 UTC (rev 4716) @@ -25,7 +25,6 @@ GlobalSection(ProjectConfigurationPlatforms) = postSolution {350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Debug|Any CPU.ActiveCfg = DLL|x86 {350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Debug|Mixed Platforms.ActiveCfg = DLL|x86 - {350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Debug|Mixed Platforms.Build.0 = DLL|x86 {350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Debug|x86.ActiveCfg = DLL|x86 {350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Debug|x86.Build.0 = DLL|x86 {350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Release|Any CPU.ActiveCfg = DLL|x86 @@ -36,7 +35,6 @@ {4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Debug|Any CPU.ActiveCfg = Release|Any CPU {4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Debug|Any CPU.Build.0 = Release|Any CPU {4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Debug|Mixed Platforms.ActiveCfg = Release|Any CPU - {4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Debug|Mixed Platforms.Build.0 = Release|Any CPU {4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Debug|x86.ActiveCfg = Release|Any CPU {4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Release|Any CPU.ActiveCfg = Release|Any CPU {4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Release|Any CPU.Build.0 = Release|Any CPU Added: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs (rev 0) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs 2014-01-08 16:11:59 UTC (rev 4716) @@ -0,0 +1,62 @@ +using System; +using System.Runtime.InteropServices; +using System.Windows.Forms; +using System.ComponentModel; + +namespace ProcessPlugins.ShortCuter +{ + internal static class LockKeys //Classe per disattivazione blocco maiuscole/numeri + { + #region Costanti + const int KEYEVENTF_EXTENDEDKEY = 0x1; //Da impostare come flag per far precedere il codice per la scansione HW dal byte 0xE0 (tasti estesi) + const int KEYEVENTF_KEYUP = 0x2; //Da impostare come flag per ottenere l'azione di rilascio del tasto + const int VK_NUMLOCK = 0x90; //Codice VirtualKey di NumLock + const int HK_NUMLOCK = 0x45; //Codice HardwareKey di NumLock (per scansione HW -> bScan) + const int VK_CAPITAL = 0x14; //Codice VirtualKey di CapsLock + const int SC_CAPITAL = 0x3A; //Codice HardwareKey di CapsLock (per scansione HW -> bScan) + + public enum LockKeyTypes + { + ForceOff = 0, + [Description("Force OFF (reccomended)")] + HereIsAnother = 2, + [Description("Last one")] + LastOne = 3 + } + + + #endregion + + #region Metodi Pubblici + public static bool ResetCapsLock() //Richesta di disattivazione CapsLock + { + if (Control.IsKeyLocked(Keys.CapsLock)) //Se CapsLock attivo + { + keybd_event(VK_CAPITAL, SC_CAPITAL, 0, (UIntPtr)0); //--> simulazione pressione del tasto CapsLock + keybd_event(VK_CAPITAL, SC_CAPITAL, KEYEVENTF_KEYUP, (UIntPtr)0); //--> simulazione rilascio del tasto CapsLock + return true; //--> CapsLock disattivato + } + else + return false; //--> stato CapsLock non modificato + } + public static bool ResetNumLock() //Richesta di disattivazione NumLock + { + if (Control.IsKeyLocked(Keys.NumLock)) //Se NumLock attivo + { + keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0); //--> simulazione pressione del tasto NumLock + keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, + (UIntPtr)0); //--> simulazione rilascio del tasto NumLock + return true; //--> NumLock disattivato + } + else + return false; //--> stato NumLock non modificato + } + #endregion + + #region Importazione DLL + //Simulazione eventi di tastiera + [DllImport("user32.dll")] + static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, UIntPtr dwExtraInfo); + #endregion + } +} Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-05 14:41:43 UTC (rev 4715) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-08 16:11:59 UTC (rev 4716) @@ -31,10 +31,10 @@ string settingsFile = Config.GetFile(Config.Dir.Config, Tools.MyAssembly.Name + ".xml"); myShortCuts = new ShortCuts(settingsFile, false); //--> lettura configurazione relativa agli shortcuts if (myShortCuts.GeneralResetCapsLock) - if (UnlockKeys.ResetCapsLock()) + if (LockKeys.ResetCapsLock()) MpLog(false, "CapsLock deactivated"); //--> disattivazione CapsLock if (myShortCuts.GeneralResetNumLock) - if (UnlockKeys.ResetNumLock()) + if (LockKeys.ResetNumLock()) MpLog(false, "NumLock deactivated"); //--> disattivazione NumLock if (myShortCuts.Initialized) //Se classe di gestione shortcut inizializzata { Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-05 14:41:43 UTC (rev 4715) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-08 16:11:59 UTC (rev 4716) @@ -6,7 +6,7 @@ <ProductVersion>8.0.30703</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}</ProjectGuid> - <OutputType>Library</OutputType> + <OutputType>WinExe</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>ProcessPlugins.ShortCuter</RootNamespace> <AssemblyName>ShortCuter</AssemblyName> @@ -83,7 +83,7 @@ </Compile> <Compile Include="KeyboardHookWorker.cs" /> <Compile Include="KeyboardHook.cs" /> - <Compile Include="UnlockKeys.cs" /> + <Compile Include="LockKeys.cs" /> <Compile Include="Program.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\Resources.Designer.cs"> Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-05 14:41:43 UTC (rev 4715) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-08 16:11:59 UTC (rev 4716) @@ -55,8 +55,6 @@ this.propLeftPictureBox = new System.Windows.Forms.PictureBox(); this.saveButton = new System.Windows.Forms.Button(); this.overridesGroupBox = new System.Windows.Forms.GroupBox(); - this.resetNumLockCheckBox = new System.Windows.Forms.CheckBox(); - this.resetCapsLockCheckBox = new System.Windows.Forms.CheckBox(); ((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).BeginInit(); this.itemsTabControl.SuspendLayout(); this.linksTabPage.SuspendLayout(); @@ -67,7 +65,6 @@ this.skinFileGroupBox.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).BeginInit(); - this.overridesGroupBox.SuspendLayout(); this.SuspendLayout(); // // shortCutsDataGridView @@ -348,40 +345,14 @@ // // overridesGroupBox // - this.overridesGroupBox.Controls.Add(this.resetNumLockCheckBox); - this.overridesGroupBox.Controls.Add(this.resetCapsLockCheckBox); this.overridesGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.overridesGroupBox.Location = new System.Drawing.Point(6, 216); + this.overridesGroupBox.Location = new System.Drawing.Point(6, 200); this.overridesGroupBox.Name = "overridesGroupBox"; - this.overridesGroupBox.Size = new System.Drawing.Size(320, 45); + this.overridesGroupBox.Size = new System.Drawing.Size(320, 61); this.overridesGroupBox.TabIndex = 37; this.overridesGroupBox.TabStop = false; this.overridesGroupBox.Text = "Overrides at Start-Up"; // - // resetNumLockCheckBox - // - this.resetNumLockCheckBox.AutoSize = true; - this.resetNumLockCheckBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.resetNumLockCheckBox.Location = new System.Drawing.Point(204, 22); - this.resetNumLockCheckBox.Name = "resetNumLockCheckBox"; - this.resetNumLockCheckBox.Size = new System.Drawing.Size(106, 17); - this.resetNumLockCheckBox.TabIndex = 7; - this.resetNumLockCheckBox.Text = "Reset Num-Lock"; - this.resetNumLockCheckBox.UseVisualStyleBackColor = true; - this.resetNumLockCheckBox.CheckedChanged += new System.EventHandler(this.resetNumLockCheckBox_CheckedChanged); - // - // resetCapsLockCheckBox - // - this.resetCapsLockCheckBox.AutoSize = true; - this.resetCapsLockCheckBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.resetCapsLockCheckBox.Location = new System.Drawing.Point(6, 22); - this.resetCapsLockCheckBox.Name = "resetCapsLockCheckBox"; - this.resetCapsLockCheckBox.Size = new System.Drawing.Size(108, 17); - this.resetCapsLockCheckBox.TabIndex = 6; - this.resetCapsLockCheckBox.Text = "Reset Caps-Lock"; - this.resetCapsLockCheckBox.UseVisualStyleBackColor = true; - this.resetCapsLockCheckBox.CheckedChanged += new System.EventHandler(this.resetCapsLockCheckBox_CheckedChanged); - // // ShortCuterForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -420,8 +391,6 @@ this.skinFileGroupBox.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).EndInit(); - this.overridesGroupBox.ResumeLayout(false); - this.overridesGroupBox.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); @@ -453,8 +422,6 @@ private System.Windows.Forms.Button saveButton; private System.Windows.Forms.TextBox loadParameterTextBox; private System.Windows.Forms.GroupBox overridesGroupBox; - private System.Windows.Forms.CheckBox resetNumLockCheckBox; - private System.Windows.Forms.CheckBox resetCapsLockCheckBox; } } \ No newline at end of file Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-05 14:41:43 UTC (rev 4715) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-08 16:11:59 UTC (rev 4716) @@ -35,8 +35,10 @@ mySkin.FillTreeViewSkinLinks(skinLinksTreeView); skinLinksTreeView.CollapseAll(); FormatShortCutsGrid(); + resetCapsLockCheckBox.Checked = myShortCuts.GeneralResetCapsLock; resetNumLockCheckBox.Checked = myShortCuts.GeneralResetNumLock; + toolTip.SetToolTip(skinFilesListBox, "Double click to set the link's parameter to shortcut"); toolTip.SetToolTip(skinLinksTreeView, "Double click to set the link's parameter to shortcut"); toolTip.SetToolTip(rowAddButton, "Add shortcut to list"); Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx 2014-01-05 14:41:43 UTC (rev 4715) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx 2014-01-08 16:11:59 UTC (rev 4716) @@ -117,87 +117,9 @@ <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> - <metadata name="shortCutsDataGridView.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="itemsTabControl.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="linksTabPage.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="skinLinksTreeView.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="skinTabPage.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="skinFilesListBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="linkPropertiesGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="loadParameterGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="loadParameterTextBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="windowIdGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="windowIdLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="skinFileGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="skinFileLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>4, 2</value> </metadata> - <metadata name="updateButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="resetButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="rowDownButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="rowUpButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="infoPictureBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="rowRemoveButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="rowAddButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="propLeftPictureBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="saveButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="overridesGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="resetNumLockCheckBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="resetCapsLockCheckBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> - <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </metadata> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>25</value> </metadata> Deleted: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/UnlockKeys.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/UnlockKeys.cs 2014-01-05 14:41:43 UTC (rev 4715) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/UnlockKeys.cs 2014-01-08 16:11:59 UTC (rev 4716) @@ -1,50 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Windows.Forms; - -namespace ProcessPlugins.ShortCuter -{ - internal static class UnlockKeys //Classe per disattivazione blocco maiuscole/numeri - { - #region Costanti - const int KEYEVENTF_EXTENDEDKEY = 0x1; //Da impostare come flag per far precedere il codice per la scansione HW dal byte 0xE0 (tasti estesi) - const int KEYEVENTF_KEYUP = 0x2; //Da impostare come flag per ottenere l'azione di rilascio del tasto - const int VK_NUMLOCK = 0x90; //Codice VirtualKey di NumLock - const int HK_NUMLOCK = 0x45; //Codice HardwareKey di NumLock (per scansione HW -> bScan) - const int VK_CAPITAL = 0x14; //Codice VirtualKey di CapsLock - const int SC_CAPITAL = 0x3A; //Codice HardwareKey di CapsLock (per scansione HW -> bScan) - #endregion - - #region Metodi Pubblici - public static bool ResetCapsLock() //Richesta di disattivazione CapsLock - { - if (Control.IsKeyLocked(Keys.CapsLock)) //Se CapsLock attivo - { - keybd_event(VK_CAPITAL, SC_CAPITAL, 0, (UIntPtr)0); //--> simulazione pressione del tasto CapsLock - keybd_event(VK_CAPITAL, SC_CAPITAL, KEYEVENTF_KEYUP, (UIntPtr)0); //--> simulazione rilascio del tasto CapsLock - return true; //--> CapsLock disattivato - } - else - return false; //--> stato CapsLock non modificato - } - public static bool ResetNumLock() //Richesta di disattivazione NumLock - { - if (Control.IsKeyLocked(Keys.NumLock)) //Se NumLock attivo - { - keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0); //--> simulazione pressione del tasto NumLock - keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, - (UIntPtr)0); //--> simulazione rilascio del tasto NumLock - return true; //--> NumLock disattivato - } - else - return false; //--> stato NumLock non modificato - } - #endregion - - #region Importazione DLL - //Simulazione eventi di tastiera - [DllImport("user32.dll")] - static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, UIntPtr dwExtraInfo); - #endregion - } -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |