Vitamin Posted July 11, 2007 Share Posted July 11, 2007 I am attempting to automate a menu option by using "ControlClick" because I don't think it is a Windows menu. Actually, I'm not even sure how I would describe the menu. What do you call that icon in the top left corner of your IE window? Next to the title bar, for me it is Opera, it looks like a red "O". Anyway, not knowing how to automate something like that i want to pass a ControlClick to position (11, 11) in the window (which has no Control ID either - blech) here's my code (i've attempted this on Notepad for practice, FAILURE!!): winactivate("Untitled","") ControlClick("Untitled","","","left",1,17,33) it activates the window, then BAM! does nothing. those coordinates (17, 33) is for the "&File" menu just to see if maybe my idea of a control container is wrong, but it still does not work. thanks in advance! Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 11, 2007 Share Posted July 11, 2007 I am attempting to automate a menu option by using "ControlClick" because I don't think it is a Windows menu. Actually, I'm not even sure how I would describe the menu. What do you call that icon in the top left corner of your IE window? Next to the title bar, for me it is Opera, it looks like a red "O".Anyway, not knowing how to automate something like that i want to pass a ControlClick to position (11, 11) in the window (which has no Control ID either - blech)here's my code (i've attempted this on Notepad for practice, FAILURE!!):winactivate("Untitled","")ControlClick("Untitled","","","left",1,17,33)it activates the window, then BAM! does nothing. those coordinates (17, 33) is for the "&File" menu just to see if maybe my idea of a control container is wrong, but it still does not work.thanks in advance!If you don't have a ControlID anyway, just use MouseClick() with the coordinate. Be aware of the "MouseCoordMode" option when entering the correct coordinates. 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...
ILoveIt Posted July 14, 2007 Share Posted July 14, 2007 If you don't have a ControlID anyway, just use MouseClick() with the coordinate. Be aware of the "MouseCoordMode" option when entering the correct coordinates. Opt("MouseCoordMode", 2) ; MouseMove ($pos[0]+10,$pos[1] +10 ,0) Sleep(200) MouseClick("left") Sleep(1000) Link to comment Share on other sites More sharing options...
ILoveIt Posted July 14, 2007 Share Posted July 14, 2007 I have just succeeded ,It also errassed me for 2 days Opt("MouseCoordMode", 2) MouseMove ($pos[0]+10,$pos[1] +10 ,0) Sleep(200) MouseClick("left") Sleep(1000) Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 14, 2007 Share Posted July 14, 2007 I have just succeeded ,It also errassed me for 2 daysCool! Well, I hope you don't get "errassed" any more (if that's a bad thing)...Or, I hope you get "errassed" more (if that's a good thing)... 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...
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