View previous topic :: View next topic |
Author |
Message |
Marcelito Escort Newbie
Joined: 22 Jun 2004 Posts: 10
|
Posted: Wed Aug 09, 2006 4:03 pm Post subject: Window send problem |
|
|
How can i send a combination of keys saved in a list to a window?
Example:
list loadfile,1,keys.txt
window send,MyWindow,@item(1)
when @item(1) is @Ctrl(@key(Esc))
If i do this, i send to "MyWindow" the sequence ok keys @CTRL.... but i'm trying to send the CTRL+ESC keys.
How can i solve this problem? I'm working on a little program for use with my remote control to manage some applications and it loads the "actions" from an INI file and compares each with the data received from the serial port.... |
|
Back to top |
|
|
WidgetCoder Contributor
Joined: 28 May 2002 Posts: 126 Location: CO, USA
|
Posted: Thu Aug 10, 2006 7:14 pm Post subject: |
|
|
When you store a VDS command or function such as "@ctrl() or @key()" in a list they are no longer interpreted as commands or functions they are stored merely as strings. To accomplish the same task you could parse the list item and compare it using a branch statement to execute the equivalent hard coded command. Let me know if you would like an example. |
|
Back to top |
|
|
|