Re: Sendkeys / keybd_event Suggestion and Help Nneeded

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



JF,

I'm a noob here and as most am looking for a quick and easy solution.
How difficult can it be to spawn a process, send a keystroke, wait 3
seconds, send another keystroke, wait 3 seconds and then kill the
spawned application (actually the second keystroke will kill the
application so it's really this:

spawn a process
wait 3 seconds
send a keystroke
wait 3 seconds
send a keystroke (this one, ESC, kills the app)

I have spent the last 6 hours reading about shell, wait, API process
calls, SendMessage API. PostMessage API, Sleep API and other to the
point that I'm not sure what method I shyould be using is. As far as
your AX EXE suggestion, I have never attempted something like that and
it sounds over my head.

John

J French wrote:
On 14 Aug 2006 09:28:31 -0700, jcrouse1@xxxxxxxxxxx wrote:

J French,
Thank you for the reply. I am somewhat familiar with what you are
talking about. I have used it in VB .Net. I will look into it.

If you think there is a better method please go on. I wrote the parent
app myself so I have full control over it if I need to do anything to
the code.

You wrote both Apps ?

In that case the world is your oyster
- make the one you want to control an AX EXE
... or anything

Not sure about the .NET stuff
- we tend to be VB5/6 here

.



Relevant Pages

  • Keystroke
    ... did any of you have a idea how can i trap the ... keystroke in word document .is their any API which keep ...
    (microsoft.public.word.customization.menustoolbars)
  • Re: Expanding Python as a macro language
    ... > But the problem is that in Linux you can't even send a keystroke to ... keystroke event (with low level calls, but ctypes might let you use it ... the app WILL be told that the keystroke is ... all the interfaces are open and easily available to Python, ...
    (comp.lang.python)
  • Re: Key strokes for applications?
    ... you don't need to remember any fancy per-application keystroke ... With most app launchers like QuickSilver and Butler, ... To fancy complicated shortcut to remembr for each app :-) ... If I wanted to do it the Quicksilver way, ...
    (microsoft.public.mac.office.word)
  • Re: AppleScript: Hiding an app
    ... just need a way to remotely (via ssh) tell an app to hide. ... hiding function rather than a mere keystroke. ... several ways to hide an application (cmd-H, the menubar menu, the Dock ...
    (uk.comp.sys.mac)
  • Re: Expanding Python as a macro language
    ... >> a running GUI application! ... > keystroke event (with low level calls, but ctypes might let you use it ... > from Python). ... the app WILL be told that the keystroke is ...
    (comp.lang.python)