Copy selected text automatically to the clipboard
-
iamnemo
- Posts: 18
- Joined: 10 Jun 2017 23:12
Copy selected text automatically to the clipboard
Is there a way to select just part of a filename and have the selected text copied automatically to the clipboard?
-
RalphM
- Posts: 2145
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: Copy selected text automatically to the clipboard
Well, in order to have only part of a filename selected you would need to enter rename mode by slow dbl-clicking the file, then select the part of the name you want to copy and use Ctrl+C in order to copy this to the clipboard.
For anything more automatic you will have to get into scripting and then use a user button or shortcut to initiate it.
For anything more automatic you will have to get into scripting and then use a user button or shortcut to initiate it.
Ralph 
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Copy selected text automatically to the clipboard
Not possible from inside XY, even scripting (as an automatism) won't work
One of my scripts helped you out? Please donate via Paypal
-
Horst
- Posts: 1419
- Joined: 24 Jan 2021 12:27
- Location: Germany
Re: Copy selected text automatically to the clipboard
There are Autohotkey scripts which copies any selection to the clipboard.
Code: Select all
;~ Works ok. Copies automatically. Paste via middle mouse button while holding down Ctrl+Shift.
;~ Has a annoying tool tip option which is commented out
mousedrag_treshold := 20 ; pixels
middleclick_available := 15 ; seconds
Hotkey mbutton, paste_selection
Hotkey mbutton, off
Hotkey rbutton, cancel_paste
Hotkey rbutton, off
#IfWinNotActive ahk_class ConsoleWindowClass
~lButton::
MouseGetPos, mousedrag_x, mousedrag_y
keywait lbutton
mousegetpos, mousedrag_x2, mousedrag_y2
if (abs(mousedrag_x2 - mousedrag_x) > mousedrag_treshold
or abs(mousedrag_y2 - mousedrag_y) > mousedrag_treshold)
{
wingetclass class, A
if (class == "Emacs")
sendinput !w
else
sendinput ^c
;~ settimer follow_mouse, 100
settimer cleanup, % middleclick_available * 500
hotkey mbutton, on
hotkey rbutton, on
}
return
#IfWinNotActive
;~ follow_mouse:
;~ tooltip copy
;~ return
paste_selection:
sendinput {lbutton}
WinGetClass class, A
if (class == "Emacs")
SendInput ^y
else
SendInput ^v
gosub cleanup
return
cancel_paste:
sendinput {rbutton}
gosub cleanup
return
cleanup:
Hotkey mbutton, off
Hotkey rbutton, off
SetTimer cleanup, off
;~ settimer follow_mouse, off
tooltip
Return
~^+Mbutton::
Send, ^v
return
;~ ;; clipx
;~ ^+mbutton::
;~ sendinput ^+{insert}
;~ return
Windows 11 Home, Version 26H2 (OS Build 26300.10075)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1424b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1424b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta
XYplorer Beta Club