Добавлено: Вт авг 21, 2007 18:38
Новая версия 1.4
Добавлено: переключение режимов средней кнопкой мыши, автозагрузка программы...
Добавлено: переключение режимов средней кнопкой мыши, автозагрузка программы...
Форум поддержки пользователей Total Commander
https://forum.wincmd.ru/
завел. надеюсь, народ теперь все знаетfunduk писал(а):Кстати, ты бы завёл себе профиль в вике, чтобы народ знал, кто из аддонописателей сам в список свои аддоны добавляет.
Код: Выделить всё
#SingleInstance force
#If WinActive("ahk_class TTOTAL_CMD") and MouseUnder("TMyListBox[12]")
~LButton::
If LPress {
LPress += 1
Return
} LPress = 1
SetTimer, LPress, On
Return
MButton::
Click
Send, {F4}
Return
LPress:
SetTimer, LPress, Off
If (LPress = 1)
{ KeyWait, LButton, T0.4
If (ErrorLevel && WinActive("ahk_class TTOTAL_CMD"))
{ Click
Send, {F3}
}
} LPress = 0
Return
MouseUnder(Controls) {
MouseGetPos,,,, Control
If RegExMatch(Control, Controls)
Return, True
}Код: Выделить всё
; TotalMouseEX v0.3 by zL
; AutoHotkey_L v1.1.1.00 Unicode
#SingleInstance force
#If WinActive("ahk_class TTOTAL_CMD") and MouseUnder("TMyListBox[12]")
~LButton::
If LPress {
LPress += 1
Return
} LPress = 1
SetTimer, LPress, On
Return
~MButton::
If MPress {
MPress += 1
Return
} MPress = 1
SetTimer, MPress, On
Return
LPress:
SetTimer, LPress, Off
MouseGetPos, x0, y0
If (LPress = 1)
{ KeyWait, LButton, T0.4
MouseGetPos, x1, y1
If (ErrorLevel && WinActive("ahk_class TTOTAL_CMD") && (x0 = x1 && y0 = y1))
{ Click
Send, {F3}
}
} LPress = 0
Return
MPress:
SetTimer, MPress, Off
MouseGetPos, x0, y0
If (MPress = 1)
{ KeyWait, MButton, T0.4
MouseGetPos, x1, y1
If (ErrorLevel && WinActive("ahk_class TTOTAL_CMD") && (x0 = x1 && y0 = y1))
{ Click
Send, {F4}
}
} Else, If (MPress = 2)
{ Click
Send, !{NumpadAdd}
} MPress = 0
Return
MouseUnder(Controls) {
MouseGetPos,,,, Control
If RegExMatch(Control, Controls)
Return, True
}Код: Выделить всё
#Persistent
#SingleInstance force
Prj = TotalMouseEX v0.5 by zL
Tray:
Menu Tray, Tip, % Prj
Menu Tray, Icon, main.cpl
Menu Tray, NoStandard
Menu Tray, Add, &About, About
Menu Tray, Add
Menu Tray, Add, E&xit, Quit
Menu Tray, Default, &About
Return
About:
MsgBox 8256, % Prj,
(LTrim
Long press left mouse button to view file in lister
Long press middle mouse button to edit file
Double click middle mouse button to select files with same extension
)
Return
Quit:
ExitApp
#If WinActive("ahk_class TTOTAL_CMD") and MouseUnder("TMyListBox[12]")
~LButton::
If LPress {
LPress += 1
Return
} LPress = 1
SetTimer, LPress, On
Return
MButton::
If MPress {
MPress += 1
Return
} MPress = 1
SetTimer, MPress, On
Return
LPress:
SetTimer, LPress, Off
MouseGetPos, x0, y0
If (LPress = 1)
{ KeyWait, LButton, T0.4
MouseGetPos, x1, y1
If (ErrorLevel && WinActive("ahk_class TTOTAL_CMD") && (x0 = x1 && y0 = y1))
{ Click
Send, {F3}
}
} LPress = 0
Return
MPress:
SetTimer, MPress, Off
MouseGetPos, x0, y0
If (MPress = 1)
{ KeyWait, MButton, T0.4
MouseGetPos, x1, y1
If (ErrorLevel && WinActive("ahk_class TTOTAL_CMD") && (x0 = x1 && y0 = y1))
{ Click
Send, {F4}
} Else, Send, {MButton}
} Else, If (MPress = 2)
{ Click
Send, !{NumpadAdd}
} MPress = 0
Return
MouseUnder(Controls) {
MouseGetPos,,,, Control
If RegExMatch(Control, Controls)
Return, True
}