Jump to content
Sign in to follow this  
doestergaard

ConsoleWrite ( $hInput ) ?

Recommended Posts

doestergaard

Im writing a fairly advanced program which will take a user input from a GUICtrlCreateInput box and write it to another process, for example:

$hInput = GUICtrlCreateInput ( "", 106, 279, 202, 24 )

While 1

   Switch GuiGetMsg()

      Case $GUI_EVENT_CLOSE

         ConsoleWrite ( GUICtrlRead ( $hInput ) )
         ExitLoop

   EndSwitch

WEnd

I don't know how to make the other gui read the user input from the console. Any suggestions?

I know you can create child guis, but that's not what i want.

 

Hope this is possible

Thanks

Edited by doestergaard

Share this post


Link to post
Share on other sites
JLogan3o13

Why not write out to a log file or INI (depending on the nature of what you want to do with the data), rather than trying to capture the console output?


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
doestergaard

Thank you for your quick response! :)

The program is a Windows Deployment program, which means several computers might use this, which will cause all computers to read from the same file

Edited by doestergaard

Share this post


Link to post
Share on other sites
DicatoroftheUSA

 

The program is a Windows Deployment program, which means several computers might use this, which will cause all computers to read from the same file

You either need a server that mediates writing to a file (such as a sql server) or use something like lock files where each log is named after each workstation.

Edited by DicatoroftheUSA

Share this post


Link to post
Share on other sites
doestergaard

@DicatoroftheUSA

That would work, thanks!

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  

×