Jump to content

GetCurrentSelection in ComboBox


Recommended Posts

  • Moderators

And what is this idea?:)

Ohhhhhhhhhhhhhhhhhhh ... You wanted details :P:nuke:

My idea is simple....

Ready?

1. Welcome to the forums!

2. Provide enough information (ie.. Application name / Application language it was written in / AutoInfo text / a working script (other than the issue your having .. preferably just a short version)) to get an answer to your questions your asking... I gave you as much of an answer as I saw a question.... I could give more if there were more to work with.

:D

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

OK.Thank you for your help. I feel good in this forum:)

This is brief information:

1.Application Name:Tariff Studio (I can send you this application)

2.Application language: Visual C++ (Visual Studio 6.0)

3.AutoInfo text:

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 541 Y: 92 W: 120 H: 22

Control ID: 1286

ClassNameNN: ComboBox1

Text:

Style: 0x56000413

ExStyle: 0x00000000

4.A working script:

$Select=ControlCommand ( "", "", "ComboBox1", "GetCurrentSelection", "" )

MsgBox(4096,"Test",$Select,10)

I get only first letter, e.g. instead of "first" I get "f".

Screenshot in Attachment

Thank you.

Screen.bmp

Link to comment
Share on other sites

  • Moderators

Yeah, find a download link for it and I'll have a look... screen shot and the autoInfo information doesn't say much...

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: Q:\DB\Database.trd - user: Andrey

Class: Afx:400000:8:10011:0:40c6d

Size: X: -4 Y: -4 W: 1032 H: 748

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Window: X: 622 Y: 143

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0xFFFFFF Dec: 16777215

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 541 Y: 92 W: 120 H: 22

Control ID: 1286

ClassNameNN: ComboBox1

Text:

Style: 0x56000413

ExStyle: 0x00000000

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

(1):

(2): Ready

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

[ Group: A02 - Break Call 12:12 No Conn Fee ] Pricing Plans: A02_01 - Break Call 12:12 No Conn Fee

Name :

A02_01 - Break Call 12:12 No Conn Fee

?

Enable Pricing Plan

Inherit From Parent Pricing Plan

Pricing Plan Type :

?

Parent Pricing Plan :

?

Carrier :

?

Service Name :

to Cellcom

Add

Delete

Tab1

Tab1

List1

Remove

Spin1

Action Type :

Use Accumulator (System or User)

Update

Add

Action Description :

Editing

Rating Scheme Name :

Special

Add

Delete

Tools

OK

Cancel

Apply

Fees

From 01/01/1900 to eternity

Options...

Effective - expiration :

Ready

Filter :

Set Filter

none

Calls

Q:\DB\Database.trd - user: Andrey

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

Use Accumulator

?

Set Ranking

Link to comment
Share on other sites

  • Moderators

I'm sorry. Did you receive my e-mail?

Yes, as I said in the other thread, I'm missing the last part of the DB... the 1.1 something or nother that actually has the controls to work with.

Thinking about this... did you try....

Opt('WinSearchChildren', 1) before the ControlCommand() call?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Yes, as I said in the other thread, I'm missing the last part of the DB... the 1.1 something or nother that actually has the controls to work with.

Thinking about this... did you try....

Opt('WinSearchChildren', 1) before the ControlCommand() call?

Hi, Ron.

Thank you for your help.

I tried Opt('WinSearchChildren', 1) before the ControlCommand(). Unfortunately it's not working.

I don't understand,where you are missing the last part of the DB.I can send you DB again.But it was possible to you open DB In Tariff Studio?How I can help you in it?

Thank you again.

Link to comment
Share on other sites

Think it would be a good idea to fill in the title information or partial title to make sure your retrieving from the correct window:

Opt("WinTitleMatchMode", 2)

$Select=ControlCommand ( "Database.trd - user:", "", "ComboBox1", "GetCurrentSelection", "" )

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...