You cant really send just "ctrl+1" to Xpression. What you can send however, is GPI signals.
The way you do this, is you have to set up some extra keyboard/GPI shortcuts in order to control your timer through script.
I was actually doing this the other day teaching my students how to do this... [LIST=1]
Set up your GPI board in Xpression (Edit -> Hardware Setup -> GPI Boards), you need a Smart GPI/RossTalk set up here on TCP port (default port: 7788)Set up your timer/widget (you allready have this one).Go into Keyboard / GPI Mapping (Edit -> Keyboard / GPI Mapping), and create a new Current Keyboard Map (at the top, you cannot edit the default one). Now on the right hand side, drag in the "+ Scripting" to the top of your list under "Project Shortcuts". Actually, pull in 3 of them under "Quick Menu" and name them "start clock", "stop clock" and "reset clock".
Now under the "GPI" collumn, you set up your GPI input, pick the GPI from your setup earlier, and a unique GPI number to trigger the 3 different scripts. GPI must be unique (supports up to 64 unique ones).
If you select the "Start Clock" script now, and click the button "Edit Script Action", you get a box where you can enter your Xpression Script to run whenever this trigger is recieved.
To run a timer, the script is as follows:
[QUOTE]dim timer as xpClockTimerWidget
engine.GetWidgetByName("GameTime", timer)
timer.start
To stop a timer:
[QUOTE]dim timer as xpClockTimerWidget
engine.GetWidgetByName("GameTime", timer)
timer.stop
To reset a timer:
[QUOTE]dim timer as xpClockTimerWidget
engine.GetWidgetByName("GameTime", timer)
timer.reset
Remember to hit the "compile" button (lightning) in order to compile and check your script :)
[I]
Note: The "GameTime" is the name of my widget, so edit this into what your widget is called.[/I]
Now, in DashBoard, set up 3 buttons (start, stop & reset) with tasks to send the corresponding RossTalk GPI triggers, and this should work! And as you now may understand, you can control different widgets within Xpression through simply changing the "GameTime" of the scripts above.
Good luck!
#DashBoard