bobthenob Posted July 2, 2007 Share Posted July 2, 2007 Hi I havnt used auoit for a few years. im trying to make some unattended installers for my unatteded winxp dvd, last time it all whent fine, but now some windows just arnt playing ball i made an installer for nero7 no problem and office 2007 but power dvd, winrar, and Flashfxp, are all giving me headaches the first coulple of windows are fine but then a window either dosnt exsist or my mouse click dosnt work. ive tryed a loop this has worked but not allways ie this dosnt work do If winExists("WinRAR Setup"," Associate WinRAR with")Then WinActivate("WinRAR Setup"," Associate WinRAR with") MouseClick("Left"214, 378) else Sleep( 500 ) EndIf until winExists("WinRAR Setup"," Associate WinRAR with") WinActivate("WinRAR Setup"," Associate WinRAR with") MouseClick("Left"214, 378) i tryed a message box it thinks the window dosnt exsist DO If WinExists("WinRAR Setup"," Associate WinRAR with") Then MsgBox(0, "", "Window exists") else Sleep(500) EndIf Until WinExists("WinRAR Setup"," Associate WinRAR with") MsgBox(0, "", "Window exists2") Exit heres the autoit window tool info expandcollapse popup>>>> Window <<<< Title: WinRAR Setup Class: #32770 Position: 356, 226 Size: 503, 403 Style: 0x94C808C4 ExStyle: 0x00010101 >>>> Control <<<< Class: Instance: ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: >>>> Mouse <<<< Position: 374, 24 Cursor ID: 2 Color: 0x305BB7 >>>> StatusBar <<<< >>>> Visible Text <<<< OK Associate WinRAR with &RAR &ZIP CAB ARJ LZH ACE 7-Zip TAR GZip UUE BZ2 JAR ISO Z Select &all Interface Add WinRAR to &Desktop Add WinRAR to &Start Menu Create WinRAR &program group &Integrate WinRAR into shell Shell integration Cascaded con&text menus Ico&ns in context menus Help These options control integration of WinRAR into Windows. The first group of options allows to choose archive types to handle by WinRAR. The second group selects places to add links to the WinRAR executable. And the last group controls integration into the Windows shell. Shell integration provides handy facilities like "Extract" item in archive context menus, so usually there is no reason to disable it. Press "Help" button to read more detailed description of these options. &Context menu items... >>>> Hidden Text <<<< ive been trawling the forum for a few days trying to find where im going wrong. thanks in advance Link to comment Share on other sites More sharing options...
SalazarCheats Posted July 2, 2007 Share Posted July 2, 2007 try... editing an old one to fit the programs ur gona do now.. Ok im 14 with a spelling age of a 9 year old... that explanes all my spelling mistakes Link to comment Share on other sites More sharing options...
MisterBates Posted July 2, 2007 Share Posted July 2, 2007 Hi I havnt used auoit for a few years. im trying to make some unattended installers for my unatteded winxp dvd, last time it all whent fine, but now some windows just arnt playing ball i made an installer for nero7 no problem and office 2007 but power dvd, winrar, and Flashfxp, are all giving me headaches the first coulple of windows are fine but then a window either dosnt exsist or my mouse click dosnt work. ive tryed a loop this has worked but not allways ie this dosnt work do If winExists("WinRAR Setup"," Associate WinRAR with")Then WinActivate("WinRAR Setup"," Associate WinRAR with") MouseClick("Left"214, 378) else Sleep( 500 ) EndIf until winExists("WinRAR Setup"," Associate WinRAR with") WinActivate("WinRAR Setup"," Associate WinRAR with") MouseClick("Left"214, 378)Were you using an older version of AutoIt before? Reason for asking is that your code seems overly complex. I also saw that the window text you were looking for had a leading space, but the output from the WindowInfo tool doesn't. Finally, there was no comman between the "Left" and the first coordinate of the MouseClick. Not tried it, but this code should work: WinWait("WinRAR Setup","Associate WinRAR with") WinActivate("WinRAR Setup","Associate WinRAR with") MouseClick("Left",214, 378) [u]MisterBates[/u]_____________________________________________________Suspend/Resume Windows ScreensaverWatchWindows - Window watcher/loggerUDF: Click systray menu/submenu itemsUDF: Outlook Express Folder/Message handling (+ example code)HowTo: Multiple icons in one compiled script 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