Sign in to follow this  
Followers 0
jestermgee

Nokia Styled Textbox

4 posts in this topic

OK, so I can do batch programming and i'm not a complete noob but I haven't really done much with more powerful script language but i'm willing to learn....

Does anybody know how I could go about creating a tool that when called, opens a simple text box for data input for HTPC use. Using the numbers on the remote control (mapped to drive the number keys on the PC), would there be a way of being able to type in this text box by pressing the numbers (EG press 2 = A, B, C, 2) then after about 1 second it would allow for the next letter input?

The next part of this would be the need to send this data back to the application that the text box opened on top of. If it opened over the top of notepad then it would dump this text into notepad...

The text box would need to be of a resonable size (PT 16-22) for CRT monitors.

In my mind their should be a way, but i'm WAY off being able to do this yet, just would like some input, hints or code to get me started unless ur clever enough to figure it out :)

Cheers

Share this post


Link to post
Share on other sites



You could check the key state of the 0-9 keys with _IsPressed, and build the GUI as big as you like with large text using Koda.

paullab has a T9 style input here, but it requires a text file full of words to predict: http://www.autoitscript.com/forum/index.php?showtopic=51793

This is kind of a big project to start off with though, and there isn't much in the way of examples to work with. Don't get discouraged though, I'm sure it can be done, it's just not going to be exceedingly easy.


[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Share this post


Link to post
Share on other sites

I went ahead and coded up a demo. Your question was interesting to me, and I don't think anyone here has done anything that would really get you close to where you want to be without suffering through a long learning curve.

Enjoy:

http://www.autoitscript.com/forum/index.php?showtopic=54476


[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Share this post


Link to post
Share on other sites

paullab has a T9 style input here, but it requires a text file full of words to predict: http://www.autoitscript.com/forum/index.php?showtopic=51793

As a btw when T16 is active you can

use the / on the numpad to Toggle input State T16(1), Num(2), Type(3), 'Case'(4)

where Input Modes are:

T16: predictive input mode using the num keypad and a T16 word list.

you MUST be in 'T16' or 'Num' mode to send text to your target applicatoin.

Num: deactivate T16 input and enable the num keypad for normal use with the exception that

'/', '*' and 'Enter' are still hooked.

Type: deactivate T16 input and type using the keypad

e.g. double 8 = b

triple 8 = c

single 9 = d

etc.

Case: is only there to enable you to toggle the case of input text using the * key

Ab c - Sentence case (Default)

Ab C - Title Case

ABC - Upper Case

abc - Lower case

if however you are looking for simple typing, then your solution is a lot more elegant


Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0