Any solution to delete note by holding right click ? (script, hack ..)

Hello, is there any crazy solution that would allow adding notes with left click (pencil tool) and delete note with a single right click, and when holding right click and swipe, it would delete all notes under cursor like an eraser

thank you

Hi,

there are some routines in the key editor but none of them do what you are looking for I’m afraid.

What kind of system are you on?
Which Cubase version do you use?

How many mouse buttons do you have? You could potentially setup a script using something like AutoHotkey or an equivalent on mac.

With AHK you can script a macro for both click/hold and release.

15, macOS

macOS, many button on mouse. I tried to think about a script, but I can’t see how it would like, if I make the mouse hold, with any cubase tool, it won’t delete the note, instead it will just select it

Click no hold would either select+delete, or script toswitch to eraser tool+left click and then back to your most used tool.

For the selection+delete, hold=selection release = delete

I’d also maybe make a new feature request thread, to “Add Delete to applicable tool modifiers”

click no hold = delete this one might be easy to do : switch to eraser+left click+revert to default tool

For the hold right click to delete, you have a clever idea, adding a delete command on release is something worth trying

although it would not be really deleting notes as soon as mouse hovering on them, like fl studio, but I am just nitpicking

Also I forgot, with the Selection Tool, double clicking a note deletes it. So you might be able to script something with that.

I see what you’re saying with the delete behaviour you want.

I would describe it as Continuous Delete on notes via The Eraser Tool/Mouse-Click Held…

The eraser tool currently it only deletes one note when holding click

If that worked, then you could again script a tool change to eraser + left click hold

perhaps add this to the feature request if you make one

Might be able to script a repeating continuous delete command

mouse click hold=
eraser tool
repeat command per .1 second
on release
switch back to standard tool

I haven’t done this type of scripting, so no idea if it’s possible… but usually where there is a will, there is way.

I’ll try tomorrow thank you for showing me the path

Keep us updated!

Yes you can atleast delete notes by single right click. i figure it out by talking with chatgpt

Setup steps:

Install AutoHotkey v2

Create a new .ahk file

Paste the script above (Script is in bottom)

Run the script

Make sure Cubase shortcuts match:

Z = Eraser (Here you need to write what shortcut you have for erase tool. In my case it was Z)

O = Object (Same for object tool like above erase tool)

Open Cubase and test

Behavior:

Hold Right Click → temporarily switches to Eraser

Delete notes normally

Release Right Click → instantly returns to Object Tool

Works only when Cubase 15( if you are using another version replace that with that version in the script below)is focused, so right-click behaves normally everywhere else.

YOU NEED TO PASTE THIS SCRIPT :down_arrow::down_arrow::down_arrow::down_arrow:

#Requires AutoHotkey v2.0

#HotIf WinActive(“ahk_exe Cubase15.exe”) || WinActive(“ahk_exe cubase.exe”)

$RButton::

{

Send("z")

Sleep(30)

Send("{LButton Down}")

KeyWait("RButton")

Send("{LButton Up}")

Sleep(30)

Send("o")

}

#HotIf