TheOnlyOne Posted April 28, 2010 Posted April 28, 2010 hey im trying to make a keyboard on numpad as it was on a mobile so i startefd at it but i cant get it to work i have tryed this expandcollapse popuphotkeyset("{numpad7}","_1") while 1 sleep(5) WEnd func _1() $2=$2+1 if $2=5 then $2=1 $timer=timerinit() Do $diff=TimerDiff($timer) until $diff>1300 switch $2 case 1 $letter="a" case 2 $letter="b" case 3 $letter="c" case 4 $letter="2" EndSwitch tooltip($letter) $1=0 if $30=false then _check() endif EndFunc func _check() $30=True $answer=$answer&$letter $slen=StringLen($answer) for $b=1 to _FileCountLines($file) $read=FileReadLine($file,$b) tooltip($answer) if stringlen($read)=$slen Then if $answer=$read Then $answer2=$read msgbox(0,"",$read) EndIf EndIf Next $30=false EndFunc but when i made this i just saw one thing when im clicking on numpad 7 it will first sellect i want an A and if i click again in lesser then 1,3 sec then i will change to b and if again then c and again 2 and then all around again but the problem is! i want to use a file where it reads words from so it will be like if i click numpad 7 it should take the letters a b c 2 and try best possible to create the next word so like if i press one time on numpad 7 and then again then it will try to spell ab or ac or aa but also when i click numpad 7 and numpad 5 (for an example) then it should post ex "ao" or "bo" or "co" but i cant get it to work ;s sorry for some bad english i hope you get what im saying
Moderators Melba23 Posted April 28, 2010 Moderators Posted April 28, 2010 TheOnlyOne, Take a look here and see how he did it. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
TheOnlyOne Posted April 29, 2010 Author Posted April 29, 2010 M23 see thats what my script just do now but the one different thing i want is when you click numpad 8 it should know there are 3 options "a" "b" "c" if you click numpad 8 again then there are different ways it can spell the next word ex. if you click numpad 8 numpad 8 numpad 8 numpad 9 it should come up with the word babe or other words it could spell to (this words stand in a file) but just how ? i cant get it to work
Moderators Melba23 Posted April 29, 2010 Moderators Posted April 29, 2010 (edited) TheOnlyOne, Ah, you want predictive text input - that is a whole new ball-game. M23 Edit: Go look here, it might help. Edited April 29, 2010 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
James Posted April 29, 2010 Posted April 29, 2010 TheOnlyOne,Check out this post. I helped someone make a keyboard which uses a pretty complete T9 dictionary. Might need to add some features etc.James Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now