Vasya Posted November 9, 2023 Share Posted November 9, 2023 (edited) I'm trying to get the name of the window that opens when I try to close the notepad window with the changes made and then get information about its name, but all Autoit v3 Windows info writes is DesktopWindowXamlSource, its win 11, but tutorial only suggests win xp and win 7, i guess something changed for win 11 to get windows inside windows names that is not mentioned in tutorial? Edited November 9, 2023 by Vasya Link to comment Share on other sites More sharing options...
Andreik Posted November 9, 2023 Share Posted November 9, 2023 We can't guess what tutorial do you follow. Post some code. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Vasya Posted November 9, 2023 Author Share Posted November 9, 2023 i use this one https://www.autoitscript.com/autoit3/docs/tutorials/notepad/notepad.htm, problem is not with the code, problem is with program that is supposed to show names of windows, because i cant get one Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 9, 2023 Moderators Share Posted November 9, 2023 You say the problem is not in the code, but without code no one can replicate what you're seeing. Crystal ball is in the shop; post your code if you want help "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Vasya Posted November 9, 2023 Author Share Posted November 9, 2023 I did a gif for you to understand Here is that i get: And here is that is supposed to be: So instead of DesktopWindowXamlSource, Autoit windows info should give me the name of active window. Link to comment Share on other sites More sharing options...
Andreik Posted November 10, 2023 Share Posted November 10, 2023 There are differences in Win 11 but what is your final goal? To follow the tutorial step by step even if the things changed in Win 11, to automate the saving process or to close the window? When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Vasya Posted November 10, 2023 Author Share Posted November 10, 2023 First one, follow step by step, but since i cant get the name of that window, and any other program like cheat engine or windows inspector cant or dont see it i cant finish final step there my code should close the popping up window by clicking anything and close the notepad. So i want a way to do it in Win 11. Link to comment Share on other sites More sharing options...
Solution Andreik Posted November 10, 2023 Solution Share Posted November 10, 2023 AutoItSetOption('WinTitleMatchMode', 2) Run('notepad.exe') WinWait('Notepad') ControlSend('Notepad', '', 'RichEditD2DPT1', 'Some text') WinClose('Notepad') Sleep(2500) WinActivate('Notepad') WinWaitActive('Notepad') Send('!n') When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Vasya Posted November 10, 2023 Author Share Posted November 10, 2023 Thanks 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