Jump to content

Recommended Posts

Posted

I am a new user of autoit v3 with windows XP Service Pack 2.

I try to run notepad1.au3 in the exemple

I have the message box and the script stopped when the notepad is open.

Can I use in French system ?

  • Developers
Posted

I am a new user of autoit v3 with windows XP Service Pack 2.

I try to run notepad1.au3 in the exemple

I have the message box and the script stopped when the notepad is open.

Can I use in French system ?

Sure, but you will have to change the script to check for the Frence Window Title in stead of the English title.

:)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

Standard it is:

$answer = MsgBox(4, "AutoIt Example (English Only)", "This script will run Notepad type in some text and then quit.  Run?")

If $answer = 7 Then
    MsgBox(0, "AutoIt", "OK.  Bye!")
    Exit
EndIf

Run("notepad.exe")

WinWaitActive("Untitled - Notepad")

Send("Hello from Notepad.{ENTER}1 2 3 4 5 6 7 8 9 10{ENTER}")
Sleep(500)
Send("+{UP 2}")
Sleep(500)

Send("!f")
Send("x")

WinWaitActive("Notepad", "No")
Send("n")

WinWaitClose("Untitled - Notepad")

You have to change "Notepad" and every "Untitled-Notepad" in your french window title.

Edited by kip
Posted

Sure, but you will have to change the script to check for the Frence Window Title in stead of the English title.

:)

When the noteped is opened why I don't have anything typed in the notepad ?

Posted

Did you changed every NotePad - Untitled ?

Yes i have changed NotePad -Untitled in French by WinWaitActive("Sans Titre - Bloc-notes")

And put e message box after the WinWaitActive to see the action. I saw that the WinWaitActive is not executed.

the running message :

+>14:08:52 Starting AutoIt3Wrapper v.1.8.0

>Running AU3Check (1.54.6.0) from:C:\Program Files\AutoIt3

+>14:08:52 AU3Check ended.rc:0

>Running:(3.2.2.0):C:\Program Files\AutoIt3\autoit3.exe "C:\Program Files\AutoIt3\Examples\notepad1.au3"

And an Icon on down-left is market Scritp Paused

Posted

Thank you for your answer.

I have change notepad to wordpad and every thing is ok now.

Merci Beaucoups

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...