Re: Keyboard events

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Two points
1) This group is for VB6 not vb.net which is a totally different language

2) I can think of very few legitimate reasons to write a key logger, not
many people will help you write a malicious program and of course if you
were to place it on a 3rd party PC, giving you assistance could be regarded
as being an accessory to a crime.



Dave O.



"Pitaridis Aristotelis" <pitaridis@xxxxxxxxxxx> wrote in message
news:1150717995.284545@xxxxxxxxxxx
I am trying to develop a keyboard log so that I will be able to log all the
keys that pressed in my computer. I have used the GetAsyncKeyState API
function but I have a problem with the language. For example, I can not
understund if the key pressed is the english leter a or the equivalent
Greek leter. Does anyone know a way to detect the current language of the
system or an other way to solve the above problem? Below I have part of my
code in VB.NET that I use in order to chatch the keys pressed by the user.

' check for letter a
keyPressed = GetAsyncKeyState(65)
If keyPressed = -32767 Then
addKey = 'a'
GoTo KeyFound
End If

I use similar code for all the keys of the keybord in order to detect the
key that user pressed.

Thanks!

Aristotelis



.



Relevant Pages

  • Re: Tool to mark code which has been executed
    ... a external party where all coders are C# coders ... They are all VB6 developers and management ... why move them to another language. ... VB6 program while we're doing the VB.NET upgrade. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: MS, Enough is Enough!
    ... translation of VB6 would result in a messy difficult to maintain .NET ... It would have been possible to keep the existing language, but extend it to make it fully OO, and add the ability to access the .NET framework. ... There is no reason why MS could not have made VB7, which would have compiled existing VB6 code but was also fully OO. ... That doesn't stop my .NET apps being slower than my C++/VB6 native apps, or mean that my existing VB6 code-base can move forward to take advantage of the .NET framework. ...
    (microsoft.public.vb.general.discussion)
  • Re: Is my Control a cotrol array ??
    ... lower bound because the language makes using 0 more "natural". ... There would be literally hundreds of restrictions that full vb6 ... in VB6 so requiring the full syntax would not have been a code-breaking ... DOS apps still run on XP. ...
    (microsoft.public.vb.controls)
  • Re: Is my Control a cotrol array ??
    ... lower bound because the language makes using 0 more "natural". ... You don't need to gut existing syntax to ... There would be literally hundreds of restrictions that full vb6 ... DOS apps still run on XP. ...
    (microsoft.public.vb.controls)
  • Re: vb6 -v- Net!
    ... windows and the apps look comparably the same. ... language is nicer, I'll agree, but nicer doesn't get me where I want to go. ... VB Programmer make Database Frontend using Crystal Reports to generate ... And guess what the one VB6 upgrade path .NET supports? ...
    (microsoft.public.vb.general.discussion)