Select an item in a built-in list box?

Status
Not open for further replies.

LMH

Usenet Archive
Joined
Nov 29, 2001
Messages
4
Reaction score
0
Hello,

I need to select an item from a built-in
list box using Basic, before I can set some options
related to the item.

When recording a marco, the actions of clicking on the item, or hitting the down arrow to get to the item are not recorded.

The FORM name is "Symbology Control: Wiring Design", but I do not know the name of the list box. I need to select the third item in the list box, which contains 18 items. The item text is "Connectivity Report."

If MS Basic had an equivalent to Visual Basic's SendKeys, I could accomplish this very easily, but...

By the way, this form was created in MDL, and is part
of a wiring package made by Intergraph called WireWorks, which runs on top of Microstation.

Any ideas?

Thanks.
 
Hi LMH,
Sadly, the macro recorder can't pick up everything that's clicked on (like in Word for eaxmple), so it's not truly a "recorder." Five years ago my very first macro involved level symbology (active and reference), and it was very disappointing. Anyway, there's a trick that sometimes works, but don't get your hopes up. You can try to retreive the key-ins for the app by examining Utilities > MDL Applications, find you MDL under Loaded Applications, then click on the Key-ins button. If the app was thoughtfully written, then there will be some unique key-ins available, such as WW -- DIALOGMAIN WW -- REPORT -- LOAD WW -- REPORT -- CONNECTIVITY etc., but this is a guess. Then you'd just use these keyins in your macro:
MbeSendKeyin "WW REPORT CONNECTIVITY" or whatever. But the key-ins would have to exist for this to work...

HTH,
Simon

LMH wrote:
Hello,

I need to select an item from a built-in
list box using Basic, before I can set some options
related to the item.

When recording a marco, the actions of clicking on the item, or hitting the down arrow to get to the item are not recorded.

The FORM name is "Symbology Control: Wiring Design", but I do not know the name of the list box. I need to select the third item in the list box, which contains 18 items.
...
 
Thanks for the reply Simon.

I checked the key-ins, and while there are some available, the one I need does not exist.

Good tip though... It'll definitely help in the future.

Simon Wurster wrote:
Hi LMH,
Sadly, the macro recorder can't pick up everything that's clicked on (like in Word for eaxmple), so it's not truly a "recorder." Five years ago my very first macro involved level symbology (active and reference), and it was very disappointing. Anyway, there's a trick that sometimes works, but don't get your hopes up. You can try to retreive the key-ins for the app by examining Utilities > MDL Applications, find you MDL under Loaded Applications, then click on the Key-ins button. If the app was thoughtfully written, then there will be some unique key-ins available, such as WW -- DIALOGMAIN WW -- REPORT -- LOAD ...
 
Status
Not open for further replies.

Latest threads

Back
Top