Google Answers Logo
View Question
 
Q: Scripting a series of windows commands ( Answered 5 out of 5 stars,   1 Comment )
Question  
Subject: Scripting a series of windows commands
Category: Computers > Programming
Asked by: headless-ga
List Price: $2.00
Posted: 05 Nov 2002 18:48 PST
Expires: 05 Dec 2002 18:48 PST
Question ID: 99972
I'd like some help getting started automating some of the repetitive
mouse clicks and keystrokes that I use in Windows 2000.

Task #1: Open a DOS box and run ipconfig.exe
- I normally go START - RUN - CMD and then type ipconfig.  
- If I create a shortcut to C:\WINNT\system32\ipconfig.exe, it runs,
but the DOS box closes after ipconfig runs and I don't see the
results.
- How do I setup a batch file or script that will open the DOS box,
run ipconfig, and stay open so I can see the result and leave me at a
DOS prompt?

Task #2: Changing the refresh rate on my monitor
- When I put my notebook computer into a port replicator, I need to
change the refresh rate in my Display Control Panel.
- Manual steps: Right-click on desktop - Properties - Settings -
Advanced - Monitor - Refresh Frequency: select 85Hz from the drop-down
box - OK - YES - OK.
- How do I do all of these steps with just one click?

Thanks!
Answer  
Subject: Re: Scripting a series of windows commands
Answered By: seizer-ga on 05 Nov 2002 19:04 PST
Rated:5 out of 5 stars
 
Hi there headless!

#1

All you need to do is to make a shortcut which contains the following
command: "cmd /k ipconfig" (without the quotes). This will run
ipconfig, and then leave the DOS window open and ready for commands.

#2

Way back in the past, in Windows 3.0 and 3.1, this feature was built
in. Now you need an extra piece of software to do this! You need a
program which can record "macros" - you do it once, it remembers how
to do it again. There are a number out there, so it might pay to look
around and see what's available. My personal experience is with Aldo's
Macro Recorder (the first in the list below) but you may find another
one more useful. Try these!

Aldo's Macro Recorder: http://www.aldostools.com/macro.html
MacroToolbar:          http://www.pitrinec.com/toolbarpro.htm
MacroExpress:          http://www.macros.com/macexpdo.htm

These three came from the Software Automation category at:

http://directory.google.com/Top/Computers/Software/Shareware/Windows/Utilities/Automation/?il=1

You may also wish to browse:

http://directory.google.com/Top/Computers/Software/Shareware/Windows/Utilities/Mouse_and_Keyboard/?tc=1

I hope this answers your question. If anything is unclear, then please
don't hesitate to request clarification before rating this answer.

Thanks, and good luck!

--seizer-ga

Search strategy: searched for "windows macro recorders"
headless-ga rated this answer:5 out of 5 stars

Comments  
Subject: Re: Scripting a series of windows commands
From: trephin-ga on 06 Nov 2002 13:26 PST
 
For changing the refresh rate, I can recommend a program called
MultiRes from EnTech Taiwan (http://www.entechtaiwan.com/). It can
take resolution, color depth and refresh rate and more as parameters.
I have three icons on my desktop to change monitor settings with a
double-click.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy