Sign in to follow this  
Followers 0
Vitamin

ControlClick - oh dear

5 posts in this topic

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!

Share this post


Link to post
Share on other sites



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.

:whistle:


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

Share this post


Link to post
Share on other sites

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.

:whistle:

Opt("MouseCoordMode", 2) ;

MouseMove ($pos[0]+10,$pos[1] +10 ,0)

Sleep(200)

MouseClick("left")

Sleep(1000)

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

I have just succeeded ,It also errassed me for 2 days

Cool! :lmao:

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)...

:whistle:


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

Share this post


Link to post
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
Sign in to follow this  
Followers 0