Sign in to follow this  
Followers 0

Au3 Recorder Vs Autoit Macro Generator

6 posts in this topic

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!

Share this post


Link to post
Share on other sites



Posted (edited)

1

Welcome to the forums

2

most scripta are written by each person after understanding most of the commands

3

the GUi Builder can build the GUI as you would like it to be designed

4

for some great demos and all the programs you need... see this

http://www.autoitscript.com/forum/index.php?showtopic=21048#

8)

Edited by Valuater

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ?

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