Jump to content

Script Not Working on Win 10


haf
 Share

Recommended Posts

I have a script that controls a custom MFC application. It worked just fine on Windows XP 32 bit. Without making any changes to the script I am trying to run it on Windows 10 64-bit. However, everything fails.

 MsgBox(0,"edit",ControlSetText($mainWindow, "", "[CLASS:Edit; INSTANCE:1]", "hello"))
 MsgBox(0,"click", ControlClick($mainWindow, "", "[CLASS:Button; INSTANCE:12]")

The first box shows 0 indicating the control was not found. However, I double checked with Window Info and the class and instance are correct. The second MsgBox shows 1 indicating that the click was successful but nothing actually happens. All of this works just find on XP 32-bit but not on Win10 64-bit.

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...