Jump to content

AutoIt Script Assistance


Corn~Julio

Recommended Posts

I made a script for WinAce 2.5, I get to the language selection window and it will choose the language, but it will not continue

I have tried AutoIt Script Writer and added it to my script; No luck

I have tried ControlClick that i saw on the Script Collection thread; No luck

I have tried ControlFocus and a few others still no luck

Has anyone figured out how to get past this window???

Link to comment
Share on other sites


Yep

I do appreciate the suggestion

I tried it with mouse clicks, send, control(Click,Send,Focus,GetFocus), I saw some lines from the forum with spaces in the strings and tried it that way to on all the same options, no luck

i tried substituing the ClassID w/ClassNameNN because the ID is static not standard

all my strings work without a problem up and to that point, I'd only been creating scripts for a day when i placed the post, and as of this post I am still stuck, i have gone thru and have re-done it all again just in case I misstyped or overlooked something, still cant make it work, and the sad part is; its probably just a simple fix

Edited by Corn~Julio
Link to comment
Share on other sites

Run("C:\Wace25.EXE")

WinWaitActive("Information")

Send("!n")

WinWaitActive("Choose Destination Location")

Send("C:\WinAce")

Send("!n")

WinWaitActive("Confirm")

Send("{Enter}")

WinWaitActive("Confirmation")

Send("!y")

WinWaitActive("techinfo - Notepad")

Send("!fx")

I tried this before the Opt & MouseMov

WinWaitActive("Welcome to WinAce-Archiver","",5)

WinWaitActive("Welcome to WinAce-Archiver","")

WinWaitActive("Welcome to WinAce-Archiver")

WinActivate("Welcome to WinAce-Archiver")

Send("{Enter}")

Send("{Tab}") then Send("{Enter}")

Send("{Tab 1}") then Send("{Enter}")

ControlClick("Welcome to WinAce-Archiver","OK","TCorelButton1","")

ControlClick("Welcome to WinAce-Archiver","Ok","TCorelButton1","")

ControlClick("Welcome to WinAce-Archiver","ok","TCorelButton1","")

ControlClick("Welcome to WinAce-Archiver","","TCorelButton1","")

ControlClick("Welcome to WinAce-Archiver","","TCorelButton1")

I also tried several variations on the button text and I forget all the ControlFocus options I tried

I am trying to get away from the Opt and the MouseMov section I listed below because it seems to hang thats why I initially didnt think it was working, It hangs alot

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

WinWait("Welcome to WinAce-Archiver","")

If Not WinActive("Welcome to WinAce-Archiver","") Then WinActivate("Welcome to WinAce-Archiver","")

WinWaitActive("Welcome to WinAce-Archiver","")

MouseMove(229,219)

MouseDown("left")

MouseUp("left")

Sleep(1000)

Link to comment
Share on other sites

Ok got past the 1st hurdle

The language selection screen is picky it seems 2 require all fields on the ControlClick option, I tried it 5 times success each time, heres what works for me

WinWaitActive("Welcome to WinAce-Archiver","")

Send("{Down}")

ControlClick("Welcome to WinAce-Archiver","Ok","TCorelButton1","Left")

I was just missing "Left"

My next hurdle is to get past the HTML style window once its installed

Link to comment
Share on other sites

  • 3 weeks later...

I ended up using mouse move option 2 get past the HTML style windows once WinAce is installed

I have also figured out why the mouse move option hung up so often, while tweaking the scripts depending on how u ran the script and the progie location u r trying to automate, the name of the active windows changes.

I did not catch this @ first, then once u compile the script and run it from RunOnceEx it changes again, once I got this figured out and also made some changes on the WinWaitActive times many of the scripts run without a problem, I still have a few that r bein a pain

Oh and nologic thx 4 the reply, if you ever figure out how to work around the mouse move option on the winace html window plz let me kno & I will let u kno if I do

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...