Windows.forms.keys collection
- From: "Oguzhan Filizlibay" <someemail@xxxxxxxxxxxxxx>
- Date: Sun, 13 May 2007 02:05:02 +0300
Hi all,
I have the below code for sending each character in a string as a Keys.x enumeration. I've found that when I convert the char, it does not match the enumeration item index and thereby generates a very random output. Any ideas on how I can convert chars to their right equivalent in the Keys enumeration.
thanks,
as an example:
Dim strCaseID As String = "s"
For Each c As Char In strCaseID
Dim key As UInteger = Convert.ToInt16(c)
DoKeyBoard(0, key)
DoKeyBoard(NativeMethods.KEYEVENTF.KEYUP, key)
Next
in this example s is somehow translated into 115 and this translates to Keys.F4, which actually should be an 83 to be indicated right..
.
- Follow-Ups:
- Re: Windows.forms.keys collection
- From: Peter Duniho
- Re: Windows.forms.keys collection
- From: Brian Schwartz
- Re: Windows.forms.keys collection
- Prev by Date: Re: Detecting .NET assemblies from native apps
- Next by Date: Re: newsgroup for VSTO 2005
- Previous by thread: Re: Detecting .NET assemblies from native apps
- Next by thread: Re: Windows.forms.keys collection
- Index(es):
Relevant Pages
|