Jump to content

Using @SW_HIDE with _Runexe() (run from memory)


Recommended Posts

Hello all, I am using a command line tool inline with my program, and when it opens, it steals focus from my window and it can cause the user to accidently close the module by hitting a key when it pops open :/

So, I have actually tried to figure this otu myself using dllstructsetdata() with the startup info in the function

Local $tSTARTUPINFO = DllStructCreate("dword cbSize;" & _
"ptr Reserved;" & _
"ptr Desktop;" & _
"ptr Title;" & _
"dword X;" & _
"dword Y;" & _
"dword XSize;" & _
"dword YSize;" & _
"dword XCountChars;" & _
"dword YCountChars;" & _
"dword FillAttribute;" & _
"dword Flags;" & _
"word ShowWindow;" & _ ; <--- HERE
"word Reserved2;" & _
"ptr Reserved2;" & _
"ptr hStdInput;" & _
"ptr hStdOutput;" & _
"ptr hStdError")

With no sucess, it seems to have no effect, I tried setting it to just 0, sw_hide, int(sw_hide), nothing seemed to work, maybe I am missing something very simple?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...