Guest rickheming Posted April 12, 2004 Share Posted April 12, 2004 (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? 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 April 12, 2004 by rickheming Link to comment Share on other sites More sharing options...
esfalk Posted April 12, 2004 Share Posted April 12, 2004 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 More sharing options...
scriptkitty Posted April 12, 2004 Share Posted April 12, 2004 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. Link to comment Share on other sites More sharing options...
ivan Posted April 14, 2004 Share Posted April 14, 2004 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). Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Link to comment Share on other sites More sharing options...
keilamym Posted April 14, 2004 Share Posted April 14, 2004 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now