Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

HotKey.List

Lists all hotkeys.

Component Version macOS Windows Linux Server iOS SDK
HotKey 5.2 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "HotKey.List" )

Parameters

none

Result

Returns list or error.

Description

Lists all hotkeys.
Returns list with IDs for currently registered hotkeys.
This helps debugging, especially finding scripts which do not release their objects properly.

Examples

Queries hotkeys:

While(
[
    names = "";
    // query list of hotkeys
    list = MBS( "HotKey.List" );
    count = ValueCount(list);
    index = 1
] ;
    index ≤ count ;
[
    HotKeyRef = GetValue(list; index);
    // query name of hotkey
    name = MBS( "HotKey.GetName"; HotKeyRef );
    names = names & HotKeyRef & " -> " & name & ¶;
    index = index + 1
] ;
// return all the names
names )

Example result: 35001 -> test

See also

Example Databases

This function is free to use.

Created 29th June 2015, last changed 14th June 2022


HotKey.GetTag - HotKey.Register

💬 Ask a question or report a problem