Log in

View Full Version : Use Keyboard on two pcs



XxXGoD
05-10-2009, 10:47 PM
I need a way to use my keyboard on a computer in the lounge (its to far away for me to use synergy)

Something like, If i press numpad 1 I need the other pc to press number 1, if i press numpad 2 i need it to press K... and some more.

There both connected to my network...

Ughmahedhurtz
05-10-2009, 11:25 PM
You'd probably want a custom app for that. The software we use here usually falls into one of two categories: KMish game-specific keypress replicators (Octopus, keyclone, etc.) or standard KM software (Multiplicity, etc.). The former typically will only broadcast keys to a specified game window, whereas the KM software like multiplicity usually requires you to mouseover to the 2nd PC to be able to control it. Not sure there's any that do just a few keys globally like you seem to be asking for.

thinus
05-10-2009, 11:38 PM
You should be able to do it with HKN.

Freddie
05-11-2009, 04:33 AM
Yes, HotkeyNet can do this.

olipcs
05-11-2009, 05:00 AM
This can be done quite quickly with HKN with a script that looks like this:



<Label lounge IPADDRESS_OF_LOUNGE_PC SendFocusWin>

<Hotkey Numpad1>
<SendLabel lounge>
<Key 1>

<Hotkey Numpad2>
<SendLabel lounge>
<Key k>


here you would simply hve to change the 'IPADDRESS_OF_LOUNGE_PC' to the ip adress of the pc in the lounge, start HKN on your PC (and load the script) and Start HKN as Client on the lounge pc. (like described here ('http://www.hotkeynet.com/p/doc2.html') )

keyclone
05-11-2009, 05:03 AM
keyclone can do this fairly easily... just type the ip and port into the command area, hit 'connect' and that's it.

you could also put the ip and port into the 'auto-connect' field and whenever you start keyclone, it will automatically connect.

olipcs
05-11-2009, 05:16 AM
keyclone can do this fairly easily... just type the ip and port into the command area, hit 'connect' and that's it. -yep, than you have basic broadcasting ready.
To customize what you want you have to use some keymaps (to get the numpad2 --> k') combined with the whitelist or 'only broadcast hotstrings' (to not broadcast every key), as far as I know.

Another question I simply don't know:
- Is it possible in keyclone to simply broadcast to the 'ActiveWindow' (FocusWin), without specifying it? (- I thought you need to 'add' windows to keyclone (especialy when you want to use keymaps), but as I never used keyclone on more than one pc I simply don't know).

XxXGoD
05-11-2009, 11:05 AM
I tried the HKN thing but doesnt work...

Otlecs
05-11-2009, 11:14 AM
I need a way to use my keyboard on a computer in the lounge (its to far away for me to use synergy)

Something like, If i press numpad 1 I need the other pc to press number 1, if i press numpad 2 i need it to press K... and some more.

What are you actually trying to do?

It seems clear to me that you're want some simple key-mapping functionality, which lots of software can provide (including HKN and Keyclone) but what throws me is your "it's too far away for me to use synergy" comment.

What do you mean, and what's your exact setup?

olipcs
05-11-2009, 11:41 AM
I tried the HKN thing but doesnt work... -ok, do you get any errormessages (red ones)?
- did the pcs connect succesfully ?
- did the script load sucessfully?
- is there any other info you could post us, to better help you?

XxXGoD
05-11-2009, 12:37 PM
I tried the HKN thing but doesnt work... -ok, do you get any errormessages (red ones)?
- did the pcs connect succesfully ?
- did the script load sucessfully?
- is there any other info you could post us, to better help you?It says it sent the message and the other pc says it recieved it.. but its not pressing the keys..

olipcs
05-11-2009, 12:46 PM
hm, what window do you have actvive on the lounge-pc? (or better ask, what says the lounge-pc, when it recieves the key) ?

XxXGoD
05-11-2009, 12:47 PM
hm, what window do you have actvive on the lounge-pc? (or better ask, what says the lounge-pc, when it recieves the key) ?It says it has sent the key on both client and server.

olipcs
05-11-2009, 01:03 PM
hm, are you running vista? -if so, are you running hkn, as admin?

Freddie
05-11-2009, 01:19 PM
What program are the keystrokes getting sent to? If it's protected by GameGuard or a similar anti-cheat program, the injected keystrokes will not be received.

XxXGoD
05-11-2009, 01:20 PM
hm, are you running vista? -if so, are you running hkn, as admin?If i do it locally on this pc, it sends the keys fine into the window.
Same on the other PC if i turn the server to a clinet and client to a server.

But over the network it wont let me send into the specific window.

Anyway i can make it send exactly the same as local but to the other system

Currently script looks like:
<Label lounge 192.168.1.110 SendFocusWin>

<Hotkey Numpad5>
<SendLabel lounge>
<Key 1>
<Hotkey Numpad6>
<SendLabel lounge>
<Key 2>
<Hotkey Numpad7>
<SendLabel lounge>
<Key 3>
<Hotkey Numpad8>
<SendLabel lounge>
<Key 4>
<Hotkey Numpad9>
<SendLabel lounge>
<Key 6>
<Hotkey Numpad0>
<SendLabel lounge>
<Key 5>

Freddie
05-11-2009, 01:47 PM
Same on the other PC if i turn the server to a clinet and client to a server.
You don't have to change that. Any copy of HotkeyNet, regardless of whether it's a client or server, has the same abilities.


But over the network it wont let me send into the specific window.
What do you mean into the specific window? Your script doesn't send to a specific window. It sends to whichever window happens to be in the foreground. Olipcs suggested writing the script that way to make it slightly easier. If you want to send to a specific window, you have to name the window in the label.

olipcs
05-11-2009, 01:49 PM
Olipcs suggested writing the script that way to make it slightly easier honestly i did this on purpose, because he never mentioning a specific application he wants to send to, so i thought he wants a more general broadcasting (hence my question, if keyclone can send to windows, without 'adding' them).

Freddie
05-11-2009, 01:54 PM
I know you had a good reason. :)

Maybe he has HotkeyNet in the foreground on the remote so he can watch the messages.

Edit: Btw Olipcs, this thread is an example of why I'm eliminating server/client in HKN2. People see "client" and "server" and jump to wrong conclusions.

keyclone
05-11-2009, 02:15 PM
keyclone can do this fairly easily... just type the ip and port into the command area, hit 'connect' and that's it. -yep, than you have basic broadcasting ready.
To customize what you want you have to use some keymaps (to get the numpad2 --> k') combined with the whitelist or 'only broadcast hotstrings' (to not broadcast every key), as far as I know.

Another question I simply don't know:
- Is it possible in keyclone to simply broadcast to the 'ActiveWindow' (FocusWin), without specifying it? (- I thought you need to 'add' windows to keyclone (especialy when you want to use keymaps), but as I never used keyclone on more than one pc I simply don't know).actually, no. there is no need for keymaps (keymaps will change a key for the target window... if you hit 5 on one window, you can make 7 go into another). keymaps are generally for more advanced setups where you have 3 or more classes.

by default, all your wows on the local machine would be managed by keyclone. once you connect to the other keyclone on the other machine, any key enter into any wow will go to all others. its that simple.

olipcs
05-11-2009, 02:42 PM
sry, Rob, but if you read the original post from XxXGoD its not that simple, because he specicaly said he wanted a conversion form:
Numpad1 -> 1
Numpad2 -> k
..and so on (and if you look at the HKN-Script he tryed to us he needs: numpad5 -> 1, numpad6 -> 2, numpad7 -> 3, numpad8 -> 4, numpad9 ->6,Numpad0 -> 5).
And I personaly don't know another way to do this with keyclone, than keymaps and hotstrings.

And on the other point: my question, if keyclone can broadcast to the 'active window' other than a specifyed window, was because he never stated that he wants to use this for WoW (or another specific program), and I thought it may be a problem (as Ughmahedhurtz ('http://www.dual-boxing.com/forums/index.php?page=User&userID=843') also suggested).

XxXGoD
05-11-2009, 03:43 PM
Ok, spesific... ignore that word.

I had notepad open on the lounge computer and it was able to send to that with no problems, but when i load the game it does not set, but if on this PC i just setup with the "local" commands for numpad 5 to press number 1, it will do it fine but that is telling it that the window is named: Shaiya (thats the game btw, i am running modified game.exe so it doesnt block macro's or scripts..etc so this will work for me but atm it doesnt)

Freddie
05-11-2009, 04:46 PM
Are you seeing blue messages on the remote copy of HotkeyNet?

Are you sure you've got GameGuard completely disabled? (HotkeyNet can't send keys past GameGuard.)

XxXGoD
05-11-2009, 04:59 PM
Yes, GameGuard is completely disabledc

Freddie
05-11-2009, 05:18 PM
You didn't answer my question about blue messages. It's hard to help you if you don't provide the info I need.

Here's a step-by-step procedure to help figure out what's wrong.

1. On the remote PC, run Shaiya and Notepad at the same time.

2. On the remote PC, click Notepad to bring it to the foreground.

3. On the local PC, press Numpad5.

4. On the remote PC, check whether Notepad received "1". If it didn't, I assume that red or blue messages didn't appear on the remote copy of HotkeyNet. That means your copies of HotkeyNet aren't connected or that you used the wrong IP address in the script. You need to go to the Connections Settings Panels on both copies of HotkeyNet and make sure you entered the correct info.

If Notepad received "1" in step 4:

5. On the remote PC, click Shaiya to bring it to the foreground.

6. On the local PC, press Numpad5.

7. On the remote PC, check whether Shaiya receives "1".

If Notepad receives "1" but Shaiya doesn't, the only explanation that I can think of is GameGuard.

XxXGoD
05-11-2009, 06:16 PM
GameGuard is completely removed, i even have it deleted from the directory, but yes it works in the notepad but not in Shaiya.... but the thing is if i set it to not bother with the other system and to send it locally to the server pc it sends the keys fine into shaiya

XxXGoD
05-12-2009, 11:03 AM
Would it be possible to do the current script but to make if it was keypad 5 pressing number 3 to be changed so keypad 5 presses keypad 5

But on the remote PC for it to have this:


<hotkey 5>
<sendpc local>
<sendwin Shaiya>
<key 3>


As that script on its own will send the key to the Shaiya Window.

Basically the remote PC is following my main character I am using my keypad to make my priest press her normal buttons to heal me.

Freddie
05-12-2009, 11:20 AM
I don't understand. Can you rephrase that by stating three facts:

1. What key or key combination do you want to press with your fingers?

2. What key or key combinations do you want the local Shaiya to receive?

3. What key or key combinations do you want the remote Shaiya to receive?

XxXGoD
05-12-2009, 11:49 AM
I don't understand. Can you rephrase that by stating three facts:

1. What key or key combination do you want to press with your fingers?

2. What key or key combinations do you want the local Shaiya to receive?

3. What key or key combinations do you want the remote Shaiya to receive?
I don't want the local machine to receive any, but I tested HKN using local keys so when I press numpad 5 for it to press the number 3, it was able to send this key to shaiya so I know gameguard is not blocking.

numpad5 -> 1
numpad6 -> 2
numpad7 -> 3
numpad8 -> 4
numpad9 -> 6
Numpad0 -> 5)

What I was saying is that would it be possible to press Numpad 5 on this PC and that to send the message to the remote PC to Press Numpad 5 which then uses the local script as this works for Shaiya, the method of s

The following script is unable to send the text to the Shaiya Window, is there a way maybe to change "SendFocusWin" to make it send to the Shaiya Window?


<Label lounge 192.168.1.110 SendFocusWin>

<Hotkey Numpad5>
<SendLabel lounge>
<Key 1>

I changed SendFocusWin to sendwin Shaiya, the game allows me to send it as text but its not detecting it as a press of the key so is not healing me...

Freddie
05-12-2009, 12:39 PM
Why can't you just answer my question? I had to spend five minutes studying your message to extract the answers. I take it these are the answers:

1. You want to press NumPad5 with your finger.

2. You want the local Shaiya to receive nothing.

3. You want the remote Shaiya to receive NumPad5.

Is that correct? Is that what you are trying to do?


but I tested HKN using local keys so when I press numpad 5 for it to press the number 3, it was able to send this key...
Are you saying that you wrote a hotkey definition that successfully injected a keystroke into the remote Shaiya? If so, please copy and paste that hotkey definition here so I can see what worked.


What I was saying is that would it be possible to press Numpad 5 on this PC and that to send the message to the remote PC to Press Numpad 5 which then uses the local script as this works for Shaiya, the method of s
HotkeyNet doesn't work the way you think it does. It doesn't make the slightest difference whether a hotkey is defined in a remote script or local script. Either way the remote copy of HotkeyNet injects the keystroke using exactly the same code.


is there a way maybe to change "SendFocusWin" to make it send to the Shaiya Window?
There are many ways to use HotkeyNet to send to a window but since you are having a problem, and I do not know what the problem is, I can't answer the question until you give me the info that I requested.

XxXGoD
05-12-2009, 02:15 PM
Why can't you just answer my question? I had to spend five minutes studying your message to extract the answers. I take it these are the answers:

1. You want to press NumPad5 with your finger.

2. You want the local Shaiya to receive nothing.

3. You want the remote Shaiya to receive NumPad5.

Is that correct? Is that what you are trying to do?
No, Ignore all of that I have tried some ways around it because I thought it was not sending the keys at all, but it is the only problem is the games not detecting the keypresses.

AutoIt3 is detected so macro's do work.. I just dont know why HKN isn't being detected fully.




but I tested HKN using local keys so when I press numpad 5 for it to press the number 3, it was able to send this key...
Are you saying that you wrote a hotkey definition that successfully injected a keystroke into the remote Shaiya? If so, please copy and paste that hotkey definition here so I can see what worked.
It seems like it's injecting it in but not acting as a keypress so is not detecting it in-game.



What I was saying is that would it be possible to press Numpad 5 on this PC and that to send the message to the remote PC to Press Numpad 5 which then uses the local script as this works for Shaiya, the method of s
HotkeyNet doesn't work the way you think it does. It doesn't make the slightest difference whether a hotkey is defined in a remote script or local script. Either way the remote copy of HotkeyNet injects the keystroke using exactly the same code.
I might have a fix for it, to put an AutoIt3 Script on the remote system so when I press Keypad 5 on this system the remote system presses keypad 5 which then makes the autoitscript press the number 3

Zakula
05-12-2009, 10:40 PM
go to www.vetra.com ('http://www.vetra.com/'). they have a large selection of KVM switches if you want that or a keyboard multiplier. you can get it in PS/2 or usb the usb version costs more. just remap the keys on your 2nd pc to do what ya want

VIP-844-BC: ('http://www.vetra.com/844text.html') "MegaCast"™ 4 port PS/2 Keyboard Multiplier / Multicaster. Routes the output of a single PS/2 keyboard, to as many as four PCs simultaneously.You will need four 6-pin mini-DIN male-male cables, such as our VIP-300-6MM-06 ('http://www.vetra.com/accessories.html') cables, to connect to the PCs. Can be cascaded to accommodate a maximum of 16 PCs.


zak

XxXGoD
05-13-2009, 01:46 PM
go to www.vetra.com ('http://www.vetra.com/'). they have a large selection of KVM switches if you want that or a keyboard multiplier. you can get it in PS/2 or usb the usb version costs more. just remap the keys on your 2nd pc to do what ya want

VIP-844-BC: ('http://www.vetra.com/844text.html') "MegaCast"™ 4 port PS/2 Keyboard Multiplier / Multicaster. Routes the output of a single PS/2 keyboard, to as many as four PCs simultaneously.You will need four 6-pin mini-DIN male-male cables, such as our VIP-300-6MM-06 ('http://www.vetra.com/accessories.html') cables, to connect to the PCs. Can be cascaded to accommodate a maximum of 16 PCs.


zakI guess you didn't read my first post.


(its to far away for me to use synergy) the system is a good 30-40m away