tejasvi Posted February 13, 2021 Share Posted February 13, 2021 I want the space key to work like Ctrl after 200 ms of being pressed. So, in theory it should work like this: while space key is press down { for first 200 ms { if another key is pressed or space key released { work like normal space go no further } } after first 200 ms { if another key <Key> is pressed { Send Ctrl+Key } } } Is it possible with Autoit? Link to comment Share on other sites More sharing options...
Danp2 Posted February 13, 2021 Share Posted February 13, 2021 Hi... and welcome to the forums. FWIW, you can do almost anything in AutoIt. However, there are times where we step back and ask "Why?" before proceeding with the "How". Can you elaborate on your situation and why you would want to use double space for control? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
tejasvi Posted February 13, 2021 Author Share Posted February 13, 2021 I am sorry I wasn't clear. I meant double as in "double meaning". My aim is to use home row keys as modifiers (here `space` is meant to be just an example) while preserving their normal behavior in most cases. Towards that goal, I want a non-modifier key to act as a certain modifier key on long press. If the key gets released before any other key presses, it should behave like the original non-modifier key. Link to comment Share on other sites More sharing options...
Nine Posted February 13, 2021 Share Posted February 13, 2021 Still not very clear to me. But you didn't answer @Danp2 question of "why do you want to it ?". On which application should it be applied ? “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...
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