Delete the first letter?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Itman
Posts: 17
Joined: 11 Sep 2016, 13:47

Delete the first letter?

15 Jul 2018, 17:39

Is it possible to configure AHK and to assign a hotkey for a special paste? So that the first letter of the copied text will be deleted? I work with Russian and Hebrew texts.
Thank you.
User avatar
JoeWinograd
Posts: 2198
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Delete the first letter?

15 Jul 2018, 17:57

I've never worked with Hebrew or Russian text, but I tested the following script in English and it works fine:

Code: Select all

!^v::
If (Clipboard<>"")
{
  Clipboard:=SubStr(Clipboard,2)
  SendInput ^v
}
Return
I made the hotkey for the special paste Alt+Ctrl+v, but make it whatever you want. Regards, Joe
Itman
Posts: 17
Joined: 11 Sep 2016, 13:47

Re: Delete the first letter?

15 Jul 2018, 18:05

Hi, thank you for the answer. It does not work for me, also in English not.
User avatar
JoeWinograd
Posts: 2198
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Delete the first letter?

15 Jul 2018, 18:14

It works perfectly here. Please post the exact script that you're using.

What version of AHK do you have? What version of Windows?
Itman
Posts: 17
Joined: 11 Sep 2016, 13:47

Re: Delete the first letter?

15 Jul 2018, 18:30

I changed it to a different hotkey and now it works. Thank you for that!
User avatar
JoeWinograd
Posts: 2198
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Delete the first letter?

15 Jul 2018, 18:35

You're welcome. I'm glad to hear that it works now. Regards, Joe

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: aitaixy, Anput, dangoscrub, Google [Bot], joedf, Nerafius and 159 guests