Use \ or Eject key to delete

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
w_i_k_i_d
Posts: 11
Joined: 17 Apr 2024, 16:28

Use \ or Eject key to delete

22 Apr 2024, 16:59

Hello AHK2.0 forum,

Two questions plz.

1. How can i use '\' key to delete a selected file.
(I only use this to type C:\path and not very often)

2. How can i use 'Eject' key to delete a selected file.
(Definitely not using any cd's anytime soon)
Del.jpg
(548.39 KiB) Downloaded 54 times
I know why not just press the DEL key in the mid to delete files,
With the setup i have this DEL key works more like Backspace. Press DEL in win folder takes me to previous folder. No idea why.
So i desperately need a 1 click del key instead of Fn + Del (which works but its 2 hand job)

Thanks

------
MBP 13' Mid 2012
Bootcamp Win 10 Pro
User avatar
mikeyww
Posts: 27146
Joined: 09 Sep 2014, 18:38

Re: Use \ or Eject key to delete

22 Apr 2024, 18:30

Ideas are below.

Code: Select all

#Requires AutoHotkey v2.0
$\::Send '{Del}'
^\::Send '\'
You could see whether Eject has a :arrow: scan code.
w_i_k_i_d
Posts: 11
Joined: 17 Apr 2024, 16:28

Re: Use \ or Eject key to delete

24 Apr 2024, 15:41

Thank you kind sir
The \ key is working beautifully :superhappy:

Two questions please :-

1. Would it be possible to turn the DELETE key to this purpose with ?

$Del::Send '{Del}'
^Del::Send 'Del'
0237.jpg
(45.48 KiB) Downloaded 23 times


2. I did the scan code and I am attaching the screenshots below.
Please advise how i can turn the Eject key to the above function.
0238.jpg
(31.07 KiB) Downloaded 23 times
User avatar
mikeyww
Posts: 27146
Joined: 09 Sep 2014, 18:38

Re: Use \ or Eject key to delete

24 Apr 2024, 16:35

Yes, you can change the hotkey.

I am skeptical that you can work with the eject button directly, but I do not have a way to test that.
w_i_k_i_d
Posts: 11
Joined: 17 Apr 2024, 16:28

Re: Use \ or Eject key to delete

24 Apr 2024, 17:18

Thanks
I see the Ctrl + \
just incase I do need to use \
Wow amazing

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: Milincho and 37 guests