PDA

View Full Version : Calling an event by executing a file from outside Girder


dottcaste
January 29th, 2005, 07:59 AM
I would like to trigger a Girder event with IBM Viavoice Pro.
With that program it is possible to trigger a voice command that
open a certain file in the computer. How can I make a file that quickly triggers a certain Girder event?

peegee
January 29th, 2005, 08:33 AM
Take a look at event.exe in your girderdir.

VaioUserChris
January 29th, 2005, 01:05 PM
You can call event.exe directly like this:
"C:\Program Files\girder\event.exe EVENTSTRING 18 PAYLOAD -silent"

Or from within a bat file such as this:
CALL "C:\Program Files\girder\event.exe" EVENTSTRING 18 PAYLOAD -silent

You'll have to change the path to point to where event.exe resides on your system.

Then enter the eventstring that you want to trigger in Girder.

You'll need to leave "18" in the code -- that's for Girder

"Payload" is what ever payload you want to send to Girder. If you don't want to send any, just eliminate it.

And finally, if you leave in "-silent" it will trigger the event without opening a new window (which you probably prefer).

Chris

dottcaste
February 2nd, 2005, 02:41 PM
I would like to use the .bat file but it does not work. I open notepad I write

CALL "C:\Programmi\girder\event.exe" EVENTSTRING 18 PAYLOAD -silent

then I save it as a bat unicode file, I double click on it but nothing happens.
I am sure the destination path is correct (I changed "program files" with "programmi") but I am not sure where and how I have to put the eventstring that I want to trigger. Can you make me an example?
Thanks.
Roberto

peegee
February 3rd, 2005, 12:00 PM
* ok in girder create a command, mayby open notepad.
* assign a girdedevent to it..name it open.notepad

then your event.exe line would be:

CALL "C:\Programmi\girder\event.exe" open.notepad 18 test -silent

dottcaste
February 4th, 2005, 01:01 AM
Thank you for your reply. I tried that but it does not work either. I am using Girder 3.2.
What can be wrong?

Treetop
February 4th, 2005, 02:19 AM
-- never mind....

Treetop
February 4th, 2005, 02:36 AM
I'm lost

:)

peegee
February 4th, 2005, 05:17 AM
Try the attached file.

Call it with:
C:\Programmi\girder\event.exe open.notepad 18 test -silent

dottcaste
February 4th, 2005, 05:51 AM
If I call the program via a double click on a shortcut with a destination path:

C:\Programmi\girder\event.exe open.notepad 18 test -silent

I can trigger the command.
If then I set IBM Via Voice to run that shortcut with a voice command it opens event.exe window, that windows tells me that the command has been sent, but nothing happens in Girder.
If I try to create a .bat file with CALL......etc. it doesn not work at all.
Any other idea?

Jlee
February 4th, 2005, 07:42 AM
If then I set IBM Via Voice to run that shortcut with a voice command it opens event.exe window
Try putting the whole command in double quotes.

dottcaste
February 4th, 2005, 10:40 AM
Tried. It does not work.

Jlee
February 4th, 2005, 10:51 AM
This is what you need in your bat file for that example GML file
"C:\Program Files\girder\event.exe" open.notepad -silent

dottcaste
February 4th, 2005, 01:27 PM
Let's summarize.
I load peegee's event.GML a couple of posts before
I open notepad
I copy and paste "C:\Program Files\girder\event.exe" open.notepad -silent
I change it to "C:\Programmi\girder\event.exe" open.notepad -silent (to point to my Girder directory)
I save it as unicode with the name: try.bat
I double click on it
I see a dos windows coming and going away
Nothing happens.
The same if I try with CALL...

Is it only not working in my system or do you have the same?
Thanks to all of you for your previous replies.

Rob H
February 4th, 2005, 01:36 PM
I save it as unicode with the name: try.bat

That's probably the problem - it should be saved as ASCII not Unicode

dottcaste
February 4th, 2005, 03:50 PM
Thank you for your suggestion. I saved it as ASCII and it works!
Now I would like to know if it is possible to have the dos window of the .bat file open minimized because it is annoing to see it quickly open and close.
Thank you again.

Mark F
February 4th, 2005, 04:02 PM
Can't you set that in the properties of the shortcut?

Thunder
July 2nd, 2005, 10:39 AM
Hi, i have the same problem with the attached command.

Peegee, i tried your attached file and it runs, but I'm not able to make my command run.

Testing the command in Girder succeeded, but the batch doesn't run.

Does anyone have an idea?
Thanks!

//EDIT: Ok, sorry, it works :)

Lowpro
July 6th, 2005, 09:42 PM
If you don't want to have to call to your Girder directory you can always add it to your system environment variables.

To do this simply go to "System Properties -> Advanced -> Environmental Variables -> System Variables -> Path", choose edit, then add the path for your Girder directory to the end of the value string. Make sure to include a semicolon ; prior to your Girder path.

(You must be logged into your computer with local admin rights to make this edit.)

-Lowpro