jbg1978 Posted November 26, 2008 Share Posted November 26, 2008 (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 November 26, 2008 by jbg1978 Link to comment Share on other sites More sharing options...
Developers Jos Posted November 26, 2008 Developers Share Posted November 26, 2008 Number() ? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
jbg1978 Posted November 26, 2008 Author Share Posted November 26, 2008 Worked perfect and so simple. Sorry to have taken up your time. I was thinking to hard into it. Thank you Jos. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now