Code: Select all
^+g:: MouseClick, left, 278, 182, 3 Send, {Shift down} MouseClick, left, 553, 212, 1 Send, {Shift up} Send, {Click, 1}^c OnClipboardChange: ToolTip Clipboard data type: %A_EventInfo% StringReplace, Clipboard, Clipboard, `r`n,%A_Space%, All Sleep 500 ToolTip ; Turn off the tip. return
If anyone could please help me with this. It would indeed be helpful.
Actually the above code works absolutely fine in copying the text removing line break but it also stops the use of Normal copy and paste with the line breaks.
I am looking for a solution wherein Ctrl C and Ctrl V should works as per normal behavior with line breaks
And Ctrl+shift+G should only execute that code which removes linke break
I look forward to having your resolution as it takes a lot of time as I have to stop the script everytime to perform normal copy and paste operations.
I am using Windows 10 and AHK Version 1.1.33.09