Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: GetAsyncKeyState in diffrent languages Pin
Eddy Vluggen28-Jun-12 8:31
professionalEddy Vluggen28-Jun-12 8:31 
GeneralRe: GetAsyncKeyState in diffrent languages Pin
Luc Pattyn28-Jun-12 8:39
sitebuilderLuc Pattyn28-Jun-12 8:39 
GeneralRe: GetAsyncKeyState in diffrent languages Pin
Eddy Vluggen28-Jun-12 8:55
professionalEddy Vluggen28-Jun-12 8:55 
GeneralRe: GetAsyncKeyState in diffrent languages Pin
a.fatemeh28-Jun-12 8:44
a.fatemeh28-Jun-12 8:44 
GeneralRe: GetAsyncKeyState in diffrent languages Pin
Eddy Vluggen28-Jun-12 8:59
professionalEddy Vluggen28-Jun-12 8:59 
GeneralRe: GetAsyncKeyState in diffrent languages Pin
a.fatemeh28-Jun-12 9:31
a.fatemeh28-Jun-12 9:31 
GeneralRe: GetAsyncKeyState in diffrent languages Pin
Eddy Vluggen29-Jun-12 0:36
professionalEddy Vluggen29-Jun-12 0:36 
GeneralRe: GetAsyncKeyState in diffrent languages Pin
a.fatemeh29-Jun-12 4:23
a.fatemeh29-Jun-12 4:23 
Smile | :) yes,it's kind of my answer ,the code has problem which one of them was mentioned below the code is that MapVirtualKey actually returns a uint, not an int.
part of Mycode is as below but it's just show nothing which I couldn't find where the problem is;
C#
//vkey is an arrey of virtualkeycode for example Vkey[1, 35] = 0x5A which is for Z;
const uint MAPVK_VK_TO_VSC_EX = 0x04;
const uint KLF_ACTIVATE = 0x00000001;
textBox2.Text = InputLanguage.CurrentInputLanguage.Culture.EnglishName;
for (int i=0; i<120; i++)
   {
     if(  (KeyLogger.Methods.GetAsyncKeyState(Vkey[1,i])== 1) || (KeyLogger.Methods.GetAsyncKeyState(Vkey[1,i]) == Int16.MinValue))
           {
                   uint temp=KeyLogger.Methods.MapVirtualKeyEx((Convert.ToUInt32(Vkey[1,i])),MAPVK_VK_TO_VSC_EX,KeyLogger.Methods.LoadKeyboardLayout(InputLanguage.CurrentInputLanguage.Culture.KeyboardLayoutId.ToString(),KLF_ACTIVATE));
                   StringBuilder keyname=new StringBuilder();
                   int nsize=50;
                    if (KeyLogger.Methods.GetKeyNameText(Convert.ToInt32(temp),keyname,nsize) !=0)
                    {
                        keyBuffer+=keyname.ToString();
                    }
            }
    }
             if (keyBuffer != string.Empty)
                 textBox1.Text=keyBuffer;

QuestionGeneric method in generic method Pin
Mc_Topaz28-Jun-12 6:39
Mc_Topaz28-Jun-12 6:39 
AnswerRe: Generic method in generic method Pin
PIEBALDconsult28-Jun-12 6:45
mvePIEBALDconsult28-Jun-12 6:45 
GeneralRe: Generic method in generic method Pin
Mc_Topaz28-Jun-12 12:07
Mc_Topaz28-Jun-12 12:07 
AnswerRe: Generic method in generic method Pin
Luc Pattyn28-Jun-12 6:49
sitebuilderLuc Pattyn28-Jun-12 6:49 
GeneralRe: Generic method in generic method Pin
Mc_Topaz28-Jun-12 12:08
Mc_Topaz28-Jun-12 12:08 
QuestionC:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0 not seen by visual studio Pin
AstroBod42728-Jun-12 5:16
AstroBod42728-Jun-12 5:16 
AnswerRe: C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0 not seen by visual studio Pin
Abhinav S28-Jun-12 6:33
Abhinav S28-Jun-12 6:33 
GeneralLooking for help with double clicking on a line of text in a text box Pin
turbosupramk328-Jun-12 4:18
turbosupramk328-Jun-12 4:18 
AnswerRe: Looking for help with double clicking on a line of text in a text box Pin
Eddy Vluggen28-Jun-12 4:47
professionalEddy Vluggen28-Jun-12 4:47 
GeneralRe: Looking for help with double clicking on a line of text in a text box Pin
Luc Pattyn28-Jun-12 4:59
sitebuilderLuc Pattyn28-Jun-12 4:59 
GeneralRe: Looking for help with double clicking on a line of text in a text box Pin
Pete O'Hanlon28-Jun-12 5:10
mvePete O'Hanlon28-Jun-12 5:10 
GeneralRe: Looking for help with double clicking on a line of text in a text box Pin
turbosupramk328-Jun-12 7:21
turbosupramk328-Jun-12 7:21 
GeneralRe: Looking for help with double clicking on a line of text in a text box Pin
Pete O'Hanlon28-Jun-12 8:18
mvePete O'Hanlon28-Jun-12 8:18 
GeneralRe: Looking for help with double clicking on a line of text in a text box Pin
turbosupramk328-Jun-12 8:30
turbosupramk328-Jun-12 8:30 
GeneralRe: Looking for help with double clicking on a line of text in a text box Pin
turbosupramk328-Jun-12 5:34
turbosupramk328-Jun-12 5:34 
GeneralRe: Looking for help with double clicking on a line of text in a text box Pin
Pete O'Hanlon28-Jun-12 5:38
mvePete O'Hanlon28-Jun-12 5:38 
QuestionCorrect way of doing installer in Windows.... Pin
glennPattonWork328-Jun-12 3:58
professionalglennPattonWork328-Jun-12 3:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.