Learn

The forum of documents and methods for studying - Lượm lặt kiến thức


    [Chrome] Get rid of "This type of file can harm your computer" with AHK

    QaniTri
    QaniTri
    Admin

    Nam Libra Monkey
    Tổng số bài gửi : 1609
    Tiền xu Ⓑ : 3986
    Được cảm ơn № : 6
    Ngày khởi sự Ngày khởi sự : 07/01/2013
    Đến từ Đến từ : HCMC
    Côngviệc / Sởthix Côngviệc / Sởthix : Languages, Softwares, Sciences, Martial arts

    [Chrome] Get rid of "This type of file can harm your computer" with AHK Empty [Chrome] Get rid of "This type of file can harm your computer" with AHK

    Bài gửi by QaniTri 7th February 2018, 03:06

    The annoying warning:

    [Chrome] Get rid of "This type of file can harm your computer" with AHK Chrome-pdf-potentially-dangerous

    And the solution:
    Code:
    SetTitleMatchMode, 2
    #IfWinActive, Chrome
    ~LButton:: ; Change LButton to ^s or any commands you send to the Chrome to download a file
    MouseGetPos, mx, my
    Loop, 14
    {
     ImageSearch, x, y, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, D:\\Pictures\keep_button.png ; Replace The location to your image want to click
     x+= 40
     y+= 14

     Sleep, 100
     if (x != 40)
     break
    }
    if (x != 40)
    {
     MouseMove, x, y
     SendInput, {Click, %x%, %y%, Left, 1}
     MouseMove, mx, my
    }
    return
    #If

    Keep button image: keep_button.png
    [Chrome] Get rid of "This type of file can harm your computer" with AHK Ud8ySln

    Notice: If it do not work, you have to recapture the new keep_button image instead of using above and better do it first

    Good luck!


      Hôm nay: 26th November 2024, 05:23