News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Keys demo example with a working library.

Started by hutch--, September 09, 2014, 12:38:13 AM

Previous topic - Next topic

hutch--

I have put together a demo using the key procedures that seemed to work OK, a couple of macros in the include file and a batch file to build the library that contains the procedures.

It is bundled with a text editor rom the masm32 examples so that they keys used to operate the menu would remain the same across different language and OS versions. It starts the editor, types in a quote from Hamlet then uses the C text macro to type in a quote from Lewis Carroll's "Through The Looking Glass".

It then opens the file save as dialog and saves the file to disk.

The only real weakness I can find is you must not click the mouse while the keys are being sent as you change the focus and the key get sent almost anywhere. You also need to be careful with some repeat keys as you can lose one if you don't specify a time lag between them.

PS: I found the solution to the mouse clicks while its running.

    fn BlockInput,TRUE      ; before to disable the mouse
    fn BlockInput,FALSE    ; after to re-enable the mouse

jj2007

Could the coder of these bots (#2) pleaz teach them proper English? Can't be so difficult :eusa_boohoo:

hutch--


habran

CLEANER is a better word for that ;)
Remember Harvey Keitel in a movie Pulp Fiction :badgrin:
Cod-Father