PDA

View Full Version : win.ShellExecuteEx?



Mastiff
May 21st, 2005, 05:10 AM
I have this command in LUA 4:

ShellExecuteEx ("\"C:\\Programfiler\\girder\\uutx.exe\"",' "0000 0071 0043 " ',0)

In reality the argument part is a loooot longer, but I didn't want to fill up the page. From the manual I have gotten to this:


win.ShellExecuteEx ("\"C:\\Programfiler\\girder\\uutx.exe\"",' "0000 0071 " ',nil,0)

And I have tried with the same with result = in front of it. But what I get from that is Lua Success (Nothing triggered). Not what I would call a success... What am I doing wrong? Oh, and the argument has to have " around them when they're sendt to the application.

Rob H
May 21st, 2005, 05:34 AM
You can use a single quote around the string to make it a bit easier, or alternatively you can surround the string with [[ and ]]

You might want to try win.SWP_SHOWWINDOW as the last parameter so you can see if it opens a window.

Mastiff
May 21st, 2005, 11:33 AM
Woops... It was actually working. I was fooled by the LUA message... Thanks!