Hey guys.
I will be completely honest i don't know anything about scripts and i was wondering if it's possible to make alt-tab combination to only key(i prefer only tab if it's possible).
Any answers will be appreciated.
Thanks .
P.S if anyone wondering i need the script to multibox in game.
Can you make alt+tab to only one key?
Re: Can you make alt+tab to only one key?
Hey, I'm still new to this too but I guess this should do it.
Anyone feel free to add on it please
Code: Select all
;When tab is pressed once it Alt+Tabs
Tab::
Send, !{tab}
Return
;Alt+Esacpe to exit the script
!Escape:: exitapp
Re: Can you make alt+tab to only one key?
Hallo,
try:
try:
Code: Select all
Tab::!Tab
Re: Can you make alt+tab to only one key?
Here is an attempt. You use q or tab, to either show the alt-tab menu or to tab to the next item, eventually it times out and then the window is activated.
As you normally can with the alt-tab menu, you can press Esc to quit, and Enter to immediately activate a window.
Use this script to confirm the window title/class for the alt-tab menu:
As you normally can with the alt-tab menu, you can press Esc to quit, and Enter to immediately activate a window.
Code: Select all
*q:: ;one-key alt-tab (tested on Windows 7)
$Tab::
vAltTabTickCount := A_TickCount
if WinActive("ahk_class TaskSwitcherWnd")
SendInput, {Tab}
else
{
SendInput, {Alt Down}{Tab}
SetTimer, AltTabSendTab, 50
}
return
AltTabSendTab:
if GetKeyState("q", "P")
|| GetKeyState("Tab", "P")
vAltTabTickCount := A_TickCount
if WinActive("ahk_class TaskSwitcherWnd")
&& !(A_TickCount - vAltTabTickCount > 400)
return
SendInput, {Alt Up}
SetTimer, AltTabSendTab, Off
return
Code: Select all
*w:: ;alt-tab menu - get details
;e.g. Windows 7: TaskSwitcherWnd|TaskSwitcherWnd
WinGetClass, vWinTitle, A
WinGetClass, vWinClass, A
MsgBox, % Clipboard := vWinTitle "|" vWinClass
return
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
Re: Can you make alt+tab to only one key?
Thank you everyone so much.it works as i want .
Re: Can you make alt+tab to only one key?
Could you guys help bind Alt+Tab to a middle click for me?
Re: Can you make alt+tab to only one key?
You could take my script above and make 3 changes:
- *q:: to *MButton::
- $Tab:: to ;$Tab::
- if GetKeyState("q", "P") to if GetKeyState("MButton", "P")
- *q:: to *MButton::
- $Tab:: to ;$Tab::
- if GetKeyState("q", "P") to if GetKeyState("MButton", "P")
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
Re: Can you make alt+tab to only one key?
Lwin::AltTabMenu ; would be exactly what i want, except whenever i try AltTabMenu to remap to any key, the script makes the ALT key act as if it 'sticks' (when physically it doesnt) which introduces all kinds of odd behaviors in o/s and apps ex. arrow back and forth move between web pages.
Re: Can you make alt+tab to only one key?
This is way late to the game, but here's my single key Alt-Tab Binding I've been using for Ages. It's bound to the ` key. Top left right below the ESC key. Works like a champ.
Code: Select all
`::
Send {Alt down}{tab}
Send {Alt up}
return
Re: Can you make alt+tab to only one key?
Created account just to thank you.arehm wrote: ↑07 Nov 2022, 15:19This is way late to the game, but here's my single key Alt-Tab Binding I've been using for Ages. It's bound to the ` key. Top left right below the ESC key. Works like a champ.
Code: Select all
`:: Send {Alt down}{tab} Send {Alt up} return
Thank You!! This works exactly as needed
Who is online
Users browsing this forum: No registered users and 69 guests