sosimple Posted September 17, 2015 Share 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, Link to comment Share on other sites More sharing options...
JohnOne Posted September 17, 2015 Share 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. Link to comment Share on other sites More sharing options...
kylomas Posted September 17, 2015 Share 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 Link to comment Share on other sites More sharing options...
sosimple Posted September 17, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Gibbz Posted September 17, 2015 Share 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) Link to comment Share on other sites More sharing options...
JohnOne Posted September 18, 2015 Share 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. Link to comment Share on other sites More sharing options...
sosimple Posted September 18, 2015 Author Share 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.. Link to comment Share on other sites More sharing options...
Bert Posted September 18, 2015 Share 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. sosimple 1 The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
sosimple Posted September 18, 2015 Author Share 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, Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now