Ignore tabs in clipboard?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
morrie23
Posts: 1
Joined: 18 Jun 2018, 05:23

Ignore tabs in clipboard?

18 Jun 2018, 05:28

Hi all,

I'm doing something fairly simple, I need to copy a piece of a log and add a text underneath, i want to use text expansion for that.
However, the logs i copy have tabs in them, and it causes AHK to jump to the next fields and fill in the next lines.
This messes up what im trying to do.

I tried to use SendRaw and Send,{text}, however, it keeps doing the same things

This is what i currently use:

Code: Select all

::!sir::
	SendRaw,%clipboard% `n
	Send,{SPACE} `n
	Send,Line of text
Return
Anyone has an idea how to use the clipboard like this if it has tabs?

Thanks!
eelrod
Posts: 65
Joined: 10 Apr 2018, 11:17

Re: Ignore tabs in clipboard?

18 Jun 2018, 09:27

Here is an example replacing all tabs with nothing.

Code: Select all

clipboard := RegExReplace(clipboard , "`t" , "")

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], roeleboele and 374 guests