AHK script to store current knob value in one click (native and 3rd party plugins) !!!

Discuss how to use FL Studio

Return to “FL Studio Users Forum (Looptalk)”

Forum rules
Please read them here.
[You can only see part of this thread as you are not logged in to the forums]
D3Mens
Wed Apr 21, 2021 4:03 pm

x

AHK script to store current knob value in one click (native and 3rd party plugins) !!!

Here's an AHK script that stores the current parameter value by just clicking on it. Thanks shanew for the idea. I wasn't sure this method could work through AHK but after some tests it seems to work pretty flawlessly without any weird flickering.
It really looks like a native FL feature. :)
The only little problem can occur with knobs set to 100%, which in rerurn simply cannot store any value since the knob can't move past 100%.

No need for key modifiers. click and drag function is retained perfectly and nothing seems to break the script. even if you try hard.

How it works
A simple click on any knob (native and 3rd party) will move the mouse 1pixel up then 1pixel down, storing the parameter and value in the FL history returning to the original value to which it was set.
Ready to be automated.

-Remember, plugins have to be detached for this to work.
-If you delete the #ifwinactive parts, this script will work anywhere in FL, also on channel rack knobs, mixer tracks etc (not tested but it should work pretty well there too)

Code: Select all

#IfWinActive ahk_class TPluginForm

LButton::
MouseClick, left,,, 1, 0, D 
MouseMove 0,1,1,R
sleep 100
MouseMove 0,-1,1,R	
Loop
{
    Sleep, 10
    GetKeyState, state, LButton, P
    if state = U 
        break
}
click up, Left
return

#IfWinActive





Return to “FL Studio Users Forum (Looptalk)”