Please help me with why my hotkeys at lines 101-106 in codes below with the "d"s doesn't work but other hotkeys with "a"s and "f"s seem to work quite well.
Thank you very much guys!!!
"
Code: Select all
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; ScrollSpeed
; $+WheelUp:: ; "$" for physical wheel ; event, not when sent as below
; Send {WheelUp 3} ; The 3 means "Send 3 times" ; and can be altered
; return
; $+WheelDown::
; Send {WheelDown 3}
; return
; SlowDown
s & d::
;SPI_GETMOUSESPEED = 0x70, SPI_SETMOUSESPEED = 0x71
DllCall("SystemParametersInfo", "UInt", 0x70, "UInt", O, "UIntP", OrigMouseSpeed, "UInt", 0)
DllCall("SystemParametersInfo", "UInt", 0x71, "UInt", O, "UInt", 1, "UInt", 0)
KeyWait, s
~d Up::
If OrigMouseSpeed
DllCall("SystemParametersInfo", "UInt", 0x71, "UInt", O, "UInt", OrigMouseSpeed, "UInt", 0)
OrigMouseSpeed =
Return
; AltTab----------------------------------------
#NoEnv
Process, Priority, ,High
#SingleInstance Force
s & f::
WinGet, AllWinsHwnd, List
Loop, % AllWinsHwnd
{
WinGet, exStyle, exStyle, % "ahk_id" AllWinsHwnd%A_Index%
If !(exStyle & 0x100)
Continue
WinGetTitle, CurrentWinTitle, % "ahk_id " AllWinsHwnd%A_Index%
WinGetTitle, active_title, A
If CurrentWinTitle = %active_title%
continue
WinActivate, %CurrentWinTitle%
; GoSub, MouseCenterInWindow
break
}
return
; ----------------------------------------
Tab::0
; ##################################################
#IfWinActive ahk_exe Revit.exe
a::Escape
s::
send {WheelDown}{WheelDown}{WheelDown}{WheelDown}; {WheelDown}{WheelDown}
return
d::
send {WheelUp}{WheelUp}{WheelUp}{WheelUp}
return
f::LButton
#IfWinActive
F6::LWin
F7::Capslock
F8::RButton
$F9::Space
F10::LAlt
$a::send a
$s::send s
$d::send d
$f::send f
$q::send q
Shift & a::send A
a & g::return
; a & LCtrl::
a & s::
send {WheelDown}{WheelDown}{WheelDown}
return
a & d::
send {WheelUp}{WheelUp}
return
a & f::LButton
a & Space::RButton
a & w::<+MButton
a & e::Delete
Shift & s::send S
s & g::return
; s & a::
; s & d::(Slow Down hot key above)
; s & f::(AltTab hotkey above)
s & Space::^F4
Shift & d::send D
d & g::return
d & a::Escape
d & s::Backspace
d & f::Delete
d & Space::^z
Shift & f::send F
f & LCtrl::return
f & w::`
f & Space::Enter
f & a::Tab
f & e::Backspace
f & d::MButton
f & q::
Suspend
Return
f & s::Send, {LShift Down}{MButton Down}
f & s Up::Send, {MButton Up}{LShift Up}
Shift & q::send Q
q & 3::<!Left
q & 4::<!Right
q & 2::n
q & w::y
q & e::send {Up}
q & a::send {Home}
q & s::send {Left}
q & d::send {Down}
q & f::send {Right}
q & z::send {End}
q & x::send {PgDn}
q & c::send {PgUp}
q & r::send {?}
q & t::send <!{Tab}
; %km_YY%km_0M%km_0D
; __%km_YY%km_0M%km_0D%km_0H%km_0m%km_0s
LCtrl::send {LCtrl}
LCtrl & e::Volume_Down
LCtrl & r::Volume_Up
LCtrl & q::^WheelDown
LCtrl & w::^WheelUp
LCtrl & Tab::^p
;
LCtrl & a::^a
LCtrl & s::^s
LCtrl & d::^d
LCtrl & f::^f
LCtrl & z::^z
LCtrl & x::^x
LCtrl & c::^c
LCtrl & v::^v
Space::send {Space}
Space & Tab::-
Space & Capslock::send {capslock}
Space & Escape::<!F4
Space & 1::6
Space & 2::7
Space & 3::8
Space & 4::9