Graphics

 View Only
  • 1.  SendKeys or Insert Character Script

    Posted 03-24-2023 14:22

    Hello,

    I am having trouble making a script. I am trying to bind an ALT code to a key on the keyboard using a keyboard script. For example, I want to send ALT+8531 to a static text field to insert the ⅓ character, however when I try My.Computer.Keyboard.SendKeys("{%}8531"), the window will flash and it will not insert the text. If I try it with just a string, it will occasionally start clicking through the menu bar items. I cannot figure out how to get Application.SendKeys working, because I am not sure how to call XPression as the application. I have also read that Windows 10 can interfere with these script actions.

    Has anyone tried to do something similar? I am on 9.5 Studio, Windows 10.

    Thanks!



    ------------------------------
    Jack Reynolds
    ------------------------------


  • 2.  RE: SendKeys or Insert Character Script

    Posted 04-04-2023 13:41

    I asked a few people around the office if this was possible and the consensus seems to be...probably not. 

    To fulfill this type of workflow requirement before, we have always used a StreamDeck. It can insert special characters. 




  • 3.  RE: SendKeys or Insert Character Script

    Posted 04-04-2023 13:44

    Forgot to follow up. Sendkeys does not work when the Sendkey command is bound directly to a keypress macro. However, when given something that separates the keypress from the send key, it works. So, I have an inputbox with a list of characters to pick from, the user enters the number associated with their character, and the pause generated by the Inputbox allows send keys to work correctly every time.



    ------------------------------
    Jack Reynolds
    ------------------------------