marwooj Posted February 26, 2010 Share Posted February 26, 2010 Hi, I have simple script that is clicking some links on www in IE, is there a way I can keep IE hidden and links be clicked while I am working in other app? $i = 0 Do Run("C:\Program Files\Internet Explorer\iexplore.exe -k localhost") WinWaitActive("[CLASS:IEFrame]") WinActivate("[CLASS:IEFrame]") Sleep(500) MouseMove(160, 167) MouseClick("left", 160, 167) Sleep(1000) MouseMove(457, 1063) MouseClick("left", 457, 1063) Sleep(1000) MouseMove(1513, 571) MouseClick("left", 1513, 571) Sleep(1000) MouseMove(754, 1067) MouseClick("left", 754, 1067) WinWait("Message from webpage", "ok") Send("{ENTER}") Sleep(300) ProcessClose("iexplore.exe") $PID = ProcessExists("iexplore.exe") ;MsgBox(0, "Value of $PID is:", $PID) If $PID Then ProcessClose($PID) Sleep(300) $i = $i + 1 Until $i = 3 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted February 26, 2010 Share Posted February 26, 2010 (edited) ControlClick will probably work. You won't need the MouseMove either. Edited February 26, 2010 by snowmaker - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
marwooj Posted February 26, 2010 Author Share Posted February 26, 2010 (edited) ControlClick will probably work. You won't need the MouseMove either. What is text The text of the window to access. Any text in window? so it could be some text in html table td value? I have >>>> Window <<<< Title: Main Menu - Windows Internet Explorer Class: IEFrame Position: -4, -4 Size: 1608, 1176 Style: 0x17CF0000 ExStyle: 0x00000100 Handle: 0x0000000000170828 >>>> Control <<<< Class: Internet Explorer_Server Instance: 1 ClassnameNN: Internet Explorer_Server1 Name: Advanced (Class): [CLASS:Internet Explorer_Server; INSTANCE:1] ID: Text: Position: 0, 110 Size: 1600, 1010 ControlClick Coords: 189, 165 Style: 0x56000000 ExStyle: 0x00000000 Handle: 0x00000000002A06C8 Edited February 26, 2010 by marwooj 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