Jump to content
Sign in to follow this  

Working with ListBox

Recommended Posts



First, I must congratulate you for this wonderful program (Which I had found out only week ago...)

However, I am having problem working with ListBox functions:

any one of the following commands didn't return a desired result (aka real value...)

AutoIt.ControlCommand "Form1", "", "ThunderRT6ListBox1", "AddString", "string"

MsgBox AutoIt.ControlCommand("Form1", "", "ThunderRT6ListBox1", "GetCurrentSelection", "")

MsgBox AutoIt.ControlCommand("Form1", "", "ThunderRT6ListBox1", "GetSelected", "")

What am I doing wrong?

(I Am using AutoItX3 via VB)

Share this post

Link to post
Share on other sites

$cmd_1 = ControlCommand("", "", "", "GetCurrentSelection", "")

$cmd_2 = ControlCommand("", "", "", "GetSelected", "")

MsgBox (0,"", $cmd_1)

MsgBox (0,"", $cmd_2)

you had improper use of the commands

hope it helps



Share this post

Link to post
Share on other sites

Thanks, but I think i misunderstood you.

As I said, I am using AutoItX3 via VB. Therefore, that is the corresponding program syntax. Despite The difference between native Autoit script and VB syntax, I didn't see any further difference...

Any suggestion?

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.