New problem with my autohotkey
(The older problem, which has been solved, has been bumped down the OP)
I am trying to do 2 things on the same autohotkeyscript.
1) rearrange the alphas to my custom layout
2) put in some key combos tied to my custom layout
For instance, I want to turn the original B (scancode 030) to K.
The original N to B
The original J to N
And then put in macros such that when I press windows-b, I get the BBC. When I press windows-n, I get the New York Times.
Here’s some sample script that doesn’t work. I can get the New York Times, but not the BBC. The funny thing is, the exact same script worked when I was still using standard layout ie did no try rearranging the alphas. But once I added in the code rearranging the alphas, I got problems.
j::n
sc030::k
n::b
#n::
Run http://www.nytimes.com/
return
#b::
Run http://www.bbc.co.uk/news/
returnJust for reference, the entire block of code added is this. It's my custom modified colemak layout.
w::g
e::f
r:: p (space added to avoid an auto smiley forming)
t::w
y::del
u::l
i::u
o::j
sc019::y
[::;
]::backspace
capslock::backspace
a::r
s::a
d::s
f::t
g::d
j::n
k::e
l::i
sc027:: o (space added to avoid an auto smiley forming)
c::v
v::c
sc030::k
n::bOP below kept for archive purposes
I haven’t posted about this for a while because I’d gotten most of my ahk problems under control. But now I have to ask… any input would be deeply appreciated!
I want to use the numpad3 as a ‘multi pagedown’ instead of single page down and numpad9 as a multi page up.
I created this code
NumpadPgUp::
Loop, 4
{
Send 4{PgUp}
}
Return
NumpadPgDn::
Loop, 4
{
Send 4{PgDn}
}
Return
This code works fine when in a pdf document or google chrome. Unfortunately, when trying to page up and down quickly in a word document, pressing num3 will lead to the number 4 being inserted 4 times, once on each page down. Ditto for num9, which inserts 4 for each page up.
Does anyone have a suggestion on how I can solve this?