Hi Everybody,
I am trying to find a way to create a macro for the end user of my application.
I would like to have them do someting like press F5 and have the text "HELLO" inserted into a get.
Any Ideas?
Thanks,
Jeff
FUNCTION POSTSTRING( hWnd, cString )
LOCAL i, c
DEFAULT hWnd := GETACTIVEWINDOW()
FOR i = 1 TO LEN( cString )
c = SUBSTR( cString, i, 1 )
IF c > " "
POSTMESSAGE( hWnd, WM_CHAR, ASC( c ) )
ELSE
POSTMESSAGE( hWnd, WM_KEYDOWN, ASC( c ) )
ENDIF
SYSREFRESH()
NEXT
RETURN NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 39 guests