iOSShortcutsFull Keyboard Access

iOS Scripts, a Step Further: Shortcuts and Full Keyboard Access

The morning shift pastes a title from the computer into the publish-page field, checks notifications and the network, then returns to the Home Screen. The phone and the central control bind five keys from the same table.

3 min read

The morning shift has one job: the publish page already has the video ready, paste the title from the computer into it, glance at whether a system prompt is covering it, then leave the app. Bind only five keys for that. The full command tables for Notification Center and Control Center are left out here.

Shortcut binding in HID settings

All five keys use Command, written as gui. The letters belong to this job. If one collides with a default the system already uses, change it, and change all three places together.

Order Combo Bound to Script
1 gui+o Shortcut: open the publishing app keyPressChar("gui", "o")
2 gui+u Shortcut: ask the computer for the title, write the clipboard, paste keyPressChar("gui", "u")
3 gui+n System command: Notification Center keyPressChar("gui", "n")
4 gui+l System command: Control Center keyPressChar("gui", "l")
5 gui+m System command: Home Screen keyPressChar("gui", "m")

The path on the phone is Settings, Accessibility, Keyboards and Typing, Full Keyboard Access, Commands. Tap the command or Shortcut you want to bind, wait for the keyboard-shortcut dialog, then add a keyboard shortcut in the central control. Set the modifier to gui, fill the letter from the table, and send. After the shortcut shown in the dialog changes, tap Done.

The letter the central control sends and the letter shown on the phone command must be the same. Bind only one side and keyPressChar still returns, while nothing happens on the phone.

Run the second Shortcut once by hand in the Shortcuts app first: it can fetch the title from the computer, write it to the clipboard, and paste. Then bind gui+u. A Shortcut that fails when you paste by hand will still fail after you bind a key.

Bluetooth version:

function main() {
    bleEvent.keyPressChar("gui", "o");
    sleep(1500);
    bleEvent.keyPressChar("gui", "u");
    sleep(1500);
    bleEvent.keyPressChar("gui", "n");
    sleep(800);
    bleEvent.keyPressChar("gui", "l");
    sleep(800);
    bleEvent.keyPressChar("gui", "m");
}
main();

For OTG, replace bleEvent with otgEvent. Leave the five letters as they are. Change the milliseconds in sleep to however long the “fetch title” Shortcut takes to finish on this phone. If the gap is too short, the paste happens before the app has opened.

After the run, check the result: the field in the publishing app has the title, notifications have no system prompt covering the input, Control Center shows the network is still up, and the phone ends on the Home Screen. If one of the five steps is missing, check that one letter against the phone command and the central-control shortcut. Skip rebinding all five.

These five keys only serve pasting the title. The next job, such as saving a video into Photos, gets another row in the table and a set of letters that are still free.


About EasyClick: A mobile automation script development platform covering three phone ecosystems: Android without root, iOS without jailbreak, and HarmonyOS. It also offers Apple script writing, Apple cluster control, Android cluster control, remote cloud control, and AI phone cluster control. → Explore all products · Apple cluster control

Ready to build it for real?

Every approach in this article can be built with EasyClick capabilities on iEasyClick — full documentation, developer tools and automation products, free to try.

Visit iEasyClick →