Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hello

Referring to FSUIPC Advanced Users.doc, Programs: facilities to load and run additional programs.

(I'm plain user of registered FSUIPC, not advanced)

In FSUIPC.ini I added

[Programs]

runif1=READY,C:\Programme\S-Combo\S-Combo.exe

and it works flawlesly.

However S-Combo requires aditionally an ENTER.

So I made a little Windows Scripting Host Prog that executes

S-Combo and clicks RETURN.

I changed the FSUIPC.ini

[Programs]

runif1=READY,D:\my prog.vbs

This produces FSUIPC Error=193

What kind of error is 193

Any help?

Günter

Posted

So I made a little Windows Scripting Host Prog that executes

S-Combo and clicks RETURN.

I changed the FSUIPC.ini

[Programs]

runif1=READY,D:\my prog.vbs

This produces FSUIPC Error=193

What kind of error is 193

Well, apart from the fact that I've never heard of this scripting (is this new in WinXP?), all FSUIPC does is run the program by calling Windows with a "CreateProcess" API call. I would guess that this always needs an EXEcutable program to place into the process.

The error number is the one returned by Windows. Looking it up I find:

193not a valid Win32 application. ERROR_BAD_EXE_FORMAT

which confirms that a VBS file is not an executable program.

I assume that there is a process (EXE) you can call to execute a VBS file, but I don't know what it is. With DOS BAT type files you had to do this sort of thing by running COMMAND.COM with the BAT filename given in the same command line after a /C: switch (I think! My memory is failing these days!).

Regards,

Pete

Posted

All I can say is, a .vbs is executed (doubleclick) like any other .exe application and it does what the programmer intended - if the code is ok.

Yes, but so is a text file or a DOC, etc, etc. All that happens is that certain applications are associated to certain filetypes, and it is the associated application which is loaded and run. All you need to do is find the name of the application which is run to execute a .vbs, and run that with your vbs file as its parameter.

Regards,

Pete

Posted

Gunter,

Try making the VBS project into an EXE. Make X.exe (where x is your project name) is found under the "File" menu item. Then execute the program the VB Compiler creates.

Regards,

Brian

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.