Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5314

Re: SendInput - Calculator and putting numbers

From "Jamal" <jamal@examples.net>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: SendInput - Calculator and putting numbers
Date 2013-05-31 12:57 -0400
Organization Aioe.org NNTP Server
Message-ID <koakq5$dbd$1@speranza.aioe.org> (permalink)
References <ko76fn$d87$1@dont-email.me>

Show all headers | View raw


The following terminal app sample works with PostMessage( ) and WM_KEYUP. 
This may be alternate way.

FUNCTION Start()

LOCAL h AS PTR

// run MS Calculator first

h := FindWindow(NULL_PTR, String2Psz("Calculator"))


PostMessage(h, WM_KEYUP, 0x69, 0L )    // NUMPAD 9

PostMessage(h, WM_KEYUP, 0x6D, 0L )    //  NUMPAD -

PostMessage(h, WM_KEYUP, 0x65, 0L )   // NUMPAD 5

WAIT

PostMessage(h, WM_KEYUP, 0x13, 0L )  // NUMPAD ENTER

WAIT

RETURN NIL

Jamal

"Arne Ortlinghaus"  wrote in message news:ko76fn$d87$1@dont-email.me...

Has someone already used the WinAPI function Sendinput?

I have to call the windows calculator from my program and send a number.
With wm_settext and wm_paste it is not possible to put a number. Now I want
to simulate key strokes.

Arne Ortlinghaus
ACS Data Systems 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

SendInput - Calculator and putting numbers "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2013-05-30 11:39 +0200
  Re: SendInput - Calculator and putting numbers dlzc <dlzc1@cox.net> - 2013-05-30 07:10 -0700
  Re: SendInput - Calculator and putting numbers "Jamal" <jamal@examples.net> - 2013-05-31 12:57 -0400
    Re: SendInput - Calculator and putting numbers "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2013-06-03 12:10 +0200
  Re: SendInput - Calculator and putting numbers "Gerhard Bunzel" <g.bunzel@domonet.de> - 2013-06-03 13:21 +0200
    Re: SendInput - Calculator and putting numbers "Gerhard Bunzel" <g.bunzel@domonet.de> - 2013-06-03 14:01 +0200
      Re: SendInput - Calculator and putting numbers "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2013-06-04 18:07 +0200

csiph-web