View previous topic :: View next topic |
Author |
Message |
DerPeter Newbie
Joined: 29 May 2007 Posts: 1
|
Posted: Tue May 29, 2007 2:12 pm Post subject: SendUnicodeKeystroke troubles |
|
|
I am using an Mda Vario which has a full qwertz keyboard.
I do now want to use this keyboard to type on my computer via Salling Clicker.
[code:1]ShowMessage(theKey);[/code:1] perfectly shows the keys i am pushing on my device, even caps work. Numbers are shown without apostrophes: [code:1]1[/code:1] letters with apostrophes: [code:1]'A'[/code:1] the spacebar produces some hex-value (something like that): [code:1]0x002[/code:1]
So far so good, but when I want to use the following function:
[code:1]SendUnicodeKeystroke(theKey);[/code:1] something unexpected happens:
[code:1]SendUnicodeKeystroke('A');[/code:1] produces no result
[code:1]SendUnicodeKeystroke(41);[/code:1] produces an [code:1]([/code:1]
So the characters coming from the phone are perfectly fine, but the SendUnicodeKeystroke-function does not accept them.
What function to use? I don't want to write a script with a thousand if-staments, because all the characters are there already.
Please help
Peter |
|
Back to top |
|
 |
salling Site Admin
Joined: 27 Jul 2004 Posts: 7498 Location: Stockholm, Sweden
|
Posted: Tue May 29, 2007 3:13 pm Post subject: |
|
|
SendUnicodeKeystroke(41);
This will produce a ')' for this reason:
[code:1] The decimal set:
0 nul 1 soh 2 stx 3 etx 4 eot 5 enq 6 ack 7 bel
8 bs 9 ht 10 nl 11 vt 12 np 13 cr 14 so 15 si
16 dle 17 dc1 18 dc2 19 dc3 20 dc4 21 nak 22 syn 23 etb
24 can 25 em 26 sub 27 esc 28 fs 29 gs 30 rs 31 us
32 sp 33 ! 34 " 35 # 36 $ 37 % 38 & 39 '
40 ( 41 ) 42 * 43 + 44 , 45 - 46 . 47 /
[/code:1]
If you want an "A", pass 0x41 instead.
Best.
--
Jonas |
|
Back to top |
|
 |
bennicklen Newbie
Joined: 28 Oct 2007 Posts: 5 Location: UK
|
Posted: Sun Feb 10, 2008 10:42 am Post subject: |
|
|
Hi
I was wondering how you got on with this script as i have a HTC TYTN II and am just starting to write one as i can't find find one to download. I don't suppose you would like to share yours before i start would you?
Thanks
Ben |
|
Back to top |
|
 |
thechronicles Newbie
Joined: 16 Aug 2008 Posts: 7
|
|
Back to top |
|
 |
|