Newb Posted May 23 Share Posted May 23 Hello, I made a tool for automating some stuff, you know, just click some windows, input some file paths in the choose files windows and stuff like that. Now, I developed it in a windows 11 sandbox (More info, someone might find this useful), and i tried to run it on a Win 10 machine. Mouse moves, but is unable to select text areas to input file paths and so on. Basically some functions don't work. Is it that windows handles are different or something like that? Do I have to recapture every window handle and adapt it? I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it. Link to comment Share on other sites More sharing options...
Andreik Posted May 23 Share Posted May 23 2 minutes ago, Newb said: Is it that windows handles are different or something like that? Windows handles are most certainly different but this is not the problem. What it really matters in windows automation is if the classname of the controls are changing. For example on Win 11 notepad edit area is a RichEditD2DPT control but on previous versions of Windows it's a basic Edit control. Link to comment Share on other sites More sharing options...
Newb Posted May 23 Author Share Posted May 23 26 minutes ago, Andreik said: Windows handles are most certainly different but this is not the problem. What it really matters in windows automation is if the classname of the controls are changing. For example on Win 11 notepad edit area is a RichEditD2DPT control but on previous versions of Windows it's a basic Edit control. Dang, I suspected that. Well, looks like I'll have to recapture all the windows handles and make a switch for win 10/11. Does in any case UIAutomation helps in whatever way of standardizing these controls so I don't have to do differentiate for each OS version? I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it. Link to comment Share on other sites More sharing options...
Nine Posted May 23 Share Posted May 23 53 minutes ago, Newb said: Does in any case UIAutomation helps in whatever way of standardizing these controls Possibly, you need to run UIASpy in both Win10 and Win11, see what is identical and what is different, and use the criteria accordingly. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Newb Posted May 24 Author Share Posted May 24 20 hours ago, Nine said: Possibly, you need to run UIASpy in both Win10 and Win11, see what is identical and what is different, and use the criteria accordingly. Well, as far as it may interest you, I ended up thinking "Heck, they're the same thing how this is possible", I then proceeded to install the full autoit+scite and running from scite works without changing a single bit of code. For what it concerns me, I'm quite ok like this as I got my result. But it's quite concerning for who have to distribute their program out there, since this could lead to software non working on other systems. I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it. Link to comment Share on other sites More sharing options...
Jfish Posted May 25 Share Posted May 25 When you installed the full version did you upgrade to a newer version of Autoit? If so, you may have picked up important updates that un-broke your script. It wouldn't be uncommon to need to update scripts for compatibility and distribution when there are OS changes. Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with 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