Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I try the following hotkey in Chrome:

!F3::Send {AppsKey}{Up}

Chrome opens the context menu but it doesn't move the selected line in the context menu. Instead the {Up} command moves the scroll bar up.

I tried this hotkey in another application it works as expected. Namely, the {Up} command moves the selected line in the context menu.

What should I do to move the selected line in the context menu of Chrome by using Autohotkey?

share|improve this question

1 Answer 1

It is usually necessary to wait a few milliseconds after opening a content menu so the keys are sent when the focus is actually on the context menu. So, you can play around with the Sleep command until you find an acceptable time (I used 100 milliseconds in my example):

!F3::
    Send, {AppsKey}
    Sleep, 100
    Send, {Up}
    return
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.