spuuunit Posted July 14, 2020 Share Posted July 14, 2020 First I want to explain that this will be no gaming script. I'm doing a script that will enable all shaders, one after another, to take a screenshot of each one. To compare them and so on. Also RetroArch is single player, so it shouldn't matter that much anyway I suppose. So to my issue: the Send() function doesn't seem to work at all in RetroArch. Send("DOWN") for example does nothing. Is there a way I can somehow force RetroArch to listen to AutoIt's Send() functions? Link to comment Share on other sites More sharing options...
spuuunit Posted July 14, 2020 Author Share Posted July 14, 2020 Any ideas? Link to comment Share on other sites More sharing options...
Nine Posted July 14, 2020 Share Posted July 14, 2020 Your send statement is not written correctly. You need to add {}. “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...
spuuunit Posted July 14, 2020 Author Share Posted July 14, 2020 Oh shit sorry I wrote wrong in my post! Send("{DOWN}") is what I have in my code. It works everywhere else, but not in RetroArch. Sleep(5000) Send("{DOWN}") Link to comment Share on other sites More sharing options...
Nine Posted July 14, 2020 Share Posted July 14, 2020 If Send doesn't work I wonder what would. You may try to interact with controls using UIAutomation. “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...
spuuunit Posted July 14, 2020 Author Share Posted July 14, 2020 Do you know how I can test with UIAutomation? Link to comment Share on other sites More sharing options...
Nine Posted July 14, 2020 Share Posted July 14, 2020 Use the spy tool that comes with this : If the tool can read the controls, it means you can interact with them... You can also use the wrappers (see FAQ 31). “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...
TheDcoder Posted July 14, 2020 Share Posted July 14, 2020 My guess is that RetroArch listens directly to the hardware on a lower level, so the virtual key events sent by AutoIt are useless. If this is true, your best bet is to use a virtual keyboard driver which emulates a physical keyboard. No idea if such a thing exists in the wild yet. Also, I don't think RetroArch exposes an interface which UIAutomation could use. EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
spuuunit Posted July 14, 2020 Author Share Posted July 14, 2020 6 minutes ago, Nine said: Use the spy tool that comes with this : I don't know why, but when I try and run UIASpy.au3 I get an erro r. The code says: #include "Includes\GuiIncludes\UIASpy_Gui.au3" But the path is right... Link to comment Share on other sites More sharing options...
Nine Posted July 14, 2020 Share Posted July 14, 2020 You also need to install the UIAIncludes.7z file “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...
spuuunit Posted July 14, 2020 Author Share Posted July 14, 2020 Install? It only contain a bunch of includes. I put them together with the Spy includes, but still the same error. Link to comment Share on other sites More sharing options...
spuuunit Posted July 14, 2020 Author Share Posted July 14, 2020 1 hour ago, TheDcoder said: My guess is that RetroArch listens directly to the hardware on a lower level, so the virtual key events sent by AutoIt are useless. If this is true, your best bet is to use a virtual keyboard driver which emulates a physical keyboard. No idea if such a thing exists in the wild yet. Also, I don't think RetroArch exposes an interface which UIAutomation could use. That could be the case. But I hope not. 🤔 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