Modify

Opened 13 years ago

Closed 13 years ago

#2177 closed Bug (No Bug)

autoit does not work correctly with Microsoft Calculator

Reported by: thucdat@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.1 Severity: None
Keywords: Cc:

Description

The following taken from the examples with change from multiplication to addition:
;
; AutoIt Version: 3.0
; Language: English
; Platform: Win9x/NT
; Author: Jonathan Bennett (jon@…)
;
; Script Function:
; Plays with the calculator.
;

; Prompt the user to run the script - use a Yes/No prompt (4 - see help file)
Local $answer = MsgBox(4, "AutoIt Example (English Only)", "This script will run the calculator and type in 2 + 4 + 8 + 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 + 4 + 8 + 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!

Attachments (0)

Change History (1)

comment:1 Changed 13 years ago by trancexx

  • Resolution set to No Bug
  • Status changed from new to closed

Please read guidelines for posting here. They are hard to miss (that red box above the typing area on New Ticket page).
Anyway, there is no bug here, it's only you. Think think.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.