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:
- Simulate pressing specified mouse button (e.g., EXTRA1)
- iOS shortcuts on device listen to button event
- Execute corresponding shortcut logic
Extended Mouse Buttons
iClick extends 5 additional mouse buttons for developers:
| Button Name | Description |
|---|---|
EXTRA1 | Extended button 1 |
EXTRA2 | Extended button 2 |
EXTRA3 | Extended button 3 |
EXTRA4 | Extended button 4 |
EXTRA5 | Extended 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