Jump to content

I'm Sooooooooooo New To Code.


Guest rickheming
 Share

Recommended Posts

Guest rickheming

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
Link to comment
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.

Link to comment
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).

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...