Hi,
I'm trying to simply get F1 to do Ctrl-C and F2 to do Ctrl-V, nothing more ! However, I need it to do this to copy data out of a web page displayed in Chrome. I've created an AHK file to remap the keys but Chrome insists on opening Developer Tools when I press F1 (which is odd in itself - I thought F1 was 'Help' and F12 was 'Developer Tools').
I know AHK is grabbing the keypress before Chrome sees it as I can completely disable F1 with 'F1::return'. What I can't seem to do is to get AHK to perform Ctrl-C when I press F1 and not forward the F1 keypress onto Chrome as well.
Any suggestions ?
Many thanks !
Remapping Function keys exclusively ?
Re: Remapping Function keys exclusively ?
Not having that problem here. You have F1::^c in your script?
Re: Remapping Function keys exclusively ?
Like he said, or you might want to try by keycode ^{sc02E}
Code: Select all
F1::^c
F2::^v
F3::selectAllAndCopy()
Esc::ExitApp
Return
ExitApp
selectAllAndCopy() {
send ^{a}
send ^{sc02E} ; same as ^c
}
Re: Remapping Function keys exclusively ?
No actually ! I hadboiler wrote:Not having that problem here. You have F1::^c in your script?
Code: Select all
F1::
Send ^C
return
Re: Remapping Function keys exclusively ?
You didn't actually remap the F1 key, you created a hotkey that runs a subroutine when F1 is pressed. Remapping causes the F1 key to become the ^c key combination. See the documentation for the differences between hotkeys and remapping.
Re: Remapping Function keys exclusively ?
Its
That's what you did wrong
Code: Select all
Send ^{c}
Re: Remapping Function keys exclusively ?
Thanks very much for your help. Much appreciated.
Who is online
Users browsing this forum: Bing [Bot] and 105 guests