gyaani Posted July 7, 2021 Share Posted July 7, 2021 I am developing RSI on my wrist from repeated Ctrl+c and Ctrl+v . Would really appreciate help in doing this. Thank you! Link to comment Share on other sites More sharing options...
Nine Posted July 7, 2021 Share Posted July 7, 2021 (edited) Try this simple solution : #include <WinAPISys.au3> #include <WinAPIvkeysConstants.au3> HotKeySet("^!{END}", _Exit) ; Ctrl-Alt-End to exit Local $aKeyMap = StringSplit("axcvz", "", 0) ; keys mapped to Ctrl when CapsLock is on Local $iSet = False While True Sleep(20) If _WinAPI_GetKeyState($VK_CAPITAL) Then If $iSet Then ContinueLoop For $i = 1 to $aKeyMap[0] HotKeySet($aKeyMap[$i], _SendCtrl) Next Else If Not $iSet Then ContinueLoop For $i = 1 to $aKeyMap[0] HotKeySet($aKeyMap[$i]) Next EndIf $iSet = Not $iSet WEnd Func _SendCtrl() Send("^" & @HotKeyPressed) EndFunc Func _Exit() Exit EndFunc Edited July 7, 2021 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) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
jchd Posted July 7, 2021 Share Posted July 7, 2021 3 hours ago, gyaani said: Ctrl+c and Ctrl+v You can use Ctrl+Ins and Shift+Ins instead. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 7, 2021 Moderators Share Posted July 7, 2021 Or use this as an opportunity to define the process/steps that are causing you to copy and paste so often, and automate them. Kill two birds with one stone, without having to re-engineer your keyboard keys. Skysnake and Exit 2 "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...
Nine Posted July 7, 2021 Share Posted July 7, 2021 2 hours ago, JLogan3o13 said: Kill two birds with one stone Bird killer Skysnake and Xandy 1 1 “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...
JockoDundee Posted July 8, 2021 Share Posted July 8, 2021 5 hours ago, JLogan3o13 said: Kill two birds with one stone ProcessClose($Bird1, $Bird2, $Stone1) spudw2k, FrancescoDiMuro and Skysnake 1 2 Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
gyaani Posted July 15, 2021 Author Share Posted July 15, 2021 I ended up using autohotkey for this. Not ideal. But the code was too simple CapsLock::Ctrl 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