Jump to content

Recommended Posts

Posted

Dear all,

I have run a few au3 script. When there are error, the windows system will act strange. As long as there are errors, the mouse left click will become a mouse right . When I double click left mouse, it return a file propirety.

Is there any suggestion?

Changtun

Posted (edited)

It's not an error that is caused by an autoit script, it is caused by Windows 98. It is a common problem, and all you have to do is right click anything once and it will revert to normal.

Edited by this-is-me
Who else would I be?
Posted

But I am running the script on a winXP and Win2k. I have try to right click and left click few times. It would not come back to an normal condition . Only solution is to reboot.

Posted

Surely there must be another program causing this problem. What are the things you do in your script? Do you use a lot of mouse clicks or a lot of controlclicks or what? I cannot reproduce the error here at all.

Who else would I be?
Posted

Here are the sample code. Some personal info in replace by #.

And I am in a Windows 2000 Tradtional Chinese.

code:

;Open IE and then download VOIP log in CSV

;

;

Dim $hour=@HOUR

Dim $day=@MDAY

Dim $month=@MON

;FileChangeDir("C:\auto")

;

;Open IE and go to Webguide manager

Run("c:\Program Files\Internet Explorer\IEXPLORE.EXE")

WinWait ( "Internet Explorer", "", 20)

Send("{ALT}{SPACE}")

Sleep (1000)

Send("x")

Sleep (1000)

Send ("{TAB}",0)

Sleep (1000)

Send ("##############")

Sleep (1000)

Send ("{ENTER}")

;

Sleep(10000)

Send ("{TAB}",0)

Sleep(1000)

Send ("{TAB}",0)

;

Sleep (1000)

Send ("########")

Sleep(1000)

Send ("{TAB}",0)

Sleep(1000)

Send ("########")

Sleep(1000)

Send ("{ENTER}")

;

;Move cursor to VOIP CRD, 1024x768 mode, at x:725 y:162

Sleep(10000)

MouseMove(740, 185)

Sleep (1000)

MouseClick("left")

;

Sleep(10000)

MouseMove(930,628)

Sleep (1000)

MouseClick("left")

Sleep (1000)

WinWait ( "檔案下載", "", 20)

Sleep (1000)

Send ("{ENTER}")

Sleep (1000)

Send ("c:\auto\")

Sleep (1000)

Send ($month&$day&$hour&".zip")

Sleep(2000)

Send ("{ENTER}")

Sleep (20000)

Send("{ALTDOWN}{F4}")

Sleep(5000)

;

;

Run( "c:\Program Files\Winrar\winrar.exe x -ep c:\auto\*.zip c:\auto\")

Sleep(2000)

Send("y")

Sleep(2000)

;

;--------------------

;Send to a mail box

;--------------------

;

Run ("C:\auto\commail.exe -host=##### -from=######## -to=########### -attach=c:\auto\voip_all_log.csv -subject=VOIP_all_log")

Sleep(60000)

;

FileMove("C:\auto\*.zip", "c:\auto\ziplog\")

;

Sleep (2000)

;End of the Script

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