Results 1 to 12 of 12

Thread: disable keys while sendkeys?

Threaded View

  1. #1

    Thread Starter
    Fanatic Member TTn's Avatar
    Join Date
    Jul 2004
    Posts
    708

    disable keys while sendkeys?

    Is it possible to disable all, or most keys out for a short time(1 sec)?

    I am using a sendkeys statement, and wonder if disabling key strokes, will disable the sendkeys too.



    I overcame the pesky focus problem with a simple do event.
    I want to disable key input, during this procedure:

    do
    dim appid as integer
    appid = shell("app.exe", 1)
    appactivate appid
    sendkeys "{tab}yup!{enter}{F4}"
    exit do
    loop

    Is much smaller and actually more effective than the Dan Appleman reference for putfocus/setfocus in "Guide to the Win32 API". Thanks Balena!




    PS For the benefit of other beginers, to activate an already running application and sendkeys to it, just omit the shell above.
    For example:
    do
    appactivate appid
    sendkeys "blah"
    exit do
    loop

    focus returns to app that sent the keys.
    Last edited by TTn; Nov 7th, 2004 at 08:01 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width