Jump to content

Recommended Posts

Posted

Hi,

I am new to Autoit, why there is difference in scripts generated by AutoIT macro generator Vs Au3 recorder. Is there any recorder available in AutoIT to generate script in the following format as used in examples.

Note: The scripts recorded using AutoIt Macro generator does not work in most of the situations. Any help is appreciated.java script:emoticon(':think:', 'smid_24')

:(

;

; AutoIt Version: 3.0

; Language: English

; Platform: Win9x/NT

; Author: Jonathan Bennett

;

; Script Function:

; Plays with the calculator.

;

; Prompt the user to run the script - use a Yes/No prompt (4 - see help file)

$answer = MsgBox(4, "AutoIt Example (English Only)", "This script will run the calculator and type in 2 x 4 x 8 x 16 and then quit. Run?")

; Check the user's answer to the prompt (see the help file for MsgBox return values)

; If "No" was clicked (7) then exit the script

If $answer = 7 Then

MsgBox(0, "AutoIt", "OK. Bye!")

Exit

EndIf

; Run the calculator

Run("calc.exe")

; Wait for the calulator become active - it is titled "Calculator" on English systems

WinWaitActive("Calculator")

; Now that the calc window is active type 2 x 4 x 8 x 16

; Use AutoItSetOption to slow down the typing speed so we can see it :)

AutoItSetOption("SendKeyDelay", 400)

Send("2*4*8*16=")

Sleep(2000)

; Now quit by sending a "close" request to the calc

WinClose("Calculator")

; Now wait for calc to close before continuing

WinWaitClose("Calculator")

; Finished!

Posted

I am new to Autoit, why there is difference in scripts generated by AutoIT macro generator Vs Au3 recorder. Is there any recorder available in AutoIT to generate script in the following format as used in examples.

AutoItMacroGenerator is for creating automated installation scripts by using the more so accurate control* functions.

Au3Recorder handles mouse and keyboard actions so is good for general desktop and program automation.

  • 4 months later...
Posted

AutoItMacroGenerator is for creating automated installation scripts by using the more so accurate control* functions.

Au3Recorder handles mouse and keyboard actions so is good for general desktop and program automation.

where I can find AutoItMacroGenerator and Au3Recorder ?

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
  • Recently Browsing   0 members

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