Sign in to follow this  
Followers 0
jbg1978

Explicit Data Types

3 posts in this topic

#1 ·  Posted (edited)

I know that the help files insist that data types will be converted properly when necessary in AutoIT. However, this is the second issue I've run into with not being able to explicitly set my data types. I have a program in vb.net that will be used from workstations where I can't put the AutoITx dll in the system folder due to group policy restrictions. So, I want to write a series of wrappers in AutoIT and compile them into executables that will be shelled from my VB app. An example would be an AutoIT script that accepts 4 command line args and passes them to the ControlSetText function. However, when a string is passed as the control ID parameter to the function, it fails. Only when I pass it as a number does it work correctly. Any suggestions on how to convert the string that is passed in the command line to a number, so the function will accept it.

Also, I know that I could probably pass the class instead of the control ID, but I've found in my experience that the control ID is the most accurate way to go and would rather not be bound to limitations like that.

Edited by jbg1978

Share this post


Link to post
Share on other sites



Worked perfect and so simple. Sorry to have taken up your time. I was thinking to hard into it. Thank you Jos.

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  
Followers 0