PDA

View Full Version : triggering girder commands directly with an identifier



indygreg
December 2nd, 2002, 06:14 AM
The Question - is there any way to pass an indentifier for a command into girder and have it execute the command without having to create an eventstring? i know i could build a plugin that called trigger_command but i am using vb and have not coded c in YEARS. i was hoping to use a windows message or something.

Background - i have a vb program for touchscreen automation that i would like to tightly couple with girder. right now i send ip messages but this requires the creation of event strings for each message. i would like to have my program parse the gml file and present the user with a list of commands that they can assign to buttons. once they choose one i would like to just call girder directly with an identifier and have it execute the command. is there a way to do this without buying a C compiler and trying to build a plugin that calls trigger_command.

greg

Ron
December 2nd, 2002, 06:21 AM
If you are scanning the GML anyway why not extract the Eventstring + device, that way you don't need the Identifiers, just as easy :-)

To trigger an event from VB take a look at this thread:

http://www.girder.nl/phpBB2/viewtopic.php?t=2911&postdays=0&postorder=asc&start=75

I've been working on an COM dll.

indygreg
December 2nd, 2002, 07:31 AM
is there always an event string? even if i don't learn anything? i was hoping to not go through the exercise of learning an eventstring for each command i create.

greg

Ron
December 2nd, 2002, 07:44 AM
I'm afraid you'll have to add an eventstring yes.

indygreg
December 2nd, 2002, 07:51 AM
any chance that any of the plugins could support in identfier in the future? it would be great to have some way to send a windows message or ip message to girder with a identifier to directly execute a command. there are a whole crop of new touchscreen programs springing up on avsforum now that tablet pc's are coming out. i think many of them could use a direct, generalized method of fusing to girder. what they are doing now is:

button => name => eventstring => command

with this they could just directly associate a girder command to a button using a drop down that reads the gml file.

greg

Ron
December 2nd, 2002, 08:08 AM
I'll have to think about it. I personally don't see the big problem with adding an eventstring. Its only done once so its not that big a deal.

edit: besides a small plugin will already give you this functionality as you realised yourself.

indygreg
December 2nd, 2002, 08:13 AM
thanks. the deal is that if you have 150 buttons on a touchscreen you have to create 150 new unique eventstrings in girder. the other way the touchscreen can just reference the girder command directly. it just kind of adds up after a while and it means you have to manage another layer of variable names.

btw, thanks for girder. i couldn't live without it!

greg

Ron
December 2nd, 2002, 08:23 AM
Sorry I can't be of more help right now.