How do I: send to unopened window
Moderators: JRL, Dorian (MJT support)
How do I: send to unopened window
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?
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??
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??
Minimization
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.
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.
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.
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.
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.