sorry i have no idea about hot code working with two monitor .
and about you want to triggered code when u release
left click i think this will cause too much Trouble ,
so for new line using com use this:
Code: Select all
f1::WordPasteAtSelection()
WordPasteAtSelection()
{
ClipSaved := ClipboardAll
Clipboard := ""
Send, ^c
ClipWait, 1, 1
oWord := ComObjActive("Word.Application")
oWord.Selection.PasteAndFormat(16) ; replace this line with FanaticGuru code if u want change text format as he Described
oWord.Selection.TypeParagraph ; this for new line if u want two linefeed u can Repeat it
Clipboard := ClipSaved
}
return
for more details about com and how use it take a look here:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=77
by the way u can also use
ControlSend to send clipboard contents to inactive window , example Below:
Code: Select all
f1::WordPasteAtSelection()
WordPasteAtSelection()
{
ClipSaved := ClipboardAll
Clipboard := ""
Send, ^c
ClipWait, 1, 1
ControlSend , _WwG1, %clipboard% "`n", Document1 - Word ; "`n" meaning enter or new line
Clipboard := ClipSaved
}
return