thảo luận Tất cả về autohotkey

  • Người tạo chủ đề Người tạo chủ đề Jokerhero
  • Ngày bắt đầu Ngày bắt đầu
dạo này update win lên cái 1 số phím tắt không sử dụng được, không biết tại sao, mấy thím bắt bệnh hộ em phát
:: send, ^w ; bấm phím = Đóng tab (Ctrl + w)
;
!:: send, !{F4} ;alt + = Đóng app (Alt + F4)
;
!r:: send, {F5} ;alt + r = refesh
;

có mỗi alt+r là hoạt động :(
 
Ô, giờ mới biết thớt này, hay vãi. Chắc bữa nào bắt chước mẫu của chủ thớt làm 1 cái ffmpeg cho nó tiện có chỗ bàn bạc :sexy_girl:

// Cũng đang dùng 1 số lệnh autohotkey, cái gần nhất là Win+Alt+Down để minimize tất cả window xuống, trừ cái window đang dùng :sexy_girl:

Mã:
#!Down::
WinGet, id, list,,, Program Manager
Loop, %id%
{
    this_ID := id%A_Index%
    WinGetTitle, active_title, A
    WinGetTitle, title, ahk_id %this_ID%
    If title = %active_title%
    Continue
    WinMinimize, %title%
}
return
 
Xin chào các ace,

mình đang tìm code của autohotkey , mà đang duyệt web, mình "bấm giữ ctrl, đồng thời click chuột trái lên ảnh" thì nó sẽ tự động click chuột phải và chọn "Save image as..."

Các thím nào biết code này ko ạ? :big_smile:
 
Xin chào các ace,

mình đang tìm code của autohotkey , mà đang duyệt web, mình "bấm giữ ctrl, đồng thời click chuột trái lên ảnh" thì nó sẽ tự động click chuột phải và chọn "Save image as..."

Các thím nào biết code này ko ạ? :big_smile:
Mã:
; Save image
#SingleInstance, Force

#IfWinActive, ahk_class MozillaWindowClass
^LButton::
    MouseClick, Right
    Send, v
    Sleep, 50
    WinWait, Save Image ahk_class #32770 ahk_exe firefox.exe,, 3
   
    If (ErrorLevel) {
        return
    }
   
    ControlSend, Button1, {Enter}, Save Image ahk_class #32770 ahk_exe firefox.exe
return
#IfWinActive
Đã thử thành công trên Firefox, cơ mà trình duyệt khác thì làm thế nào các thím nhỉ :sweat: Làm sao biết được trình duyệt mình là ahk_class nào :sweat:

// Edit: à được rồi, thay vì ahk_class thì dùng ahk_exe
 
Sửa lần cuối:
Mã:
; Save image
#SingleInstance, Force

#IfWinActive, ahk_class MozillaWindowClass
^LButton::
    MouseClick, Right
    Send, v
    Sleep, 50
    WinWait, Save Image ahk_class #32770 ahk_exe firefox.exe,, 3
  
    If (ErrorLevel) {
        return
    }
  
    ControlSend, Button1, {Enter}, Save Image ahk_class #32770 ahk_exe firefox.exe
return
#IfWinActive
Đã thử thành công trên Firefox, cơ mà trình duyệt khác thì làm thế nào các thím nhỉ :sweat: Làm sao biết được trình duyệt mình là ahk_class nào :sweat:

// Edit: à được rồi, thay vì ahk_class thì dùng ahk_exe

mình đã chuyển firefox.exe thành chrome.exe rồi mà ko được ạ? :shame:
 
mình đã chuyển firefox.exe thành chrome.exe rồi mà ko được ạ? :shame:
Hmmm, mình vừa thử được mà, thím check xem kĩ lại code xem. Đây là code với chrome
Mã:
; Save image
#SingleInstance, Force

#IfWinActive, ahk_exe chrome.exe
^LButton::
    MouseClick, Right
    Send, v
    Sleep, 50
    WinWait, Save Image ahk_class #32770 ahk_exe chrome.exe,, 3
   
    If (ErrorLevel) {
        return
    }
   
    ControlSend, Button1, {Enter}, Save Image ahk_class #32770 ahk_exe chrome.exe
return
#IfWinActive
 
Ô, giờ mới biết thớt này, hay vãi. Chắc bữa nào bắt chước mẫu của chủ thớt làm 1 cái ffmpeg cho nó tiện có chỗ bàn bạc :sexy_girl:

// Cũng đang dùng 1 số lệnh autohotkey, cái gần nhất là Win+Alt+Down để minimize tất cả window xuống, trừ cái window đang dùng :sexy_girl:

Mã:
#!Down::
WinGet, id, list,,, Program Manager
Loop, %id%
{
    this_ID := id%A_Index%
    WinGetTitle, active_title, A
    WinGetTitle, title, ahk_id %this_ID%
    If title = %active_title%
    Continue
    WinMinimize, %title%
}
return


mình biến tấu thành: bấm ctrl+window+chuột trái, để thu nhỏ được hết windows xuống mà ko cần rời tay khỏi chuột :shame::beauty:

Mã:
^#LButton::
WinGet, id, list,,, Program Manager
Loop, %id%
{
    this_ID := id%A_Index%
    WinGetTitle, active_title, A
    WinGetTitle, title, ahk_id %this_ID%
    If title = %active_title%
    Continue
    WinMinimize, %title%
}
return
 

Thống kê chủ đề

Ngày tạo
Jokerhero,
Người trả lời cuối
canhh79,
Trả lời
211
Lượt xem
50.969
Quay lại
Lên đầu trang