Send Keys on 64-bit InTouch / Or Push Button From Script

Hi all, 

Inside a symbol (a button) I have a script with a specific functionality

I want to schedule this script but 
1) It is inside the button

2) It is symbol scripting , so it does not work outside the symbol

I tries to use a key as a trigger of the button and then send the keys from script
but SendKeys does not work on 64-bit versions

Any ways of sending keystrokes from InTouch? Or pushing a button by scripting

Parents
  • I would put the script on the symbol and trigger it using a custom property, instead of putting it in a animation link (action script)
    I know that action scripts provides an alternative to trigger the script using a key combination (and possible to trigger using send-keys), but in Industrial Graphics, then the symbol has to be 'in focus' to capture the key stroke.

    What if you move the script in this way?

    Create a Custom Property and link it to the button, (you can still use action script if you want)

    This will allow you to trigger the script in several ways.

    If you want to trigger the script from other (open) symbols, you could embed them and reefer to the custom property trigger. 

    There are several ways to trigger the custom property linked to the script but going through all the alternatives might not be necessary at this point.

    Also, a failsafe that might be required, depending of the actions of your script, is to ensure that the operator can not trigger the script several times or at the same time as other triggers have executed the script is to disable the button while the script is running,

      

    Let me know if this resolves your issue, otherwise please elaborate somewhat in what you are trying to achieve.

    regards

    Richard

Reply
  • I would put the script on the symbol and trigger it using a custom property, instead of putting it in a animation link (action script)
    I know that action scripts provides an alternative to trigger the script using a key combination (and possible to trigger using send-keys), but in Industrial Graphics, then the symbol has to be 'in focus' to capture the key stroke.

    What if you move the script in this way?

    Create a Custom Property and link it to the button, (you can still use action script if you want)

    This will allow you to trigger the script in several ways.

    If you want to trigger the script from other (open) symbols, you could embed them and reefer to the custom property trigger. 

    There are several ways to trigger the custom property linked to the script but going through all the alternatives might not be necessary at this point.

    Also, a failsafe that might be required, depending of the actions of your script, is to ensure that the operator can not trigger the script several times or at the same time as other triggers have executed the script is to disable the button while the script is running,

      

    Let me know if this resolves your issue, otherwise please elaborate somewhat in what you are trying to achieve.

    regards

    Richard

Children
No Data