Sorry for the confusion
This is what im working Network preformance monitor program
i have the macro open the program and then maximize
the next script i need to add is to go through the charts and save them as jpeg files.
I went through a bunch of key strokes in the script i sent earlier but ill send it again. i left out the first part of the script.
the problem now is when the program is open ,on the side of the window is a list of interfaces and when you click on them you generate charts. with mouse clicks i can open these charts. once open i can use keystrokes to go through the process of exporting the charts as jpegs to a folder. the problem is when i run the macro it stops sending the keystrokes.
// C:\macro\Macro Scheduler\heloo.scp
// Recorded on Thursday, December 2, 2004, at 11:39 AM
//Recorded Events
Let>WW_TIMEOUT=5
CapsOff
MouseMove>207,207
WaitWindowOpen>Network Performance Monitor
MoveWindow>Network Performance Monitor,-4,-4
ResizeWindow>Network Performance Monitor,1288,1004
Wait>0.13
LClick
Wait>0.35
MouseMove>657,870
Wait>2.91
LClick
Wait>4.66
Press ALT * 2
Wait>0.18
Send>w
Wait>0.13
Release ALT
Wait>1.71
Press Enter
Wait>1.94
Press ALT
Wait>0.25
Press ALT * 10
Wait>0.01
Send>f
Wait>0.2
Release ALT
Wait>1.58
Press ALT
Wait>0.22
Release ALT
Wait>1.6
Press ALT
Wait>0.13
Release ALT
Wait>0.19
Press ALT
Wait>0.12
Release ALT
Wait>0.99
Press ALT
WaitWindowOpen>Export to JPEG file ...
MoveWindow>Export to JPEG file ...,0,0
ResizeWindow>Export to JPEG file ...,563,347
Wait>0.22
Release ALT
Wait>1.25
Send>boca_qwest_avg_bps.jpg
Wait>1.14
Press Tab * 2
Wait>1.13
Press Enter
WaitWindowOpen>Network Performance Monitor
MoveWindow>Network Performance Monitor,-4,-4
ResizeWindow>Network Performance Monitor,1288,1004
Wait>0.04
MouseMove>1260,96
Wait>4.55
LClick
Wait>0.2
MouseMove>1245,98
Wait>1.05
Press CTRL
Wait>0.04
________
Lincoln Zephyr/Mkz
sending text to file name
Moderators: JRL, Dorian (MJT support)
There seem to be lots of press alts going on here. And I don't see the keys after ALT-F. Should be something like the following.
This is from the point where you press ALT-f and I have added comments to explain what each line does. I'm not suggesting this will work without modification. It is pseudo code to explain the process.
//press ALT-f
Press ALT
Send>f
Release ALT
//Press e for Export
Send>e
//Press Down (why?)
Press Down
//Wait for the export window to open
WaitWindowOpen>Export to JPEG file ...
Send>boca_qwest_avg_bps.jpg
Press Enter
I'm working blind here because you haven't answered my question about the software.
When recording be careful to press only the keys you want to record and take your time.
This script should be very easy to write manuall. But you need to take a few minutes to learn how to do it. Please please read the getting started guide and learn how to write scripts. And also please answer my questions fully. I would really like to show you a definitive script that works but I can't write it for you without the software!
This is from the point where you press ALT-f and I have added comments to explain what each line does. I'm not suggesting this will work without modification. It is pseudo code to explain the process.
//press ALT-f
Press ALT
Send>f
Release ALT
//Press e for Export
Send>e
//Press Down (why?)
Press Down
//Wait for the export window to open
WaitWindowOpen>Export to JPEG file ...
Send>boca_qwest_avg_bps.jpg
Press Enter
I'm working blind here because you haven't answered my question about the software.
When recording be careful to press only the keys you want to record and take your time.
This script should be very easy to write manuall. But you need to take a few minutes to learn how to do it. Please please read the getting started guide and learn how to write scripts. And also please answer my questions fully. I would really like to show you a definitive script that works but I can't write it for you without the software!
MJT Net Support
[email protected]
[email protected]
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Should be more like this:Press ALT * 10
Wait>0.01
Send>f
Wait>0.2
Release ALT
Wait>1.58
Press ALT
Wait>0.22
Release ALT
Wait>1.6
Press ALT
Wait>0.13
Release ALT
Wait>0.19
Press ALT
Wait>0.12
Release ALT
Wait>0.99
Press ALT
WaitWindowOpen>Export to JPEG file ...
MoveWindow>Export to JPEG file ...,0,0
ResizeWindow>Export to JPEG file ...,563,347
Wait>0.22
Release ALT
Wait>1.25
Send>boca_qwest_avg_bps.jpg
Wait>1.14
Press Tab * 2
Wait>1.13
Press Enter
WaitWindowOpen>Network Performance Monitor
MoveWindow>Network Performance Monitor,-4,-4
ResizeWindow>Network Performance Monitor,1288,1004
Wait>0.04
MouseMove>1260,96
Wait>4.55
LClick
Wait>0.2
MouseMove>1245,98
Wait>1.05
Press CTRL
Wait>0.04
=========================Press ALT*10
Send>f
Release ALT
Press ALT*3
WaitWindowOpen>Export to JPEG file ...
MoveWindow>Export to JPEG file ...,0,0
ResizeWindow>Export to JPEG file ...,563,347
SetFocus>Export to JPEG file ...*
WaitReady>1
Send>boca_qwest_avg_bps.jpg
Press Tab*2
Press Enter
WaitWindowOpen>Network Performance Monitor
MoveWindow>Network Performance Monitor,-4,-4
ResizeWindow>Network Performance Monitor,1288,1004
SetFocus>Network Performance Monitor*
WaitReady>1
MouseMove>1260,96
LClick
MouseMove>1245,98
Press CTRL
Some observations:
1. Don't know how you can Press>ALT 10 times. You can do that for Tabs, Characters, but ALT key needs a matching Release ALT I think.
2. I replaced Press/Release ALT in middle with Press ALT*3, but see previous comment.
3. Don't need to press ALT before and after Moving Windows.
4. Most Wait>s are not needed, but inserted by macro recorder.
5. Inserted WaitReady>1 to allow settledown before Send/Mouse commands.
Questions:
1. Have you looked at a log file to see what was happening?
2. Can you use Tab/Shift-Tab vs MouseMove to get to correct positions for key entry?
3. Have you single stepped and observed slow time actions and Watch List of variables?
4. Only key being entered is ALT-f at beginning, no ALT-e or any other ALT-Combinations.
5. After you send the string for the filename with ENTER, what happens to make the next window open? Maybe you want to do a WaitWindowClose>SendFileWindowName* instead? I suspect that after sending filename, that Network Performance Monitor Window is already the current active window.
=================
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!