How do I: send to unopened window

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Zoop
Newbie
Posts: 2
Joined: Thu Jan 02, 2003 10:27 pm

How do I: send to unopened window

Post by Zoop » Thu Jan 02, 2003 10:28 pm

I've read through the forums and manual but cant figure this out- it should be easy though. How do I send a single character to a particular window that is not opened, without opening it?

Ernest

Post by Ernest » Thu Jan 02, 2003 10:56 pm

Hi,
have a look at the "DDE" commands.
If I remember it right, there's a sample script (Excel, ...) for download at the script section.

E.

BTW: What you've meant with "... window that is not opened, ...",
not active/minimized/hidden :?:
Window stands for running application or document.
Which app? What kind of document??

Zoop
Newbie
Posts: 2
Joined: Thu Jan 02, 2003 10:27 pm

Post by Zoop » Thu Jan 02, 2003 11:20 pm

oh, sorry. Yes, I meant how do you send a character to a minimized window, without opening it or disturbing the window you are in.

Ernest

Post by Ernest » Fri Jan 03, 2003 12:23 am

Difficult, cause MSched tries to "act on your behalf" any action done by you in parallel (keyboard, mouse) could have an impact on that what should be controled via a script.

E.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Minimization

Post by armsys » Sat Jan 04, 2003 1:25 am

Hello Zoop,

Minimizing a window without opening it in advance is absolute impossibility. Nor does it make any sense. The closest scenario is to open it and quickly minize it as follows:


// Start the program \\
Run>MyApp.exe

// You may insert more comands here to ensure it's properly running. \\

// Mimimize the Window titled as "MyApp" \\
WindowAction>2,MyApp


Hope you find it helpful.

Guest

Post by Guest » Sat Jan 04, 2003 3:22 am

No, I am not trying to minimize a window at all. What i want to do is send one character of text to a window that is NOT the main window, ie. to a minimized window. Example: I want to web browse uninterrupted, but every 20 seconds send the number "2" into a existing diffierent window without having to close my broswer to do it.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Sat Jan 04, 2003 3:56 am

Now everyone should have a clear picture of your need. You may try out the following script:

Web[1]=MainWeb
Web[2]=Web2
Web[3]=Web3
Web[4]=Web4

Let>k=1
Repeat>k
Let>k=k+1
SetFocus>Web[%k%]
Sen>2
WindowAction>2,Web[%k%]
SetFocus>Web[1]
Wait>20
Until>k,4

The above script isn't intended to be exact. It suggests one of many possbilities to attain your goal. At least it gives you something to start with.

Please keep posting your new discoveies. Thanks.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts