September 29, 201411 yr Hello, Maybe I've been searching using the wrong searchwords but I can't find an answer to my question. I only seem to find answers about catching keystrokes and not sending them. I have a button which should send the 'ctrl+shift+z' keyboard strokes when clicked. This keyboard shortcut makes our phone dial the selected phone number automatically. We are working on windows FM 13. How can I script this? Thank you for reading and eventually answering my question.
September 29, 201411 yr This keyboard shortcut makes our phone dial the selected phone number automatically. This is rather confusing. Is it possible that you have a custom menu installed, assigning this keyboard shortcut to call the (Filemaker's native) Dial Phone[] script step? If that is the case, then set your button to perform the same script step directly.
September 30, 201411 yr Author The software of our telephone system reacts to the keyboard shortcut ctrl+shift+z in whatever software we work. In my script I select the phone number field (which is necessary to enable the phone software - not filemaker - to copy the number) and then I need to simulate pressing the ctrl+shift+z keys in my filemaker script to start dialing the phone number automatically (through the phones software).
September 30, 201411 yr FM can't do it, you have to integrate with the OS for that. On Windows that's VBscript or PowerShell through the OS "SendKeys" functionality, needs to be done through the FM SendEvent script step. I'm sure something similar exists on OSX through AppleScript.
September 30, 201411 yr Depending on the phone software, you should also be able to send a procedure call to it, with the phone number as a parameter. Have you looked into that route?
October 2, 201411 yr Author @wim @Josh, that's what I was afraid of ;-) I'll look into your suggestions. A new occasion to learn something new. Thx!
Create an account or sign in to comment