Hi !
I just offer to myself a logitech 'craft' keyboard. It has a wheel but what logitech does with really sucks.
I'd like to be able to use it in autohotkey in order to do interesting things. But I don't know at all what could be the autohotkey command for the logitech craft keyboard.
If anyone had any idea....
BTW, is there a way to 'capture' the signal that goes from the wheel in the computer and then use it in a script ? I don't find how.
Thanks a lot !
Keyboard special wheel
Re: Keyboard special wheel
run this, see if any keycodes come up when u turn the wheel
Code: Select all
#NoEnv
#SingleInstance Force
#WinActivateForce
#InstallKeybdHook
#InstallMouseHook
#KeyHistory 24
SetBatchLines -1
SetTimer, RefreshKeyHistory, 100
Esc::ExitApp
RefreshKeyHistory:
if !WinExist("ahk_id" keyHistoryHWND)
ExitApp
ControlSend, % "ahk_parent", % "{F5}", % "ahk_id" keyHistoryHWND
Return
OpenKeyHistory()
{
static INIT := OpenKeyHistory()
activeHWND := WinActive("A")
KeyHistory
SetTitleMatchMode RegEx
WinWaitActive, % ".* - AutoHotkey v1\.1\.\d+.\d+"
SetTitleMatchMode 2
global keyHistoryHWND := WinActive("A")
WinMove, % "ahk_id" keyHistoryHWND, , 10, 10, A_ScreenWidth * 0.3, A_ScreenHeight * 0.8
WinSet, AlwaysOnTop, On, % "ahk_id" keyHistoryHWND
WinActivate, % "ahk_id" activeHWND
}
Re: Keyboard special wheel
Oh ! I didn't know that ! Exactly what I needed ! It catched the wheel !
See on the jpg, lines with 'wheelup^' or 'wheeldown', for the other lines, I'm unable to know what they are. Apparently, there could be a way to use the keyboard wheel, no ?
Thanks a lot !
See on the jpg, lines with 'wheelup^' or 'wheeldown', for the other lines, I'm unable to know what they are. Apparently, there could be a way to use the keyboard wheel, no ?
Thanks a lot !
Re: Keyboard special wheel
it appears as though its either sending CTRL + Wheel or CTRL + SHIFT + Wheel
try verifying that:
try verifying that:
Code: Select all
^WheelUp::MsgBox, % "ctrl + wheel"
^+WheelUp::MsgBox, % "ctrl + shift + wheel"
Re: Keyboard special wheel
Oh ! I guess I know why ! It's because the wheel is setted up for zoom on any application.
Re: Keyboard special wheel
The result of the small script is a message "ctrl + wheel" on wheel clockwise but nothing in the otherway !
Re: Keyboard special wheel
I had the second message with this little changes :
That's awesome ! I've got the key to use in autohotkey, now ! Thanks a lot !! Gonna be able to do exactly what I want ! Excellent !
Code: Select all
^WheelUp::MsgBox, % "ctrl + wheel"
^Wheeldown::MsgBox, % "ctrl + shift + wheel"
Re: Keyboard special wheel
Ooops ! No ! Sorry ! I think I must do the first big test again...
The test remains totally empty when moving the wheel with any command assigned in its application !
But I think I know how I can do... Gonna assign it a dummy command, useless for me, check what it is thanks to your 1° script and reassign it in autohotkey. It should work.
The test remains totally empty when moving the wheel with any command assigned in its application !
But I think I know how I can do... Gonna assign it a dummy command, useless for me, check what it is thanks to your 1° script and reassign it in autohotkey. It should work.
Re: Keyboard special wheel
..... It does !! Many thanks !
Re: Keyboard special wheel
If you want to remap the wheel on the keyboard, but not mess with the wheel on your mouse, you should be able to do that with AutoHotInterception
If it is sending CTRL+Wheel, not sure how easy it would be to block the CTRL that gets sent before wheel, but not your normal use of CTRL, because you cannot see into the future.
If it is sending CTRL+Wheel, not sure how easy it would be to block the CTRL that gets sent before wheel, but not your normal use of CTRL, because you cannot see into the future.
Re: Keyboard special wheel
Thanks, evilC ! In fact, because the keyboard wheel was map to CTRL+Wheel, I get the result on the jpg of my second post. When the wheel is mapped to nothing, I get nothing ! So, I've found a way to map it to some dummy keys in order to have the wheel doing what I want.
It's working well, now.
It's working well, now.
Re: Keyboard special wheel
My point being, what happens if you hold CTRL on the keyboard, and roll the mouse wheel on your mouse?
I am guessing that your existing solution would not be able to tell the difference between this and the wheel on your keyboard being rolled.
AutoHotInterception would be able to tell the difference, and could block the wheel on your keyboard (And do something else instead), but not block the wheel on your mouse.
I am guessing that your existing solution would not be able to tell the difference between this and the wheel on your keyboard being rolled.
AutoHotInterception would be able to tell the difference, and could block the wheel on your keyboard (And do something else instead), but not block the wheel on your mouse.
Who is online
Users browsing this forum: No registered users and 344 guests