Recently Browsing 0 members
No registered users viewing this page.
Here's my take on an auto completer, work in progress so don't be too harsh with me.
The idea is that after a spacebar press, it learns the word that was previously written, and the next time you write, it gets a list of all words that fit into what you're writing, so if the user writes "com", a word that may appear is "complex", that is, if the user has written it anytime in the past.
A popup will show up whenever the user writes with the list of words, the way to select one of the words from the list is to scroll with the mouse wheel, and middle click. The popup timeout is 2.5 secs.
PS for the next step would be nice to save words as they are, for example emails, as it is it doesn't get @ for example.
Rich-Edit Predict Text UDF
It sub classes the rich-edit control and matches the current word through the Database
& sets selection in accordance.
For Edit Controls look
Predicts Text from an User-Defined Database. Sets the Predicted Text when Enter is pressed. Pressing Backspace deletes the previously typed character. Support Editing, Overwriting, Updating, Deleting the Database. Has the Feature to add New words the user types in the control, to the Database. Supports Sensitive and In-Sensitive Prediction. Currently Supports Auto-completion only. Rich Edit Controls only supported Future UpdatesSupport Auto-suggestion. Note That if you set a Password Char for the Edit Box the Prediction will automatically get Unregistered.This UDF requires Beta Release 220.127.116.11++ [beta-Oct-2012]
; #CURRENT# ===================================================================================================================== ;_RegisterPrediction ;_UpdatePredictList ;_UnRegisterPrediction ;_RegisterListingSpaceWords ;_RegisterListingNewWords ;_GetSelectedText ;_GetListCount ;_GetCurrentWord ;_GetCaretOffset ; =============================================================================================================================== ; #INTERNAL_USE_ONLY# =========================================================================================================== ;_New_WndProc ; AddToArray ; MakeArray ;_RichEdit_SubClass ;_AutoExit ;_PredictText ;_PredictSpaceText ;_SetSelection ;_MatchString ;_CtrlSetStyle ;_CtrlGetStyle ;_RemoveBit ; ===============================================================================================================================
Please Notify for any other Updates and Bugs.
v1.0 - First Release
v1.1 - Fixed a bug.
RichEditPredictText [uDF] v1.1
v1.1 RichEditPredictText UDF.7z
Previous Downloads : 80
I want to run a function when a GUI window is resized. However, when I click to resize the GUI, before I actually drag the corner of the GUI it runs and prevents me from resizing the GUI. I was hoping that I would be able to make this message run once the GUI has finished running. Would this be possible?
I have solved it. The answer:
GUISetOnEvent($GUI_EVENT_RESIZED, 'WM_SIZE', $hWnd)