Jump to content
Sign in to follow this  
Gayfish

How to send keypress to other computer?

Recommended Posts

Gayfish

Can u help?

How to send keypress to other computers program?

My solution: via LAN you send information to certain TXT-file on other computer,

And there is another AutoIt program running and reading that file.

Is that stupid or even possible? ("this file is used by another program".. etc?)

Thanks.

Noob with bad english

Share this post


Link to post
Share on other sites
Yashied

Can u help?

How to send keypress to other computers program?

My solution: via LAN you send information to certain TXT-file on other computer,

And there is another AutoIt program running and reading that file.

Is that stupid or even possible? ("this file is used by another program".. etc?)

Thanks.

Noob with bad english

Without a special receiver-program on the client computer this can not be done.

Share this post


Link to post
Share on other sites
Gayfish

Without a special receiver-program on the client computer this can not be done.

^_^

But.. is that possible, that other program uses certain txt-file to import information,

and other just reading it at the same time? (without error "used by other prog")

If that is possible, then that can work via LAN.

Share this post


Link to post
Share on other sites
Yashied

^_^

But.. is that possible, that other program uses certain txt-file to import information,

and other just reading it at the same time? (without error "used by other prog")

If that is possible, then that can work via LAN.

Send() function will not work on the network. You need to write scripts for the server and client. Here's to you to start: pipe, mailslot.

;)

Share this post


Link to post
Share on other sites
Gayfish

Send() function will not work on the network. You need to write scripts for the server and client. Here's to you to start: pipe, mailslot.

^_^

sorry i expressed myself badly. I mean something like this:

1. read keypress.

2. write that in TXT-file (ASCII for example).

3. read that with another (auto-it)program

is that possible without error: used by another program?

Share this post


Link to post
Share on other sites
Coolw

Try this

http://www.autoitscript.com/forum/index.ph...4325&hl=tcp

Tips:

When you send the keystrokes do

Server:

_TCP_Server_Broadcast("keypress" & $KeyPressed);IE they hit "A" so keypressA gets sent to client

Client:

Func Received()
   If StringLeft($sReceived, 8) = "keypress" Then;If the received data starts with "keypress" then it should receive something
       $getpressed = StringMid($sReceived, 9);Get the key pressed
   EndIf
EndFunc

Code has not been tested at all, it's just a simple idea.

Those are what I am using for a chat room I am making, and it seems to work out really well.

Edited by Coolw

My ProgramsMy WIP'sSteam Server Restarter

Share this post


Link to post
Share on other sites
Gayfish

Try this

http://www.autoitscript.com/forum/index.ph...4325&hl=tcp

Tips:

When you send the keystrokes do

Server:

_TCP_Server_Broadcast("keypress" & $KeyPressed);IE they hit "A" so keypressA gets sent to client

Client:

Func Received()
   If StringLeft($sReceived, 8) = "keypress" Then;If the received data starts with "keypress" then it should receive something
       $getpressed = StringMid($sReceived, 9);Get the key pressed
   EndIf
EndFunc

Code has not been tested at all, it's just a simple idea.

Those are what I am using for a chat room I am making, and it seems to work out really well.

looks interesting. thanks.

I'm trying to use two computers with one keyboard (and mouse)

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  

×