scripts

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
mdurt
Junior Coder
Posts: 24
Joined: Mon Oct 11, 2004 11:41 pm

scripts

Post by mdurt » Tue Oct 12, 2004 9:16 pm

hi

A Macro program to take charts from one program and I would like to generate an HTML file for each chart and have all of the charts uploaded to the Intranet web server. Has anyone ever done something like this or where i can get more information on setting a script to do this.


thank you
________
vaporizer affiliate program
Last edited by mdurt on Wed Feb 02, 2011 3:42 pm, edited 1 time in total.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Oct 12, 2004 9:33 pm

The quick answer is YES, that Macro Scheduler should probably be able to do that for you using its own commands and possibly working with some other programs for creating HTML code.

If you can do it manually from your computer using the keyboard and mouse, then it is quite likely that you can do it with Macro Scheduler also.

Macro Scheduler can open/close most programs, can read/edit many file types, can use HTTP and FTP commands to interface with Web Servers, Can Cut/Paste between programs, can execute keystrokes within programs, can create dynamically named/numbered file names, can copy/delete/move files among folders/systems/networks, etc.

You would need to provide more information, write out the process more thoroughly, ID the programs and versions involved, the sequence of steps to be taken. List what you are doing vs. how you are doing it.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

mdurt
Junior Coder
Posts: 24
Joined: Mon Oct 11, 2004 11:41 pm

Post by mdurt » Tue Oct 12, 2004 9:56 pm

I want the charts from the program ???Network Performance Monitor" and then those charts taken from that program generated into html file and then have them upload to webserver. hopefully someone has used network performance monitor to understand what im asking.
thank you
________
discuss vaporizers
Last edited by mdurt on Wed Feb 02, 2011 3:42 pm, edited 1 time in total.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Oct 12, 2004 10:00 pm

I don't think I am familiar with "Network Performance Monitor". Would probably need more info to get started. Once the chart is captured, converting it to HTML and uploading will probably be straight forward.

Let's see what others can tell us about capturing those charts.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

mdurt
Junior Coder
Posts: 24
Joined: Mon Oct 11, 2004 11:41 pm

Post by mdurt » Tue Oct 12, 2004 10:08 pm

So basically the difficult part is to get macro to open up the "network performance monitoring" and the convert to html. The program already does it. once the program is open it list all the firewalls and routers and there interfaces and charts are made. when i go into the program NPM, i just select the router its interface and the chart comes up.
Im sure u need more detail, or if thats enough.
thank you, your being a big help
________
Chrysler Centura history
Last edited by mdurt on Wed Feb 02, 2011 3:43 pm, edited 1 time in total.

Lumumba

Post by Lumumba » Tue Oct 12, 2004 11:02 pm



User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Oct 12, 2004 11:30 pm

the chart comes up.
That is the unknown. Is this a chart like I might find in Excel or a spreadsheet file? Is is just an image on a portion of a window? Can the chart be saved with File, Save or a similar technique.? Will we have to make a screen shot and save that as an image file and then include that in an HTML file?

I repeat from my earlier posting:
write out the process more thoroughly, ID the programs and versions involved, the sequence of steps to be taken. List what you are doing vs. how you are doing it.
How are you doing it now? Or first of all, can you actually do it manually now? If you cannot do it manually, you may not be able to do it with any macro tools.

When I say what steps to be taken I mean tell us what you are doing manually to get your results, something like this:
-----------------------
1. Open Network Performance Monitor Progrem, version 1.2.3
2. Type in values into fields on screen
3. Save file in local folder.
4. Open browser, Mozilla 1.7.3
5. Go to URL xxxxx (do not need to provide real URL if confidentiall at this point)
6. Move mouse to icon for abc and left click
7. Window opens up to upload file.
8. Browse explorer to locate file saved and click on OK
Repeat steps 2-8 for 14 different situations., each file is named image001, image002, etc..
-----------------------------
Converting chart into html may not be difficult, I just have no familiarity with what tools are available.

Many other thing are unknown at this time. Example: How are you uploading files to the Web..using a WebPage Developer tool, using FTP, using tools available in the Network Monitor?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

mdurt
Junior Coder
Posts: 24
Joined: Mon Oct 11, 2004 11:41 pm

Post by mdurt » Wed Oct 13, 2004 12:34 am

the script needs to open the network performance monitor program. Also have it go to a certain router listed in the NPM program open a chart. Like the screenshot lumumba posted. I guess have the chart exported or saved to a folder and then from there be generated in to html format. once all that is complete send it to the web server. I should be able to get it from there. but the firststeps of having the charts exported and put into html. Any scripts like that
sorry for all this confusion
it be better to have it as a script then actual recording by macro.
ill give more detail on what im using for a web server later
thank u guys big help :lol:
________
550
Last edited by mdurt on Wed Feb 02, 2011 3:43 pm, edited 1 time in total.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Oct 13, 2004 7:53 am

Sounds like you have answered the problem already. You know how to do this manually right? Someone even posted a manual here. If you know how to do this process manually then you are 90% there and way ahead of anyone in this group.

Do the task manually and write down every step. Whenever you hit a key or click the mouse, write it down. Write down the name of the windows that appear. You now have half a script built and it is a simple job to convert what you wrote down to a Macro Scheduler script.
MJT Net Support
[email protected]

mdurt
Junior Coder
Posts: 24
Joined: Mon Oct 11, 2004 11:41 pm

Post by mdurt » Wed Oct 13, 2004 2:01 pm

Thats the part I dont understand that well is writing the script. When I use macro to record mouse movent all it gives me is the mouse postion. i really need the script commands, i tried to do it that way from the begining bit it didnt work. do your know where i can a list of commands. I used the "help" macro offers but that doesnt help me that much. Maybe theres a setting on macro where it record comands.
________
discuss vaporizers
Last edited by mdurt on Wed Feb 02, 2011 3:43 pm, edited 1 time in total.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Oct 13, 2004 2:07 pm

There's a list of commands in the help file. Also a list in the macro builder (Macro Properties) - there's a drop down list there, a list in the editor on the toolbar and a list in the Command Locator accessible from the editor. You'll also find a list on the online help on our website.

For a list in the help, press F1 and under 'Using Macro Scheduler' in the contents select 'Script Commands'.

I would strongly advise you to follow the getting started guide before you attempt to write your script. This is also accessible from the help system. Press F1 and in the contents you will see 'Scripting Windows For Beginners'. Follow this. Once you've followed the example in here you should have a pretty good idea how to start writing your own script.
MJT Net Support
[email protected]

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