Sign in to follow this  
Followers 0
sosimple

Run application without see its window, is it possible?

9 posts in this topic

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,

Share this post


Link to post
Share on other sites



sosimple,

Have you tried the Run command?  See the Help file.

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
Share on other sites

I'm not quite sure why ShellExecute doesn't work, but yes, Run will work. Run works with few extensions, but EXE is one of them. Try:

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

 

Share this post


Link to post
Share on other sites

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..

Share this post


Link to post
Share on other sites

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,

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