Sign in to follow this  
Followers 0
bigzep

Any way to get user input in console?

9 posts in this topic

I have search all over the AutoIt help and in this forum too. Unfortunately, I can't find any solution. ConsoleRead don't work as needed in this case.

Share this post


Link to post
Share on other sites



I have search all over the AutoIt help and in this forum too. Unfortunately, I can't find any solution. ConsoleRead don't work as needed in this case.

There is, using a batch file trick, but in testing it I apparently uncovered a bug in CUI compiled scripts under the latest version of AutoIt, release & beta.

If it gets resolved in a future release, I will post the method...

Share this post


Link to post
Share on other sites

There is, using a batch file trick, but in testing it I apparently uncovered a bug in CUI compiled scripts under the latest version of AutoIt, release & beta.

If it gets resolved in a future release, I will post the method...

Thanks for your answer.

I considered the idea about a trick with a batch file, but i have not tested it.

Share this post


Link to post
Share on other sites

This is unfortunate I asked about this the other day. Almost requires you to make a CUI program with only cmdline switches or bite the bullet and go GUI.

Here was the problem I was having...

http://www.autoitscript.com/forum/index.ph...mp;#entry541867

:)

It was actually your thread SoulA that started me testing when I remembered the batch file idea.

It would be seamless with a console UI app, but that's when I discovered the problem.

Posted about the issue (not the technique) here: http://www.autoitscript.com/forum/index.ph...mp;#entry542103

Share this post


Link to post
Share on other sites

I believe I get the gist of the method and probably should work. Some pretty weird behavior that can hopefully be resolved. Making a CUI APP is so much less frustrating.

Share this post


Link to post
Share on other sites

I believe I get the gist of the method and probably should work. Some pretty weird behavior that can hopefully be resolved. Making a CUI APP is so much less frustrating.

If you use ShellExecuteWait("tmpBatFile.cmd") instead of RunWait then it works ok for me.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

If you use ShellExecuteWait("tmpBatFile.cmd") instead of RunWait then it works ok for me.

Yes, but ShellExecute opens another instance of Comspec to run the batch file, so you can't keep your ConsoleWrites in the same console window :)

Share this post


Link to post
Share on other sites

I have search all over the AutoIt help and in this forum too. Unfortunately, I can't find any solution. ConsoleRead don't work as needed in this case.

http://www.autoitscript.com/forum/index.ph...st&p=527810

Look at Valiks "Helper" functions ... may give some insight to help with your issue, or even enhance it.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0