AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Basic pipe into AHK script/exe

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
afromonkey0



Joined: 13 Oct 2007
Posts: 24

PostPosted: Thu Jan 31, 2008 2:21 pm    Post subject: Basic pipe into AHK script/exe Reply with quote

I have an image analysis program that calculates two numeric variables (x and y coordinates) and has the ability to send data through a pipe protocol. I have tried passing the variables as arguments when running the script, but it's no good because I want to pass the variables to the script while it is running, not just at the start.

So is there a simple(ish) piece of code that will initiate a pipe, listen for two values and write those to variables?

Thanks in advance
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Thu Jan 31, 2008 2:26 pm    Post subject: Reply with quote

lexikos demonstrates how to use pipes in one of his threads. Perhaps you may find some useful information there.
_________________

Back to top
View user's profile Send private message Visit poster's website
afromonkey0



Joined: 13 Oct 2007
Posts: 24

PostPosted: Thu Jan 31, 2008 2:36 pm    Post subject: Reply with quote

Yeah I had a look at that script when i searched for 'pipe', but I don't really understand the code. The original script runs code you give it, without interacting with any other program right? But I just want to set variables. I'm sure it uses some of the same code but I can't work it out myself.

Thanks for the quick reply though.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group