Bolluhhhhh Posted June 4, 2024 Posted June 4, 2024 For years I successfully used a script that I wrote that turned CapsLock on when a window belonging to a process xtop.exe (PTC Creo Parametric) gets active. And vice versa turned CapsLock off when a windows not belonging to process xtop.exe gets active. I simply used Send('{CAPSLOCK on/off}') for this. We have now updated our Creo Parametric installation to v9.0.3.0 and it seems like Send('{CAPSLOCK on/off/toggle}') doesn't work anymore to windows belonging to this process. To all other processes/windows it works fine. I've also tried ControlSend and $WshShell.SendKeys("{CAPSLOCK}") but these also don't work when on windows belonging to xtop.exe. Are there other options to change CapsLock state? Any help on this problem is much appreciated. P.S. SendCapslockMode is set to 0.
Nine Posted June 4, 2024 Posted June 4, 2024 (edited) Maybe it is an elevation problem ? You cannot send keys to a higher elevated process. Try #RequireAdmin. Edited June 5, 2024 by Nine “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Bolluhhhhh Posted June 4, 2024 Author Posted June 4, 2024 (edited) Thanks, that did the trick. Edited June 4, 2024 by Bolluhhhhh
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