Xojo Conferences
XDCMay2019MiamiUSA

[MBS] pressKeyMBS charcodes needed (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] KeyCodesMBS not working as expected
Next thread: [MBS] Headless AWT for Java


RE: [MBS] DOM classes for Mac OS X HTMLViewer   -   Giovanni
  [MBS] pressKeyMBS charcodes needed   -   mailinglistst
   Re: [MBS] pressKeyMBS charcodes needed   -   mailinglistst
    Re: [MBS] pressKeyMBS charcodes needed   -   Christian Schmitz
   Re: [MBS] pressKeyMBS charcodes needed   -   Christian Schmitz
    Re: [MBS] pressKeyMBS charcodes needed   -   mailinglistst

[MBS] pressKeyMBS charcodes needed
Date: 01.03.08 21:12 (Sat, 1 Mar 2008 21:12:25 +0100)
From: mailinglistst
Hi List,

I'm looking for charcodes to provide to pressKeyMBS to simulate

- the return key
- the tab key
- the arrow up and the arrow down key

I think I have the VirtualCode, but I'm missing the CharCode.
This on Windows XP. On the Mac I solved things using a
CGPostKeyboardEvent Declare, for which I don't need any CharCode.
On the Mac, the codes are
return: &h24
tab : &h30 ( 48 )
arrow up: &h7E
arrow down: 125

and they probably are OK for Windows as well, but I need the CharCodes
as well. Can anyone help me?

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] pressKeyMBS charcodes needed
Date: 02.03.08 16:14 (Sun, 2 Mar 2008 16:14:49 +0100)
From: mailinglistst
I was finally able to do those keystroke using keybd_event declares
and the following codes:
return: 43
tab : 9
and wil find out the rest when needed.

I do not know enough about this stuff to point any fingers at anyone,
just glad it works out for me.
I didn't find any conclusive and complete list of keycodes versus
scancodes or charcodes anywhere.
Anyone having documentation is welcome to share it... This is really
very confusing stuff.

On 1-mrt-08, at 21:12, mailinglistst wrote:

> Hi List,
>
> I'm looking for charcodes to provide to pressKeyMBS to simulate
>
> - the return key
> - the tab key
> - the arrow up and the arrow down key
>
> I think I have the VirtualCode, but I'm missing the CharCode.
> This on Windows XP. On the Mac I solved things using a
> CGPostKeyboardEvent Declare, for which I don't need any CharCode.
> On the Mac, the codes are
> return: &h24
> tab : &h30 ( 48 )
> arrow up: &h7E
> arrow down: 125
>
> and they probably are OK for Windows as well, but I need the CharCodes
> as well. Can anyone help me?
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] pressKeyMBS charcodes needed
Date: 03.03.08 02:58 (Mon, 3 Mar 2008 02:58:27 +0100)
From: Christian Schmitz
mailinglistst <<email address removed>> wrote:

> Anyone having documentation is welcome to share it... This is really
> very confusing stuff.

Actually the keycodes class is a difficult thing for me.

On Mac OS X there is no good API to do it. The plugin uses old Carbon
calls from Mac OS Classic which are going to die someday.
Linux has an API, but works quite different.
And on Windows you can get the keyboard layout.

Gruß
Christian

-

Re: [MBS] pressKeyMBS charcodes needed
Date: 03.03.08 02:50 (Mon, 3 Mar 2008 02:50:34 +0100)
From: Christian Schmitz
mailinglistst <<email address removed>> wrote:

> Hi List,
>
> I'm looking for charcodes to provide to pressKeyMBS to simulate
>
> - the return key

ASCII: chr(13)
Mac keycode: 36
Win keycode: 9

> - the tab key

ASCII: chr(9)
Mac keycode: 48
Win keycode: 13

> - the arrow up and the arrow down key

up:
ASCII: chr(30)
Mac keycode: 126
Win keycode: 38

down:
ASCII: chr(31)
Mac keycode: 125
Win keycode: 40

> I think I have the VirtualCode, but I'm missing the CharCode.

The charcode is just the ascii value.

> This on Windows XP. On the Mac I solved things using a
> CGPostKeyboardEvent Declare, for which I don't need any CharCode.

You can use the Presskey class here, too.
It uses CGPostKeyboardEvent.

Gruß
Christian

-

Re: [MBS] pressKeyMBS charcodes needed
Date: 03.03.08 09:37 (Mon, 3 Mar 2008 09:37:57 +0100)
From: mailinglistst
Thanks Chris. I never realised they were different.

On 3-mrt-08, at 02:50, Christian Schmitz wrote:

> mailinglistst <<email address removed>> wrote:
>
>> Hi List,
>>
>> I'm looking for charcodes to provide to pressKeyMBS to simulate
>>
>> - the return key
>
> ASCII: chr(13)
> Mac keycode: 36
> Win keycode: 9
>
>> - the tab key
>
> ASCII: chr(9)
> Mac keycode: 48
> Win keycode: 13
>
>> - the arrow up and the arrow down key
>
> up:
> ASCII: chr(30)
> Mac keycode: 126
> Win keycode: 38
>
> down:
> ASCII: chr(31)
> Mac keycode: 125
> Win keycode: 40
>
>> I think I have the VirtualCode, but I'm missing the CharCode.
>
> The charcode is just the ascii value.
>
>> This on Windows XP. On the Mac I solved things using a
>> CGPostKeyboardEvent Declare, for which I don't need any CharCode.
>
> You can use the Presskey class here, too.
> It uses CGPostKeyboardEvent.
>
> Gruß
> Christian
>
> --
> Over 900 classes with 18000 functions in one REALbasic plug-in.
> The Monkeybread Software Realbasic Plugin v8.1.
>
> <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info