Jump to content

Recommended Posts

Posted

Hi,

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)

Posted

$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

8)

NEWHeader1.png

Posted

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?

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
  • Recently Browsing   0 members

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