Forgive me, I'm new.
I'm trying to create hotstring auto replace that instead of typing uses clipboard and paste, which is more compatible with the software I'm using.
Also, returns are ignored so I have to have to separate the code in two or more parts with sendinput for the enter key in between pasting the code
Though, I'm having an issue where it oddly only uses the last clipboard = command for every instance of paste.
So here's a simple example of what I want to do
Code:
::HK-REF-::
clipboard = [ref]Xxxxxxxx xxxxxxxxx xxx xxxxxxx.
SendInput ^v
SendInput {Enter}
clipboard = <MC>Page X-X.
SendInput ^v
SendInput {Enter}
Return
Where most the time in Notepad, after I type special letters, instead of:
[ref]Xxxxxxxx xxxxxxxxx xxx xxxxxxx.
<MC>Page X-X.
I get:
<MC>Page X-X.
<MC>Page X-X.
If I add...
clipboard =
clipwait 0.5
...to the begining, it works in Notepad, but not in the software I need, it still repeats the last clipboard = text. Even if I create a new code, with random text to be pasted, it uses the last clipboard = for both paste. How is that possible? It's like it's going out of order. How can the ^v paste text that it shouldn't have ever sent to clipboard. Unless it happens the moment I launch script. Again, I'm new to this.
Or is there a way to send text to the clipboard and not lose returns?
[ Moderator!: Moved from Scripts and Functions ]