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.

Changing the state of the Caps Lock key

Featured Replies

Hello all,

I need to use the Caps Lock key to stop a loop in a script (using Status(CurrentModifierKeys)).

In order to do this without leaving the user with Caps Lock "On" I was wanting to set Caps Lock "On" automatically at the beginning of the script. This way when the user uses Caps Lock to exit the loop, they are left with Caps Lock Off.

I have looked far and wide for a way to achieve this using AppleScript but without success. It needs to work on both OS X and OS 9, though it can be 2 different scripts.

Ideas anyone ?

AppleScript ? Apple Event ? xCode ? Shell script ?

Thanks to all

cincin

Edited by Guest

I can't see this as a great idea... why not use one of the modifier keys like shift or Ctrl, or combinations...

Note that if you have a loop running in FMP with such an escape built in, and you change applcations (say to your email program) FMP will still react to the modifier key even if it is in the background.

  • Author

Hello Vaughan,

Thanks for your reply.

I was trying to spare you all the details but to answer your questions and statements:

- The reason I want to use the Caps Lock key is because all the other modifier keys are already used for other purposes. I originally used the Option/Alt key instead but it triggers the menu keyboard shortcuts in Windows and that's a problem.

- I am aware that the modifier key event will be triggered even if the user is in another app, it's all part of the plan and actually necessary to my solution as the user WILL be working in another app (another FMP solution).

That being said I am still looking for a way to change the state of the Caps Lock key, any help/hints is greatly appreciated.

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.