PDA

View Full Version : Control Triggers



XmasInGalt
10-12-2012, 11:12 AM
I've been testing the control trigger to execute a BAT file on version 7B. It appears that the program is trying to execute the cmd arguments and not the file in the 'file to execute' field. I'm using a single argument of 10. When executing a sequence, a DOS window opens briefly with the message '10' is not recongnized as an internal or external command, operable program or batch file.

Thanks.

JHinkle
10-14-2012, 01:43 PM
Try version 7C.

I switched from using spawnl to ShellExecute to launch the new program.

Testing I've done says it works but not sure how to fully test a BAT execution.

Joe

XmasInGalt
10-14-2012, 11:40 PM
Joe, sorry to be a pain but I'm not picking up any args in my batch file when it's launched from HLS. I've tested the batch file from the DOS command prompt and it displays all the args I send to it. attached is a copy of the simple batch file. It loads and displays up to 6 args.

JHinkle
10-15-2012, 09:36 AM
Thanks - that's all I needed.

Real stupid mistake on my part.

Fixed in Version 7F (next release) and later.

Joe

JHinkle
10-16-2012, 01:35 AM
Version 7F is released and Triggers work with multiple command line arguments going to a normal executable (EXE) file or a BAT file.

Joe

XmasInGalt
10-16-2012, 06:10 PM
Works like a champ. Thanks Joe!

JHinkle
10-16-2012, 06:35 PM
Thank you for helping with the debugging.

Joe