Author Topic: Keys demo example with a working library.  (Read 3017 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8235
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Keys demo example with a working library.
« on: September 09, 2014, 12:38:13 AM »
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
« Last Edit: September 09, 2014, 02:33:08 AM by hutch-- »
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 11308
  • Assembler is fun ;-)
    • MasmBasic
Re: Keys demo example with a working library.
« Reply #1 on: November 17, 2014, 07:03:39 PM »
Could the coder of these bots (#2) pleaz teach them proper English? Can't be so difficult :eusa_boohoo:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8235
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Keys demo example with a working library.
« Reply #2 on: November 17, 2014, 10:09:51 PM »
Janitor service strikes again.  :P
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

habran

  • Member
  • *****
  • Posts: 1226
    • uasm
Re: Keys demo example with a working library.
« Reply #3 on: November 17, 2014, 10:52:56 PM »
CLEANER is a better word for that ;)
Remember Harvey Keitel in a movie Pulp Fiction :badgrin:
Cod-Father

Searisava

  • Regular Member
  • *
  • Posts: 2
    • บาคาร่า
Re: Keys demo example with a working library.
« Reply #4 on: December 29, 2014, 08:23:13 PM »
Can to implement it?