Skip to content

Extended Shortcuts

Through iClick's extended mouse button feature, developers can create custom shortcuts.

💡 Unlimited Possibilities

iOS Shortcuts can control most device functions, such as enabling WIFI, turning VPN on/off, setting Bluetooth, accessing networks, etc.

By leveraging the mechanism of triggering shortcuts with iOS mouse buttons, you can implement countless complex workflows

How It Works

iClick's shortcuts system essentially works by triggering specific mouse buttons to activate corresponding shortcuts.

When you call a shortcut:

  1. Simulate pressing specified mouse button (e.g., EXTRA1)
  2. iOS shortcuts on device listen to button event
  3. Execute corresponding shortcut logic

Extended Mouse Buttons

iClick extends 5 additional mouse buttons for developers:

Button NameDescription
EXTRA1Extended button 1
EXTRA2Extended button 2
EXTRA3Extended button 3
EXTRA4Extended button 4
EXTRA5Extended button 5

Creating Custom Shortcuts

Step 1: Create iOS Shortcut

Create a shortcut on iOS device, for example Quick Toggle VPN.

Step 2: Add Button

Open Settings -> Accessibility -> Touch -> AssistiveTouch -> Devices -> Click PHOMATRIX+ -> Customize more buttons and send the button you want

Step 3: Bind Shortcut

For example, if you added Button 5, click Button 5 and select the Quick Toggle VPN shortcut you just created

Step 4: Trigger Shortcut

In your program, you can trigger the VPN toggle shortcut by using the mouse button API to press Button 5

Practical Applications

💡

iOS Shortcuts can access networks. In practical applications, you can create a command service API and execute different functions through different commands issued by the server

Cooperation: try.catch@foxmail.com