mix359 Posted August 31, 2015 Share Posted August 31, 2015 Hi,I'm new to autoit. I'm tring to automate the insert of a password in a field and the selection of a radiobutton.I've started with the field, this is the first window, that is really simpleI've used the utility to catch the instance number and class type, and have done this simple script:WinWaitActive("Deep Freeze Standard")ControlSend("Deep Freeze Standard", "", "[CLASS:TEdit; INSTANCE:1]", "test")THe problem is that it doesn't work. I've tried many different thing, like the #RequireAdmin, or use the Send, but it doesn't work.I've tried to catch a text from that field, and that worked:ControlGetText("Deep Freeze Standard", "", "[CLASS:TEdit; INSTANCE:1]")I've tried many other action, but none of that worked. It's like a read-only access Any solution?How can I debug or have more information? Thanks to allByez Link to comment Share on other sites More sharing options...
Gianni Posted August 31, 2015 Share Posted August 31, 2015 ? try to change "test" with "test{ENTER}" in the ControlSend Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
mix359 Posted August 31, 2015 Author Share Posted August 31, 2015 ? try to change "test" with "test{ENTER}" in the ControlSendthanks for the answer.I've tried it, but nothing changed.It seam like the application doesn't accept command (I've tried a move windows and other stuff like that, but noone worked) Don't know if there's an other way to insert the data (like doing the keyword and mouse action, but I think that the Send command to that) Link to comment Share on other sites More sharing options...
Iczer Posted August 31, 2015 Share Posted August 31, 2015 Try before ControlSend()WinWaitActive("Deep Freeze Standard") ControlFocus("Deep Freeze Standard", "", "[CLASS:TEdit; INSTANCE:1]") ControlSend("Deep Freeze Standard", "", "[CLASS:TEdit; INSTANCE:1]", "test")if still no go try _WinAPI_Keybd_Event() instead ControlSend() Link to comment Share on other sites More sharing options...
Gianni Posted August 31, 2015 Share Posted August 31, 2015 ......I've tried to catch a text from that field, and that worked:ControlGetText("Deep Freeze Standard", "", "[CLASS:TEdit; INSTANCE:1]")......you say that ControlGetText worked,what do you get from above ControlGetText? a previously send string or what else? also did you try with ControlSetText()? Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... 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