how to create script for switching tab in chrome?
here what i try
NumPad7:: Send, {ctrl}{tab}
Return
NumPad8:: Send, {ctrl}{shit}{tab}
Return
set ctrl+shit+tab and ctrl+tab for switching tab in chrome
Re: set ctrl+shit+tab and ctrl+tab for switching tab in chrome
When you send just the key name (ex. Send, {ctrl}), it simulates pressing the key and then releasing it. In other words, it sends the down command for the key and then the up command. When you want a key to be held down, you want to send just the down command, so what you want is this:
FYI, adding Return is unnecessary when the hotkey has only a single command, so I removed them.
Code: Select all
Numpad7::Send, {ctrl down}{tab}{ctrl up}
Numpad8::Send, {ctrl down}{shift down}{tab}{shift up}{ctrl up}
Re: set ctrl+shit+tab and ctrl+tab for switching tab in chrome
Try also:
Code: Select all
Numpad7::Send, ^{Tab}
NumpadHome::Send, ^{Tab}
Numpad8::Send, ^+{Tab}
NumpadUp::Send, ^+{Tab}
;e.g.
;Numpad7:: ;works when NumLock is on
;NumpadHome:: ;works when NumLock is off
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Who is online
Users browsing this forum: No registered users and 146 guests