Jump to content
Xentradi

Selecting options from Context Menu

Recommended Posts

Xentradi

I'm working on a quick script to automate part of my workflow for some shop drawings I need to make.

Currently I'm stuck on trying to change my selection type. This is done via a right click context menu that allows me to choose different types of selecting. The script right clicks however I cannot have it click an option within the context menu.

I had assumed I could just get a control ID using the Window Info tool but no such luck clicking anywhere else causes the context menu to close.

I've tried the following so far:

ControlClick("C6-530","Select color","")
ControlClick("C6-530","Select color","[CLASS:EasyStoneView; INSTANCE:1]")

Attachment is a screenshot of the context menu.

ContextMenu.JPG

Share this post


Link to post
Share on other sites
jdelaney

There is a hotkey to not require a 'freeze' in the window info tool...ctrl+alt+f...unfreeze, mouse over the context, then refreeze...on the autoit window info tool.

Standard ones are

 

>>>> Window <<<<
Title: 
Class: #32768

  • Like 1

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
Xentradi

Thank you very much!

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

×