Jump to content

Recommended Posts

Posted

Hey there,

I need to code something really quick, i should redirect stdout and stderr stream, usually i just use freopen_s from the CRT.

So is there something similar in autoit (did a quick search without results) ? Or maybe a simple way to use the CRT ? I dont want to overkill by runing a dll ... at this point i could just code the stuff in C ...

Thanks,

Clean

Posted

Do you want to redirect the output of your AutoIt script or of a program you start using AutoIt?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted

AutoIt provides command line switches as described here: https://www.autoitscript.com/autoit3/docs/intro/running.htm

 

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted (edited)

well that's not exactly what i want to do

i just want to redirect the stdout of my script to something else, basicaly, alloc a console, redirect the stream (that's not exactly what i wanna do but the behavior is the same), for instance in C i will write something like that

FILE *proxy;
AllocConsole();
freopen_s(&proxy, "CONOUT$", "w", stdout);
// ...
fclose(proxy);
FreeConsole();

but i think i just found a solution gonna test it later, and report here if someone needs this later on

Edited by 636C65616E
Posted

Hey, 

Well after some tests: couldnt achieve it

Gonna try few more ideas, i have done what i needed to do anyway, it's now just for the sake of solving this problem haha

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...