Newbie question? - TCL

This is a discussion on Newbie question? - TCL ; Hi all, Is there a way to control a button of another windows application from within Tcl/Tk? Any help I would appreciate! Max...

+ Reply to Thread
Results 1 to 6 of 6

Newbie question?

  1. Default Newbie question?

    Hi all,

    Is there a way to control a button of another windows application from
    within Tcl/Tk?
    Any help I would appreciate!

    Max

  2. Default Re: Newbie question?

    max.veen@gmail.com wrote:
    > Hi all,
    >
    > Is there a way to control a button of another windows application from
    > within Tcl/Tk?
    > Any help I would appreciate!
    >
    > Max


    On windows you can use the "twapi" extension which has commands to send
    mouse and key events to other windows.

  3. Default Re: Newbie question?

    On Mon, 3 Dec 2007 02:34:54 -0800 (PST), max.veen@gmail.com wrote:

    >Hi all,
    >
    >Is there a way to control a button of another windows application from
    >within Tcl/Tk?
    >Any help I would appreciate!

    Hi Max,
    on Windows I have used cwind (http://wiki.tcl.tk/5019) with good
    success.
    Of course you have to watch out for 2 caveats:
    - You have to control the complete environment on the machine in
    question (else an email notification window or something similar pops
    up and receives your - simulated - key strokes or button presses), and
    - give the application you want to control enough time to react to any
    stimulation before you send the next (considering slow machines, too).

    Good luck.
    Helmut Giese

  4. Default Re: Newbie question?

    max.veen@gmail.com wrote:
    > Hi all,
    >
    > Is there a way to control a button of another windows application from
    > within Tcl/Tk?
    > Any help I would appreciate!


    The answer is yes, but how you do it is platform specific.

    What OS are you using?


    --
    +--------------------------------+---------------------------------------+
    | Gerald W. Lester |
    |"The man who fights for his ideals is the man who is alive." - Cervantes|
    +------------------------------------------------------------------------+

  5. Default Re: Newbie question?

    On 3 dec, 12:47, Helmut Giese <hgi...@ratiosoft.com> wrote:
    > On Mon, 3 Dec 2007 02:34:54 -0800 (PST), max.v...@gmail.com wrote:
    > >Hi all,

    >
    > >Is there a way to control a button of another windows application from
    > >within Tcl/Tk?
    > >Any help I would appreciate!

    >
    > Hi Max,
    > on Windows I have used cwind (http://wiki.tcl.tk/5019) with good
    > success.
    > Of course you have to watch out for 2 caveats:
    > - You have to control the complete environment on the machine in
    > question (else an email notification window or something similar pops
    > up and receives your - simulated - key strokes or button presses), and
    > - give the application you want to control enough time to react to any
    > stimulation before you send the next (considering slow machines, too).
    >
    > Good luck.
    > Helmut Giese


    Thanks Helmut! I've used the cwind package in a Tcl script with
    success.

    Max Veen

  6. Default Re: Newbie question?

    On 3 dec, 15:49, "Gerald W. Lester" <Gerald.Les...@cox.net> wrote:
    > max.v...@gmail.com wrote:
    > > Hi all,

    >
    > > Is there a way to control a button of another windows application from
    > > within Tcl/Tk?
    > > Any help I would appreciate!

    >
    > The answer is yes, but how you do it is platform specific.
    >
    > What OS are you using?
    >
    > --
    > +--------------------------------+---------------------------------------+
    > | Gerald W. Lester |
    > |"The man who fights for his ideals is the man who is alive." - Cervantes|
    > +------------------------------------------------------------------------+


    I'am using Windows XP professional with SP2.
    Max

+ Reply to Thread

Similar Threads

  1. newbie question
    By Application Development in forum Perl
    Replies: 3
    Last Post: 10-12-2007, 03:38 PM
  2. Newbie IDL question
    By Application Development in forum Idl-pvwave
    Replies: 5
    Last Post: 01-08-2007, 11:53 PM
  3. Newbie question...simple rule question...
    By Application Development in forum PROLOG
    Replies: 6
    Last Post: 08-12-2005, 05:33 AM
  4. Newbie question
    By Application Development in forum basic.visual
    Replies: 0
    Last Post: 11-29-2004, 11:50 AM
  5. Very [NEWBIE] question
    By Application Development in forum Graphics
    Replies: 8
    Last Post: 04-26-2004, 10:04 AM