Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I have a script that uses

if get(activemodifierkeys) = 1

perform script

endif

to check if the shift key has been used.

I have just noticed that if the caps lock key is in use this 'if' test fails even if one does press the shift key. Does anyone know of a change that I can make to the script that would work wether or not the caps lock key is in operation?

TIA

Phil

Just test for the total of the combined keys. Since the Shift = 1 and the Caps Lock key = 2, you can use the following formula in your If script step.

Get(ActiveModifierKeys) = 1 or Get(ActiveModifierKeys) = 3

The Get(ActiveModifierKeys) function returns essentially a 4-bit binary number (5-bit on a Mac). Each bit represents the status of an individual modifier key. 'Shift' is the least-significant bit, and you can extract its status independently of ANY other modifier key (not just 'Caps Lock') by:

Mod ( Get(ActiveModifierKeys) ; 2 )

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.