sosimple 0 Posted September 17, 2015 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
JohnOne 1,603 Posted September 17, 2015 use @SW_HIDE flag. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
kylomas 415 Posted September 17, 2015 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
sosimple 0 Posted September 17, 2015 (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 September 17, 2015 by sosimple Share this post Link to post Share on other sites
Gibbz 0 Posted September 17, 2015 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
JohnOne 1,603 Posted September 18, 2015 The window of aaa.exe might not want to be hidden. Without knowing the actual real name then it's all just guess work. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
sosimple 0 Posted September 18, 2015 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
Bert 1,427 Posted September 18, 2015 does the exe support command line switches?example: aaa.exe /qthe /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. 1 sosimple reacted to this The Vollatran project _____ I'm famous My blog: http://www.vollysinterestingshit.com/ Share this post Link to post Share on other sites
sosimple 0 Posted September 18, 2015 does the exe support command line switches?example: aaa.exe /qthe /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