Sign in to follow this  
Followers 0

WinSetState and identifying the window to set..?


3 posts in this topic

Posted

I've written a little experimental program, using 2 shortcuts, to manage a relay.

The shortcuts are:

C:\USB-relæ\USBRelay\USBRelay.exe -c:8 -r:1#1 ( = 'ON')

C:\USB-relæ\USBRelay\USBRelay.exe -c:8 -r:1#0 ( = 'OFF')

The script (the compiled .exe) is doing what it is supposed to do, using the

Run ("C:\USB-relæ\USBRelay\USBRelay.exe -c:8 -r:1#1")

to turn the relay on - but I keep getting a window, which I cannot "get a grip on", almost all over my monitor, which I find absolutely annoying..!

Posted Image

What can I do, in order to force this window to "disappear"..?

Any help will be greatly appreciated!

Share this post


Link to post
Share on other sites



Posted

Change the run line to:

Run ("C:USB-relæUSBRelayUSBRelay.exe -c:8 -r:1#1", "", @SW_HIDE)

This will hide the window when it's run.

LarsBNygaard likes this

Share this post


Link to post
Share on other sites

Posted

Thankyou very much, that does the trick!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0