Au3Builder Posted January 31, 2018 Share Posted January 31, 2018 (edited) I built a console application with Autoit3. i don't know if it's proper way to make console apps... but the method i use apparently works. Source of my app. #Region #AutoIt3Wrapper_Change2CUI=y #EndRegion ConsoleWrite("Test app") While 1 Sleep(10) WEnd code spoiler is not working for me... (can a moderator correct my post?) Here is how i execute my app from CMD. START "Autoit - console app" "console.exe" Now I would like to perform CLS (clear screen) but no idea comes to my mind.Will you help me? Edited January 31, 2018 by Au3Builder Link to comment Share on other sites More sharing options...
Deye Posted February 1, 2018 Share Posted February 1, 2018 Have you tried RunWait(@ComSpec & " /C CLS", "", @SW_HIDE) Au3Builder 1 Link to comment Share on other sites More sharing options...
Au3Builder Posted February 1, 2018 Author Share Posted February 1, 2018 (edited) 11 hours ago, Deye said: Have you tried RunWait(@ComSpec & " /C CLS", "", @SW_HIDE) Thanks.This is exactly what i was looking for. btw. Would you mind explaining the difference between /C and /K is? I don't think it's mentioned in Autoit documentation. Edited February 1, 2018 by Au3Builder Link to comment Share on other sites More sharing options...
Developers Jos Posted February 1, 2018 Developers Share Posted February 1, 2018 13 minutes ago, Au3Builder said: I don't think it's mentioned in Autoit documentation Why would it need to be? it is a parameter of CMD.exe : https://technet.microsoft.com/en-us/library/bb490880.aspx Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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