sending text to file name
Moderators: JRL, Dorian (MJT support)
sending text to file name
i have a problem with a macro not wanting to write a file name.
it just doesnt want to send text to the file name.
ive tried the help
this is when the program is open and im using mouse movement to open the chart, and then go to "File" and then under file "ecport as Jpeg" and i have to enter "flie name" and the "save as" and then its done but the problem is it records my text but wont send it to file name.
// C:\macro\Macro Scheduler\opening chart 1.scp
// Recorded on Tuesday, November 16, 2004, at 11:45 AM
//Recorded Events
Let>WW_TIMEOUT=5
CapsOff
MouseMove>157,211
WaitWindowOpen>Network Performance Monitor
MoveWindow>Network Performance Monitor,-4,-4
ResizeWindow>Network Performance Monitor,1288,1004
Wait>0.04
LClick
Wait>0.3
MouseMove>296,24
Wait>2.64
LClick
Wait>0.23
MouseMove>313,40
Wait>0.6
LClick
Wait>0.16
MouseMove>485,955
Wait>1.17
LClick
Wait>0.11
MouseMove>19,25
Wait>2.25
LClick
Wait>0.28
MouseMove>68,122
Wait>1.02
LClick
Wait>0.24
MouseMove>328,151
Wait>1.38
LClick
WaitWindowOpen>Export to JPEG file ...
MoveWindow>Export to JPEG file ...,0,0
ResizeWindow>Export to JPEG file ...,563,347
Wait>1.72
Send>boca_qwest_avg_bps.jpg 0.21
MouseMove>513,298
Wait>1.75
LClick
WaitWindowOpen>Network Performance Monitor
MoveWindow>Network Performance Monitor,-4,-4
ResizeWindow>Network Performance Monitor,1288,1004
Wait>1
MouseMove>1266,99
Wait>1.31
LClick
Wait>0.53
MouseMove>1256,99
Wait>0.93
Press CTRL
________
Honda City
it just doesnt want to send text to the file name.
ive tried the help
this is when the program is open and im using mouse movement to open the chart, and then go to "File" and then under file "ecport as Jpeg" and i have to enter "flie name" and the "save as" and then its done but the problem is it records my text but wont send it to file name.
// C:\macro\Macro Scheduler\opening chart 1.scp
// Recorded on Tuesday, November 16, 2004, at 11:45 AM
//Recorded Events
Let>WW_TIMEOUT=5
CapsOff
MouseMove>157,211
WaitWindowOpen>Network Performance Monitor
MoveWindow>Network Performance Monitor,-4,-4
ResizeWindow>Network Performance Monitor,1288,1004
Wait>0.04
LClick
Wait>0.3
MouseMove>296,24
Wait>2.64
LClick
Wait>0.23
MouseMove>313,40
Wait>0.6
LClick
Wait>0.16
MouseMove>485,955
Wait>1.17
LClick
Wait>0.11
MouseMove>19,25
Wait>2.25
LClick
Wait>0.28
MouseMove>68,122
Wait>1.02
LClick
Wait>0.24
MouseMove>328,151
Wait>1.38
LClick
WaitWindowOpen>Export to JPEG file ...
MoveWindow>Export to JPEG file ...,0,0
ResizeWindow>Export to JPEG file ...,563,347
Wait>1.72
Send>boca_qwest_avg_bps.jpg 0.21
MouseMove>513,298
Wait>1.75
LClick
WaitWindowOpen>Network Performance Monitor
MoveWindow>Network Performance Monitor,-4,-4
ResizeWindow>Network Performance Monitor,1288,1004
Wait>1
MouseMove>1266,99
Wait>1.31
LClick
Wait>0.53
MouseMove>1256,99
Wait>0.93
Press CTRL
________
Honda City
Last edited by mdurt on Wed Feb 02, 2011 3:46 pm, edited 1 time in total.
Probably not focusing the correct field. I would avoid using mouse clicks by the way- not very reliable. Use keystrokes instead. Have you read the beginners guide in the help file? Worth while following this. I think if you follow the example in the guide you'll find building your script much easier afterwards.
MJT Net Support
[email protected]
[email protected]
Last edited by mdurt on Wed Feb 02, 2011 3:46 pm, edited 1 time in total.
Well to focus a field you first need to ensure the window is focused. Then you can use the tab key to get from one field to the next. So you might need to do something like:
SetFocus>window_title
Press TAB *
Please see the beginner's guide for further explanation.
SetFocus>window_title
Press TAB *
Please see the beginner's guide for further explanation.
MJT Net Support
[email protected]
[email protected]
Last edited by mdurt on Wed Feb 02, 2011 3:46 pm, edited 2 times in total.
i was going throught the help and still not able to export the chart and save it as a jpeg.
The chart is open and ready for it commands from macro.
I need it to click file chose export and then chose as jpeg and then rewrite the filename and save it. thats all it needs to do
waitwindowopen> export to jpeg file
let>filename=c:\bandwidth_charts\weekof\boca_qwest_avg_bps>jpg
send>filename
press enter
________
AMX-GT
The chart is open and ready for it commands from macro.
I need it to click file chose export and then chose as jpeg and then rewrite the filename and save it. thats all it needs to do
waitwindowopen> export to jpeg file
let>filename=c:\bandwidth_charts\weekof\boca_qwest_avg_bps>jpg
send>filename
press enter
________
AMX-GT
Last edited by mdurt on Wed Feb 02, 2011 3:46 pm, edited 1 time in total.
Which part of this are you having problems with. I can't give you the commands you need verbatim because I can't see your screen and my crystal ball is at the repair shop 
Write down the keystrokes you have to send and the window names you have to wait for. Do the whole thing yourself, manually, using keystrokes. Write down the steps. Now you have the beginnings of a script. If you still have problems send us the list of keystrokes and window names and we'll try to compose a skeleton script for you.

Write down the keystrokes you have to send and the window names you have to wait for. Do the whole thing yourself, manually, using keystrokes. Write down the steps. Now you have the beginnings of a script. If you still have problems send us the list of keystrokes and window names and we'll try to compose a skeleton script for you.
MJT Net Support
[email protected]
[email protected]
Last edited by mdurt on Wed Feb 02, 2011 3:46 pm, edited 1 time in total.
When posting a message you'll see some buttons. One is 'Img'. And when you hover over it you'll see instructions.
Have you gone through the process manually yet? Have you made a list of keystrokes and window names?
Have you gone through the process manually yet? Have you made a list of keystrokes and window names?
MJT Net Support
[email protected]
[email protected]
http://f2.pg.briefcase.yahoo.com/mdurt81
I posted my screen shots if you guys take a look at them and see what i am looking at and how can spefic commands to guide me throught these steps.
i will try to get more commands on what im doing[/img]
________
extreme vaporizer
I posted my screen shots if you guys take a look at them and see what i am looking at and how can spefic commands to guide me throught these steps.
i will try to get more commands on what im doing[/img]
________
extreme vaporizer
Last edited by mdurt on Wed Feb 02, 2011 3:46 pm, edited 1 time in total.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
You may have to wait for "Export to JPEG file ..." window opens up before sending file name.
May need to tab between fields and press ENTER when the SAVE button is active. Again, as Support has noted, forget about the MouseMove commands. Use TAB and ALT-LTR commands to move around.
I don't see underlined letters on your menus, so perhaps ALT-LTR options do not exist. But you can still use Up/Down/Left/Right, etc along with TAB, Sh-Tab to make different objects active and to execute them.
When a new Windor opens up, do
May need to tab between fields and press ENTER when the SAVE button is active. Again, as Support has noted, forget about the MouseMove commands. Use TAB and ALT-LTR commands to move around.
I don't see underlined letters on your menus, so perhaps ALT-LTR options do not exist. But you can still use Up/Down/Left/Right, etc along with TAB, Sh-Tab to make different objects active and to execute them.
When a new Windor opens up, do
before the commands to Send/Press/Tab, etc.WaitWindowOpen>WindowName*
WaitReady>1
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
For your screenshots did you use the mouse to invoke those menus or did you use keys. I suspect mouse because none of the entries have the underline char. It would be more help if you could issue keystrokes so that we can work out what they are. Press the ALT key and use the keyboard to navigate through the menu structure. Then we can see what the keyboard shortcuts are and help you write your script. At the moment we're stabbing in the dark. Please follow all the previous suggestions given by support.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
here is the script with key stokes. i hold alt and go through alt f (fille) then alt e (export) and then arrow down to save as jpeg and write the name of the file (dialog box) and then tab over to save and hit enter. for some reason the macro will not run thorught the key strokes after the first tab.
before i start that i open the chart with mouse clicks and when the sub window opens i choose (this week) chart and then i adjust the subwindow size to full by alt w and the enter.
// 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 0.01 f 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
________
The cigar boss
before i start that i open the chart with mouse clicks and when the sub window opens i choose (this week) chart and then i adjust the subwindow size to full by alt w and the enter.
// 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 0.01 f 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
________
The cigar boss
Last edited by mdurt on Sat Mar 12, 2011 9:25 am, edited 2 times in total.
I don't see any ALT-F here. Your message seems to be incomplete. You say 'for some reason when I .....' and it tails off. Can you clarify the question?
What application are you trying to automate here? Is it something on every computer, or can it be downloaded from somewhere? If it is something I can get hold of I could take a look and offer some suggestions as to what you want to do. At the moment we seem to be having problems making sense of each other.
What application are you trying to automate here? Is it something on every computer, or can it be downloaded from somewhere? If it is something I can get hold of I could take a look and offer some suggestions as to what you want to do. At the moment we seem to be having problems making sense of each other.
MJT Net Support
[email protected]
[email protected]
// 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 0.01 f 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
// 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 0.01 f 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