Jump to content

mobile fone keyboard


Recommended Posts

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

hotkeyset("{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

Link to comment
Share on other sites

  • Moderators

TheOnlyOne,

Take a look here and see how he did it. :idea:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Moderators

TheOnlyOne,

Ah, you want predictive text input - that is a whole new ball-game.

M23

Edit: Go look here, it might help. :idea:

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...