cpengr Posted March 3, 2010 Share Posted March 3, 2010 Hi all, I am a newb, and could use some help. If I'm posting in the wrong place, please direct me to the right place, or mods can move the post to the right category (if that's done here). I'm running AutoIt v3.3.4.0. I have a program that has a sequence of popup windows (or subwindows, or somesuch), where I used AU3Record 3.3 to create a script that automates clicking through it. As generated by AU3Record, the script would launch the program, click the first button, and that was it. I had to change the statement _WinWaitActivate("classname=#32770","") to _WinWaitActivate("[CLASS:#32770]","") in the code segment shown below to get it to work. Otherwise, it would hang on WinWaitActive($title,$text,$timeout) within the call to _WinWaitActivate("classname=#32770","") Have I done something wrong? Is it ever valid to use "classname=" instead of "[CLASS:]"? Or is this a bug in AU3Record? If it's a bug, how can I file a bug report? Thanks. Redacted script code: #region ---Au3Recorder generated code Start --- Opt("WinWaitDelay",200) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run('c:\the_program.exe') _WinWaitActivate("About The Program","") MouseClick("left",719,515,1) ;_WinWaitActivate("classname=#32770",""); corrected manually, see next line _WinWaitActivate("[CLASS:#32770]","") ; ; (redacted) ; #region --- Internal functions Au3Recorder Start --- Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc #endregion --- Internal functions Au3Recorder End --- #endregion --- Au3Recorder generated code End --- Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 3, 2010 Share Posted March 3, 2010 Are you sure your version of AU3Record is current? That looks like legacy syntax from an old version. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
cpengr Posted March 3, 2010 Author Share Posted March 3, 2010 Are you sure your version of AU3Record is current? That looks like legacy syntax from an old version.I think I have the latest stuff. I just installed it the other day. Details below, please let me know if I have something old.Right-clicking AU3Record.exe and choosing properties, in the Version tab, it says, "File version: 3.3.1.0".AU3Record comes with SciTE4AutoIt3, right? I installed the current version from the downloads page, dated 2/28/2010.And as I mentioned, I'm using AutoIt v3.3.4.0. Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 3, 2010 Share Posted March 3, 2010 No, that's the right version, 3.3.1.0. So much for the easy answer. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
cpengr Posted March 4, 2010 Author Share Posted March 4, 2010 (edited) In case it's relevant, I also installed AutoHotkey and SciTE4AutoHotkey, since I was trying it out, too. Turns out AU3 looks like the better tool for my current purposes... Edited March 4, 2010 by cpengr Link to comment Share on other sites More sharing options...
cpengr Posted March 4, 2010 Author Share Posted March 4, 2010 New issue observed, probably related: I was capturing a script with AU3Record, where I launch Internet Explorer 6, click some links, click in the address bar and in some text fields and type some stuff. Whenever I type a dot ("."), it's captured as a square. I guess that's a character that SciTE doesn't recognize, b/c when I paste it here, it looks like "⸀". Changing them to dots allows the script to work properly. Link to comment Share on other sites More sharing options...
cpengr Posted March 8, 2010 Author Share Posted March 8, 2010 (bump) Anyone? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now