|
Hi!
I have no idea, how to integrate keyboard with Flash, but i suppose that it is possible.
-Ilya
|
|
|
|
|
I dont know why but setup layoutsa not working using both the techniques.....
If it worked for any one..anyone out there please make a layout for mee too...
i need JP(japanese), IS(Indian Script hindi) and US(english)...
please please help....
Layout Code Layout Name Copyright Saved
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
/> getCode()?> getName()?> getCopyright()?>
it shows something like this when i click on index.php
and an empty page using html...
please please help....
|
|
|
|
|
Hi,
I'm trying to make an authentication page using the
Virtual Keyboard but I saw that when I use the
Virtual Keyboard the "readonly" attribute of my
input textbox changes to normal mode then I'm able
to user the fisical keyboard. I won't the user
to able to use the fisical keyboard.
It is a "by design" behavior or it is a known bug???
Thanks in advance.
César.
|
|
|
|
|
Hello César,
Do you mean that when you press a key on the physical keyboard, the 'virtual' symbol is printed in the text field?
If yes, then this is the by-design behavior of VK. This highly improves keyboard usability, because the mouse input is terribly slow.
Whether keyboard does reset the 'readonly' flag from the text field and user is able to input text when keyboard is closed, then please file a bug.
Best regards,
Ilya
|
|
|
|
|
The virtual keyboard is a very good product. However, some organizations in the US will not use it because its a non US product. This includes the government. So I encourage US based programmers to take on the task of creating a virtual keyboard.
|
|
|
|
|
Hi,
Probably there are any other options exists, beside designing a new keyboard from scratch?
--Ilya
|
|
|
|
|
I downloaded the full version.
Where/How do i change layout to pop-up? Right now it's plain text or iframe i think.
|
|
|
|
|
If you'd like to have the popup VK, please check the demo_popup.html example.
--Ilya
|
|
|
|
|
I know this is VirtualKeyboard but is there anyway we can add to Windows keyboard layout. OS before Vista does not have 3rd world country listed. There's also 3rd party keyboard layout, but I like the layout provided by this. Hope I'm making sense.
|
|
|
|
|
Hi,
Could you please explain this a bit?
--Ilya
|
|
|
|
|
well you know how windows has multi language you can setup(the language bar)where you can switch language/kblayout with ' ~ ' on Vista and some XP modified for other country. For my XP i could either use Ctrl or Alt plus Shift Key. Does that make sense? Only wish I could show picture of what i'm talking bout.
|
|
|
|
|
I'm trying to embed this VK to phpfreechat but I dont know where the text file is located to input.
"VirtualKeyboard.toggle('target_input_field_id','keyboard_holder_id');"
The first part:
type="text/javascript"
was added between the body as mentioned.
|
|
|
|
|
Hello,
I either don't know api and internals of phpfreechat.
I suggest you to ask developers on their forum, probably they will tell you where to add a button for showing the VK.
I'll take a look on this application, when i get a free time.
--Ilya
|
|
|
|
|
Ok. I finally got my button(keyboard icon)added on, but dont know how to make it link to the keyboard.
<div class="pfc_btn">
<img src="<?php echo $c->getFileUrlFromTheme('images/button_set.gif'); ?>"
alt="virtual keyboard" id=""
onclick="I know I need to put something here" />
</div>
I'd also added as insstructed.
<html>
<head>
<SCRIPT src="vk_loader.js" type="text/javascript"></SCRIPT> <-------added
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Chat Room</title>
<link rel="stylesheet" title="classic" type="text/css" href="style/generic.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/header.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/footer.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/menu.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/content.css" />
</head>
And this also as instructed.
<td class="pfc_td2">
<input type="text"
id="pfc_words"
title="<?php echo _pfc("Enter your message here"); ?>"
maxlength="<?php echo $max_text_len; ?>"/>
VirtualKeyboard.toggle('target_input_field_id','keyboard_holder_id'); <----added
</td>
|
|
|
|
|
Hi,
Ok, i got the problem. I'll try to make more comprehensive embedding instruction.
You have to alter the top code block as follows:
<br />
<div class="pfc_btn"><br />
<img src="<?php echo $c->getFileUrlFromTheme('images/button_set.gif'); ?>"<br />
alt="virtual keyboard" id=""<br />
onclick="VirtualKeyboard.toggle('pfc_words','kbd_holder');" /><br />
</div><br />
and bottom
<br />
<td class="pfc_td2"><br />
<input type="text" id="pfc_words"<br />
title="<?php echo _pfc("Enter your message here"); ?>"<br />
maxlength="<?php echo $max_text_len; ?>" /><br />
<div id="kbd_holder"></div><br />
</td><br />
This should work. =)
With the best regards,
Ilya
|
|
|
|
|
As instructed I added and did not work. I'd noticed tho that the button is above the text box on IE but left of the text box on FF. How does it knows where my virtual key board is installed? It's install root(html)/vk.
<td class="pfc_td2">
<input type="text" id="pfc_words"
title="<?php echo _pfc("Enter your message here"); ?>"
maxlength="<?php echo $max_text_len; ?>" />
<div id="kbd_holder"></div>
</td>
<td class="pfc_td3">
<input type="button"
id="pfc_send"
value="<?php echo _pfc("Send"); ?>"
title="<?php echo _pfc("Click here to send your message"); ?>"
onclick="pfc.doSendMessage()"/>
</td>
</tr>
</tbody>
</table>
<div id="pfc_cmd_container">
<?php if ($display_pfc_logo) { ?>
<a href="http://www.phpfreechat.net"
id="pfc_logo"<?php if($openlinknewwindow) echo ' onclick="window.open(this.href,\'_blank\');return false;"'; ?>>
<img src="http://www.phpfreechat.net/pub/logo2_80x15.png" width="80" height="15"
alt="<?php echo _pfc("PHP FREE CHAT [powered by phpFreeChat-%s]", $version); ?>"
title="<?php echo _pfc("PHP FREE CHAT [powered by phpFreeChat-%s]", $version); ?>" />
</a>
<?php } ?>
<?php if ($display_ping) { ?>
<span id="pfc_ping" title="<?php echo _pfc("Ping"); ?>"></span>
<?php } ?>
<div class="pfc_btn">
<img src="<?php echo $c->getFileUrlFromTheme('images/button_set.gif'); ?>"
alt="virtual keyboard" id=""
onclick="VirtualKeyboard.toggle('pfc_words','kbd_holder');" />
</div>
<div class="pfc_btn">
<img src="<?php echo $c->getFileUrlFromTheme('images/logout.gif'); ?>"
alt="" title=""
id="pfc_loginlogout"
onclick="pfc.connect_disconnect()" />
|
|
|
|
|
Hi,
You've to provide the proper URL in the included <script> tag.
As soon as you put VK into the /vk/ folder in the site root, you've to include VK script as follows:
<br />
<script type="text/javascript" src="/vk/vk_loader.js"></script><br />
If VK has been put under the phpfreechat's root (it might be different from the site root), you've to use (note, there's no leading slash in the "src" attribute).
<br />
<script type="text/javascript" src="vk/vk_loader.js"></script><br />
Regarding the container layout, you've to alter CSS rules for it. For example, use the following container definition
<br />
<div id="kbd_holder" style="clear: both;" ></div><br />
Wbr,
Ilya
|
|
|
|
|
OK, i guess the first info was correct. Just add those two lines. I just didn't direct it to the right folder that's why it didn't work the first time.
Thanks you for you help and patients.
|
|
|
|
|
Hello,
Congratulatuions! =)
I saw your chat, it looks really smooth =)
May i ask you publish complete changes you made to integrate VK with phpfreechat?
I'll be glad to publish this info on VK project site for reference.
Wbr,
Ilya
|
|
|
|
|
I'm sorry, what are you asking?
Here is what I posted at phpfreechat forum since they werent so helpful.
Incase your language is not listed in PFC you have 2 options.
1. You can install Unicode application(Vista has most installed)
2. You can get virtual keyboard from http://www.codeproject.com/KB/scripting/jsvk.aspx
All you have to do is upload all the files and folder to the server.
Open up PFC index.php and add this
<SCRIPT src="vk_loader.js" type="text/javascript"></SCRIPT> in the head
if you uploaded to particular folder, you will need to correct the src="xxx"
example <SCRIPT src="/virtualkeybaord/vk_loader.js" type="text/javascript"></SCRIPT>
Next, go to /themes/default and open up chat.html.tpl.php and add this
<div id="kbd_holder"></div> at the end of <td class="pfc_td2">
It should look like this:
<td class="pfc_td2">
<input type="text"
id="pfc_words"
title="<?php echo _pfc("Enter your message here"); ?>"
maxlength="<?php echo $max_text_len; ?>"/>
<div id="kbd_holder"></div>
</td>
Then you'll need to add the button
<div class="pfc_btn">
<img src="<?php echo $c->getFileUrlFromTheme('images/yourkeyboard.gif'); ?>"
alt="virtual keyboard" id=""
onclick="VirtualKeyboard.toggle('pfc_words','kbd_holder');" />
</div>
That should work.
You can come test it at www.kevinsradio.com/test
click on the keyboard and select your language/country
With some editing you can have it popup or iframe as shown.
|
|
|
|
|
Thank you, this is exactly i've asked you to describe.
|
|
|
|
|
Hi,
I've created an MSKLC file from the Windows Hebrew keyboard, that includes some SGCaps keys, but after I imported it into VirtualKeyboard, I still can't get it to produce the SGCaps characters in the layout, neither on the on-screen keyboard or by caps+shift+key.
If you want the KLC file I've used, tell me and I'll send it gladly.
This is the relevant part of layouts/layouts.js:
VirtualKeyboard.addLayout({code:'HW-IL',name:'Hebrew LN',<br />
keys:[59,49,50,51,52,53,54,55,56,57,48,45,61,92,47,39,1511,1512,1488,1496,1493,1503,1501,1508,93,91,1513,1491,1490,1499,1506,1497,1495,1500,1498,1507,44,1494,1505,1489,1492,1504,1502,1510,1514,1509,46]<br />
,shift:{0:[126,33,64,35,36,37,94,38,42,41,40,95,43,124,81,87,69,82,84,89,85,73,79,80,125,123,65,83,68,70,71,72,74,75,76,58,34,90,88,67,86,66,78,77,62,60,63]}<br />
,alt:{4:[8362],11:[1471],16:[8364],20:[1520],31:[1522,1521]}<br />
});
Thank you,
Liron.
|
|
|
|
|
Hi Liron,
SGCaps keys are not compatible with the JSVK. There's no good way in detecting caps lock on/pressed state and virtual keys has no space for more symbols, as well.
Please use the alt+ctrl (AltGr) sequences.
Thank you for choosing VK for your project.
With the best regards,
Ilya
|
|
|
|
|
Hi Ilya,
Thank *you* for JSVK! It's the best web VK I've seen.
Regarding the SGCaps -
1. On the virtual keyboard - The SGCap output symbols should only be shown when capslock is pressed anyway, so it shouldn't take more space.
2. Detecting capslock - JSVK detects capslock now, as far as I can tell (When I hit capslock, the symbols on the VK change if I'm on Chinese Simple Pinyin), why can't this info be used for SGCaps?
I might implement it myself if you're too busy, I'd be glad to contribute to such a great project - just give me a few pointers on where to start (I'm hoping I'll have time myself).
Regards,
Liron.
|
|
|
|
|
Hi Liron,
Most VK skins does show normal, shift and alt key states, except for shift state equal to the uppercased "normal" symbol. SGCaps symbols should fit on the key too, but i don't see a space for them. For example, take a look at Brazilian Portugese / winxp.
If you could solve this issue, SGCaps would be great addition to the VK, but note - there's AltGr+shift mode exists.... =)
Probably, it would be easier for using standard AltGr?
SGCaps implementation list:
1) Layout design (button sizes, colors, etc)
2) Update of a .klc files compilers (both javascript and php)
3) Update of addLayout/prepareLayout/getKeyboardHtml/updateLayout methods for building keyboard UI
4) Update keyClicker method and all the logic, responsible for processing keyboard states.
This would take a time... and a deep regression testing.
With the best regards,
Ilya
|
|
|
|
|