my 1st program "Virtual Keyboard" [POC]
|
10-02-2015, 11:31 AM
(This post was last modified: 10-06-2015 03:38 PM by primer.)
Post: #1
|
|||
|
|||
my 1st program "Virtual Keyboard" [POC]
Hello,
Here is my first program, a virtual keyboard for the prime, because changing orange key can't be performed by a firmware update Well, don't be too enthusiastic, it's a first version, I had 2 free hours, it's only a "Proof of concept", it's ugly and not yet feature complete. But at least, here are working features : * moving cursor with left/right keys * accept entry with ENTER key (or tap on right side) * cancel entry by ESC key * adding char at the end of the or in the middle (depending on cursor location) * removing char at the end or middle... with "<=" (del) key. * space key to add a space * blinking cursor Run the program with vkb or in USER mode with alpha dot key (.) As it's a very first version, you may encounter bugs, you are wellcome to report it. Note I had trouble to work with MOUSE(), there is probably a way to enhance what I did, if someone want to take a look at my getmouse() function to leave me advices. I'm not sure if I should better check for MOUSE(4)==1 for type or not... There is a feature that is not developed yet is to switch upper/lowercase... more feature to come, depending on your interests... Code:
vkb.hpprgm (Size: 6.12 KB / Downloads: 24) edit : new vesion : key must be released, #pragma added Let me know your feeling. Best Regards, primer |
|||
10-02-2015, 11:37 AM
Post: #2
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
Awesome ! I love this blinking cursor. We could use it in custom text and formula editor.
|
|||
10-02-2015, 11:48 AM
Post: #3
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
(10-02-2015 11:37 AM)xset Wrote: Awesome ! I love this blinking cursor. We could use it in custom text and formula editor.Thank you, In fact, this blinking cursor is just a quick workaround, because I wanted first to have a blue cursor, but because of that it was not possible I don't like so much the way I implemented it because I re-draw every time the text with the (blinking) cursor, it's not what I planed to do if I had a way to get width and height of a textout. Also the box around the text could have correct height with such a function. Regards, primer |
|||
10-02-2015, 02:04 PM
Post: #4
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
I get an error syntax here:
https://cloudup.com/cSoRYBbru8x But great idea! maybe it will be possible to write a proper UI all in user code haha! with the editor xset wants to make, etc. My website: ried.cl |
|||
10-02-2015, 04:21 PM
Post: #5
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
a quick update,
- added #pragma that could help to fix issue - changed the way it acquire key by mouse : you must release your finger : this is to avoid too much key to be scanned when holding too long the screen. new version on first post. primer |
|||
10-03-2015, 01:46 PM
Post: #6
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
(10-02-2015 11:48 AM)primer Wrote: In fact, this blinking cursor is just a quick workaround, because I wanted first to have a blue cursor, but because of that it was not possible I think I have a solution to your problem. Tonight I'll show functions that calculate the width and height of the text very quickly Piotr Kowalewski |
|||
10-03-2015, 07:49 PM
Post: #7
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
Here is the solution:
http://www.hpmuseum.org/forum/thread-485...l#pid43391 Note that these functions overwrite the G9 GROB. Piotr Kowalewski |
|||
10-03-2015, 09:56 PM
(This post was last modified: 10-03-2015 10:04 PM by ji3m.)
Post: #8
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
Great. But is it possinle to post a .txt file. These can be cross loaded to the prime for android.
hpprgm cannot (as ive tried) since they are pseudo binary (they show in some text editors,but are really ghosts). I work with android Prime only for now on my Galaxy Tab Pro/Note 2 |
|||
10-04-2015, 09:15 PM
(This post was last modified: 10-04-2015 09:21 PM by primer.)
Post: #9
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
Hi,
(10-03-2015 07:49 PM)komame Wrote: Here is the solution:Thank you very much koname, I was not here these days, I'll check your solution. (10-03-2015 09:56 PM)ji3m Wrote: Great. But is it possinle to post a .txt file. These can be cross loaded to the prime for android....Hi ji3m, did you try the inline code from 1st post? I've copied and paste my program in text mode in the post itself, let me know (pm) if you can't use it ? Regards, primer |
|||
10-08-2015, 12:38 PM
Post: #10
|
|||
|
|||
my 1st program "Virtual Keyboard" [beta]
Hi,
Here is beta version for virtual keyboard. Changelog:
vkb.hpprgm (Size: 10.76 KB / Downloads: 22) Best Regards, primer |
|||
10-09-2015, 04:14 PM
Post: #11
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
indisputably! it is a very nice program, and very nice UI. Excuse my ignorance! but where can I actually use this keyboard? because right now it only shows any text I type in it. Is this the way we are supposed to use it? I mean what's the point to display a text and then it goes away?
Spybot. |
|||
10-09-2015, 07:53 PM
Post: #12
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
(10-09-2015 04:14 PM)Spybot Wrote: indisputably! it is a very nice program, and very nice UI. Excuse my ignorance! but where can I actually use this keyboard? because right now it only shows any text I type in it. Is this the way we are supposed to use it? I mean what's the point to display a text and then it goes away? It is only a proof of a concept. It will never be an overlay or something used system wide without proper system extensions. My website: ried.cl |
|||
10-09-2015, 08:35 PM
Post: #13
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
(10-09-2015 07:53 PM)eried Wrote: It is only a proof of a concept. It will never be an overlay or something used system wide without proper system extensions.Indeed, I only allow to type new text, you cant edit (modify) a program for example. (10-09-2015 04:14 PM)Spybot Wrote: Is this the way we are supposed to use it? I mean what's the point to display a text and then it goes away?no, it does not go away, you press ENTER and text you typed is now on your entry. for example, you can go to program, "new" and then (in user mode) alpha-dot gives the vkb, you type a function name, enter, and what you typed is in your program. What eried mentioned about system extension is the fact, that once it's in your program you cannot modify it with vkb anymore. There will not probably have any way to integrate in the future, but ok... as it I find it helpfull enouh to use it every times I need to type a word. hence I share it in just case I'm not alone to find it usefull. primer |
|||
10-10-2015, 04:39 AM
Post: #14
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
I see, That was probably just a dumb question, no mean to bother anyone. thank you for the explanations.
Spybot. |
|||
10-12-2015, 01:19 PM
Post: #15
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
(10-04-2015 09:15 PM)primer Wrote: Hi, I work with android Prime only for now on my Galaxy Tab Pro/Note 2 |
|||
10-12-2015, 01:25 PM
Post: #16
|
|||
|
|||
RE: my 1st program "Virtual Keyboard" [POC]
I did copy/paste of the inline sourc which I frequently do.
But it wont compile. It gives me an error on lines like If c==".." then .... The error is before the then word. This is very strange so I thought maybe there were some bogus characters in the file. I work with android Prime only for now on my Galaxy Tab Pro/Note 2 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)