Note - :*:abc:: = (you can type abc without Space) - ::abc:: = (you can type abc with Space) RegWrite, REG_SZ, HKEY_CURRENT_USER, software\KeyHintText,value2,?% RegWrite, REG_SZ, HKEY_CURRENT_USER, software\KeyHintText,value1,?% Write the variable's To Registry - KeyHintText,value1 to value2 Then you can Read it With to the paste it and it is done.Įxample1.ahk: If you put all the text first to the Windows Registry Memory. If you often have to send such a complex or long text, you can create a function, for not repeating the whole code every time: ::li::Īnother Way to send Quickly long text with autohotkey Scripting languages is, VarSetCapacity(ClipSaved, 0) free the memory in case the clipboard was very large. Sleep, 300 don't change clipboard while pasting! (Sleep > 0)Ĭlipboard := ClipSaved restore original clipboard If (!ErrorLevel) If NOT ErrorLevel, ClipWait found data on the clipboard 2 seconds for the clipboard to contain data. However the second method is a little slow.Īny suggestions for how I can avoid this slow expansion method? Perhaps by using the clipboard to copy and paste from the AHK script?ĬlipSaved := ClipboardAll save the entire clipboard to the variable ClipSavedĬlipboard := "" empty the clipboard (start off empty to allow ClipWait to detect when the text has arrived)ĬlipWait, 2 wait max. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. At vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. ![]() ![]() Right now I am using the following method: ::abc::all bad cats The current keystroke method I'm using is quite time consuming and therefore something I would rather avoid. I've been trying to figure out how to insert/expand long text faster.
0 Comments
Leave a Reply. |