mdavid Posted February 14, 2006 Share Posted February 14, 2006 I'm using v3 in Delphi. I get an access error when using a null string for text as in: WinWaitActive("Login Dialog","",20) but I don't get an access error if I replace the null string by a space as WinWaitActive("Login Dialog"," ",20) In autoit script mode neither of these statements gives an access error. Any idea what is going on? Link to comment Share on other sites More sharing options...
mdavid Posted February 15, 2006 Author Share Posted February 15, 2006 Well, I found the solution so here it is for anyone interested. In the Delphi wrapper for AutoITX, the strings are all type WideString and if s is a widestring, the null string should be initialized by s := '' + #0. The #0 is necessary, but only for the null string. 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