Jump to content

Recommended Posts

Posted

Hi. I run an .exe application. This shows a window with buttons in screen. After i see the window i can do what i want (move it out of screen to make it invisible, press its button, etc)

My only problem is that i dont want to see this window at all.. Is there any way?

Thanks,

Posted (edited)

Yes, I use shellexecute with flag.. But dont work.

 ShellExecute("C:\Program Files\aaa.exe", "","C:\Program Files","", @SW_HIDE )

In the example, the aaa.exe is a windows application which shows a window box in screen.

It is not a dos application .. Will the above comand supposed to work in this case?

Edited by sosimple
Posted

Yes, I suppose the window dosnt want to be hidden.. Because all aaa.exe do is to show a qui window to press some buttons it has..

So i suppose i cant use it invisible.. I have to see the window at least for 100 ms..

Posted

does the exe support command line switches?
example: aaa.exe /q

the /q is quiet and may launch the exe in invisible mode. You can test by using the /? switch to see if it supports any command line switches.

I don't know this.. It has in system tray exit, reboot options.. Is it possible to take commands like  exit as command line switches?

Should i use run or shellexecute for this? What is the differences?

Thanks,

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
  • Recently Browsing   0 members

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