samyjain Posted October 1, 2019 Posted October 1, 2019 Hi, Whenever i try a running autoit compiled executable i see a command prompt opening automatically, which gets closed once the execution is done. Is there any option we can hide it ?
Subz Posted October 1, 2019 Posted October 1, 2019 (edited) Are you opening the command prompt in the script? If so use something like: RunWait(@Comspec & " /c command here", "", @SW_HIDE) Edited October 1, 2019 by Subz
samyjain Posted October 1, 2019 Author Posted October 1, 2019 No i am not opening any command prompt. I am directly launching a exe using "run"
TheDcoder Posted October 1, 2019 Posted October 1, 2019 Check your compiler options and make sure you have selected "GUI", if you have selected "CUI" then it will always open the command prompt. EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
seadoggie01 Posted October 1, 2019 Posted October 1, 2019 If you need to run it as a CUI, but you don't want the command prompt window, you can always create a shortcut to your program that will launch it minimized All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
MagnumXL Posted October 2, 2019 Posted October 2, 2019 Consider using ShellExecute. Or test out using the /b switch (more info) with the run/start command.
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