Sign in to follow this  
Followers 0
Threesome

Beginner AutoIt - Need help

2 posts in this topic

#1 ·  Posted (edited)

Hello

This script unzips a file, after unzipping, it should open a txt-file and select-copy some text.

When I run this script for the first time, it unzips the file and opens the txt-file, but it does not select some text in it (on the right bottem of my screen I see 1 AutoIt symbol).

When I run the script for the second time, it unzips, opens the txt-file, select-copies some text => how it should be (on the right bottom of my screen I see 2 AutoIt symbols).

What am I doing wrong?

TNX

Run("r:\#updates\Persm050101-0017UI.exe")

WinWaitActive("Aphrodite - Upgrade & Install")

Send("{ENTER}")

WinWaitActive("WinZip Self-Extractor - Persm050101-0017UI.exe")

Send("!u")

WinWaitActive("WinZip Self-Extractor - Password")

Send("gert")

Send("{ENTER}")

WinWaitActive("WinZip Self-Extractor", "OK")

Send("{ENTER}")

WinWaitActive("WinZip Self-Extractor - Persm050101-0017UI.exe","",5)

Send("!c")

$FilePath = "R:\apps\cipal\citoep\pb\oracle.ini"

$FileHandle = FileOpen($FilePath, 0)

RunWait("notepad " & $FilePath)

WinWaitActive("Oracle.ini - notepad") ;WHEN I RUN THE SCRIPT FOR THE FIRST TIME IT STOPS HERE

Send("^{END}")

Send("+{LEFT 4}")

Send("^c")

WinClose("Oracle.ini - notepad")

Edited by Threesome

Share this post


Link to post
Share on other sites



All Win* functions are case sensitive.

WinWaitActive("oracle.ini - Notepad")

Who else would I be?

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