haf Posted September 14, 2015 Share Posted September 14, 2015 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 More sharing options...
Skysnake Posted September 15, 2015 Share Posted September 15, 2015 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? 07Coder 1 Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
07Coder Posted September 15, 2015 Share Posted September 15, 2015 Just Do Run The Script Dont Compile ittest and tell me Link to comment Share on other sites More sharing options...
haf Posted September 16, 2015 Author Share Posted September 16, 2015 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. 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