Jump to content

ConsoleWrite ( $hInput ) ?


Go to solution Solved by DicatoroftheUSA,

Recommended Posts

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
Link to post
Share on other sites
  • Moderators

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?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to post
Share on other sites
  • Solution

 

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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...