Graphics

 View Only
  • 1.  Keyboard macro scripting for widgets

    Posted 05-10-2012 19:15
    I'm looking for a way to script the buttons found in the widgets and have them controlled by a keyboard command.

    It should be noted that you can assign CTRL-0 thru CTRL-9 for these functions, however I'm looking for a different set of key commands - possibly even using an X-Keys device. I figured part of it out - at least for a basic counter up/down... "variable" can be named anything....if somebody knows how to reset the value, please share!

    '=== begin code

    dim variable as xpCounterWidget

    engine.GetWidgetByName("name of widget", variable)

    variable.Up -or- variable.Down

    '=== end code

    Thanks!

    Brian


  • 2.  RE: Keyboard macro scripting for widgets

    Posted 05-13-2012 19:19
    I don't have the API document in front of me, but I think you can do:

    variable.value = 0

    #XPression