haf

Script Not Working on Win 10

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



Is this a script or a compiled EXE? What version is your AutoIt with which this was compiled?  Can you compile a 64 bit version? How does that respond?

1 person likes this

Skysnake

Why is the snake in the sky?

Share this post


Link to post
Share on other sites

Just Do Run The Script Dont Compile it

test and tell me

Share this post


Link to post
Share on other sites

I figured out what was going on. The program under test is running as administrator. Once I set SciTE to run as administrator also it started working.

Share this post


Link to post
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