Jump to content

controlsettext not working


 Share

Recommended Posts

Hello everybody,

I try to set same text in an edit box. Until last month everything's working fine. But after an update of this program I am editing (since 5 years), only 'controlgettext' is working. 'controlsettext' failed.

With other programs I don't have this problem. Only with one of them. I just tried same mouseclick simulations. I tried 'send' and every potential solution I find by google. Nothing is working to edit a single box. I can not reach the edit box for writing or getting focus. Only reading works fine.

Does anybody know these problem?

This is a workaround for my testings:

$get=ControlGetText("LupasRename - [C:\Windows\system32\]", "", "[CLASS:Edit; INSTANCE:2]")
MsgBox(16,"",$get)
if not ControlSetText("LupasRename - [C:\Windows\system32\]", "", "[CLASS:Edit; INSTANCE:2]", "edit") Then
MsgBox(16,"","not found")
EndIf

For this program 'Lupas Rename' everthing is working. In another program only 'controlgettext' is working. 'controlsettext' don't.

 

Thanks a lot...

Link to comment
Share on other sites

Here is the solution:

Programs change policy statements and policy configurations when they habe been updated.

After these changings maybe you can only edit by script when you get full admin rights. 

For that you have to add
#RequireAdmin

at the beginning of your code.

In my case it was the solution.

Link to comment
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
 Share

  • Recently Browsing   0 members

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