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 

How to use AutoHotKeys to operate KVM Switch

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





PostPosted: Sun Aug 27, 2006 12:12 pm    Post subject: How to use AutoHotKeys to operate KVM Switch Reply with quote

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

PostPosted: Sun Aug 27, 2006 12:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
MsgBox
Guest





PostPosted: Sun Aug 27, 2006 12:59 pm    Post subject: Reply with quote

Hello Ron (The Netherlands) Smile

I have tried your code with capslock (I haven't got a scrolllock light Sad )and it works ok, os nothing wrong there. Smile
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

PostPosted: Wed Aug 30, 2006 11:10 pm    Post subject: Reply with quote

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
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