Jump to content

How to send keypress to other computer?


Recommended Posts

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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

^_^

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.

;)

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...