| View previous topic :: View next topic |
| Author |
Message |
Ron Guest
|
Posted: Sun Aug 27, 2006 12:12 pm Post subject: How to use AutoHotKeys to operate KVM Switch |
|
|
Hello,
I'm trying to use AutoHotKey to operate my Belkin KVM Switchbox (type F1DK102P)
It switches between computers with hotkey: 2 x the 'Scroll Lock' key and then the 'Arrow down' key.
I've now created a .ahk file but it doesn't work.
Can anyone help me?
Here's the file:
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template AutoHotkey script.
;#NoTrayIcon
#s::
Send {ScrollLock 2}{DOWN}
return
Regards,
Ron (The Netherlands) |
|
| Back to top |
|
 |
Peter
Joined: 30 Dec 2005 Posts: 279
|
Posted: Sun Aug 27, 2006 12:46 pm Post subject: |
|
|
I don't know it's possible that the KVM switch -and not your PC/program- can receive those keystrokes.
Actually, a search KVM switch on this forum tells you another problem:
In this post or
In this post |
|
| Back to top |
|
 |
MsgBox Guest
|
Posted: Sun Aug 27, 2006 12:59 pm Post subject: |
|
|
Hello Ron (The Netherlands)
I have tried your code with capslock (I haven't got a scrolllock light )and it works ok, os nothing wrong there.
A few things to try:
| Code: | Send {ScrollLock}
Sleep 100
Send {ScrolLock}{Down} |
| Code: | #s::
Send {ScrollLock 4}{DOWN}
return |
| Code: | | Send {ScrollLock Down}{ScrollLock Up}{ScrollLock Down}{ScrollLock Up} |
Unlikely but:
| Code: | ScrollLockState, on
ScrollLockState, off
ScrollLockState, on
ScrollLockState, off |
And try with the other Send commands.
Good luck! |
|
| Back to top |
|
 |
rlandersen
Joined: 22 Mar 2006 Posts: 7
|
Posted: Wed Aug 30, 2006 11:10 pm Post subject: |
|
|
I have two keyboards hooked up to my system, one through a KVM and the other directly through usb.
If I use the scrlk key on the usb it will change the state on the kvm kbd, but will not process the signal. So it is a hardware interrupt that triggers the kvm switch. |
|
| Back to top |
|
 |
|