JeromeB Posted March 10, 2014 Posted March 10, 2014 Hello everyone, i'dl like ot put in place something a little tricky. Here is he thing, i'd like to launch the .exe autoit on a dos windows (CMD) and get the output of my script into this window. Is it possible, any exemple ? Thank you
orbs Posted March 10, 2014 Posted March 10, 2014 two things to do: 1) compile script for console output 2) generate the output to console like this: #AutoIt3Wrapper_Change2CUI=y ConsoleWrite("Hello World!") for 1st line, wrapper directives are found in the SciTe help (not the AutoIt help). Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates WinPose - simultaneous fluent move and resize Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Magic Math - a math puzzle Demos: Title Bar Menu - click the window title to pop-up a menu
JeromeB Posted March 10, 2014 Author Posted March 10, 2014 (edited) I have tryied and this is not working : http://www.casimages.com/img.php?i=14031011461393557.png To compile, i have right click on the file .au3 and click on "compile script" Edited March 10, 2014 by JeromeB
FireFox Posted March 10, 2014 Posted March 10, 2014 Use this directive : #pragma compile(Console, true) Br, FireFox.
JeromeB Posted March 10, 2014 Author Posted March 10, 2014 (edited) Hello, Same thing : My code: #pragma compile(Console, true) #AutoIt3Wrapper_Change2CUI=y ConsoleWrite("Hello World!") Right click => Compile script Still nothing on my console ^^ Edit : When i compile from Autoit, its working, what is the option when you right click => compile with option ? Edited March 10, 2014 by JeromeB
FireFox Posted March 10, 2014 Posted March 10, 2014 I didn't say ADD the directive, but USE (so replace the previous with mine) and use the latest autoit stable
orbs Posted March 10, 2014 Posted March 10, 2014 i always compile my scripts from inside SciTe (F7, or Tools > Build). i see nothing wrong with that - wrapper directives work, and it's a lot less clicks Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates WinPose - simultaneous fluent move and resize Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Magic Math - a math puzzle Demos: Title Bar Menu - click the window title to pop-up a menu
FireFox Posted March 10, 2014 Posted March 10, 2014 i always compile my scripts from inside SciTe (F7, or Tools > Build). i see nothing wrong with that - wrapper directives work, and it's a lot less clicks That's not the question.
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