Sign in to follow this  
Followers 0
Guest rickheming

I'm Sooooooooooo New To Code.

5 posts in this topic

#1 ·  Posted (edited)

I would like to know how to animate the installation of a program [any program] that is copied from CD to the desktop.

How do I write an AutoIt script for this?

I just want it to go to the .exe file and get it up and started.

Or if there is a program that will record every movement on the screen can you let me know?

:D:):huh2:

My first Script: Work great, that is until I compile it. Then it loops forever.

Run("mmc.exe")

WinWait("Console1", "", 5)

Send("^m")

WinWait("Add/Remove Snap-in", "", 5)

Send("!d")

WinWait("Add/Remove Snap-in", "", 5)

Send("{DOWN}")

Send("{DOWN}")

Send("{DOWN}")

Send("{ENTER}")

Send("{ENTER}")

Send("!c")

Send("{ENTER}")

Send("{DOWN}")

Send("{RIGHT}")

Send("{DOWN}")

Send("{DOWN}")

Send("{RIGHT}")

Send("{RIGHT}")

Send("{DOWN}")

Send("{TAB}")

Sleep(1000)

Send("{TAB}")

Sleep(1000)

Send("{TAB}")

Sleep(1000)

Send("{ENTER}")

Edited by rickheming

Share this post


Link to post
Share on other sites



Animate or Automate?

I know of no function that 'records' your keystrokes and mouse movements, but it shouldn't be too difficult to take notes of what you're doing.

As far as looping goes, just by glancing through your code I'm guessing that it's stuck on one of the WinWait commands, make sure it knows the proper title to wait for. Additionally, make sure you tell the script every point it needs to wait for a window to become active or what-not.

Share this post


Link to post
Share on other sites

You might try the Larry automatic script writer. It comes in handy, but you might want to customise it after.

Not bad, has some limitations, but is very nice for some quick things.

http://www.hiddensoft.com/fileman/users/La...criptWriter.zip


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

I think you´re trying to automate a process. Anyway, here´s a couple of suggestions for both animation and automation.

Firts, explore the CD and see if it has an autorun file. If so, then the application should start automatically, otherwise run it. Your script may be waiting for a window to be activated as you´re using (WinWait ) and there are no defined loops. Try to loop (WinExists), then use (WinActivate). Also, try to use the Spy to determine the controls or mouse clicks you may need.

If you wish to animate, you could splash random images (gif or jpg) on screen for a couple of seconds (SplashImageOn ), and you can even play a couple of sounds (SoundPlay).

Share this post


Link to post
Share on other sites

where are you trying to get to in the MMC. in the default mmc, it looks like you have to many tabs twoard the end.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0