FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

SendUnicodeKeystroke troubles

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
DerPeter
Newbie


Joined: 29 May 2007
Posts: 1

PostPosted: Tue May 29, 2007 2:12 pm    Post subject: SendUnicodeKeystroke troubles Reply with quote

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
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Tue May 29, 2007 3:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
bennicklen
Newbie


Joined: 28 Oct 2007
Posts: 5
Location: UK

PostPosted: Sun Feb 10, 2008 10:42 am    Post subject: Reply with quote

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
View user's profile Send private message
thechronicles
Newbie


Joined: 16 Aug 2008
Posts: 7

PostPosted: Tue Aug 19, 2008 1:10 pm    Post subject: Reply with quote

in this thread you can find script for keyboard combine with Mouse for HTC Serie. althoud not yet perfect

http://www.salling.com/forums/viewtopic.php?t=6452
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group