The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    AutoHotKey help needed

    Discussion in 'Windows OS and Software' started by jackluo923, Apr 24, 2010.

  1. jackluo923

    jackluo923 Notebook Virtuoso

    Reputations:
    1,038
    Messages:
    3,071
    Likes Received:
    1
    Trophy Points:
    105
    How to start a batch script using Fn + f9 key using autohotkey?
     
  2. Kocane

    Kocane Notebook Deity

    Reputations:
    395
    Messages:
    1,626
    Likes Received:
    15
    Trophy Points:
    56
    You cant use FN, but for instance you could use ALT + F9

    ! means alt, and F9 obviously means F9.

    Then rest is selfexplanatory.

     
  3. jackluo923

    jackluo923 Notebook Virtuoso

    Reputations:
    1,038
    Messages:
    3,071
    Likes Received:
    1
    Trophy Points:
    105
    Is Fn key restricted or is it very hard to implement?
     
  4. flipfire

    flipfire Moderately Boss

    Reputations:
    6,156
    Messages:
    11,214
    Likes Received:
    68
    Trophy Points:
    466
    FN key does generate any scan codes, its a modifier key for the other buttons.
     
  5. swarmer

    swarmer beep beep

    Reputations:
    2,071
    Messages:
    5,234
    Likes Received:
    0
    Trophy Points:
    205
    I think Fn is probably handled by the BIOS... or maybe the keyboard itself. It's not on traditional desktop keyboards... it's kind of a laptop thing, for controlling the hardware (e.g. brightness) and making up for missing keys (such as numeric keypad keys). In any case, I don't think Windows even knows about Fn.
     
  6. jackluo923

    jackluo923 Notebook Virtuoso

    Reputations:
    1,038
    Messages:
    3,071
    Likes Received:
    1
    Trophy Points:
    105
    Final AHK script:

    #F9::run devcon enable "PCI\VEN_8086&DEV_27CC&SUBSYS_015B1025"
    #F10::run devcon disable "PCI\VEN_8086&DEV_27CC&SUBSYS_015B1025"

    Everything runs great.