Entry
TSE: Event: Function/Procedure: Autocomplete: How to get the last partial word typed?
Apr 22nd, 2005 11:35
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 21 April 2005 - 04:02 pm ----------------------
TSE: Event: Function/Procedure: Autocomplete: How to get the last
partial word typed?
---
You might use the event
_AFTER_COMMAND_
---
---
1. -Choose your event
e.g.
_AFTER_COMMAND_
2. -Create the corresponding function
you want to have executed when that
event happens
e.g.
--- cut here: begin --------------------------------------------------
PROC PROCAfterCommand()
Message( GetWord( TRUE ) )
END
--- cut here: end ----------------------------------------------------
3. -Connect this event to your function
Hook( <event name>, <your function name> )
so here
Hook( _AFTER_COMMAND_, PROCAfterCommand )
4. -So alltogether you might get the following source code
--- cut here: begin --------------------------------------------------
PROC PROCAfterCommand()
Message( GetWord( TRUE ) )
END
PROC Main()
Hook( _AFTER_COMMAND_, PROCAfterCommand )
END
--- cut here: end ----------------------------------------------------
5. -If you run this macro, the
latest typed word will be shown
while you are typing
---
---
Source: Carlo Hoogeveen
---
---
Internet: see also:
---
TSE: Event: Link: Overview: Can you give an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/35749/fid/1796
----------------------------------------------------------------------