Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Disabling the Alt+Tab hotkey


  • Please log in to reply
6 replies to this topic
jamba
  • Members
  • 13 posts
  • Last active: Jan 02 2015 06:36 PM
  • Joined: 16 Jun 2014

Hello,

 

I need a script to disable windows hotkey "Alt+Tab" ingame.

 

Following script does not work for me anymore :/

 

#IfWinActive Counter-Strike: Global Offensive
{
LAlt & Tab::Send {Tab Down}
LAlt & Tab Up::Send {Tab Up}
}
 
Any help would be appreciated.


EpicnessCoding
  • Members
  • 217 posts
  • Last active: Feb 05 2016 12:48 AM
  • Joined: 29 Dec 2014

Try:

#IfWinActive Counter-Strike: Global Offensive
LAlt & Tab::

Send {Tab Down}
KeyWait, Tab
Send {Tab Up}

return

KeyWait waits for the user to release the key (Tab)


I make custom scripts for money!

Sorry my website is down. Contact me by adding me on Steam. My steam is EpicnessCoding.

Just add me on steam if you have to. (Hint: Search EpicnessCoding, my name changes a lot :D)


jamba
  • Members
  • 13 posts
  • Last active: Jan 02 2015 06:36 PM
  • Joined: 16 Jun 2014

Thanks for your help.

Seems to work in Windows, but not ingame. Tried windowed mode- same: not working ingame, but works in windows. :/

Any ideas?



Xtra
  • Members
  • 954 posts
  • Last active: Jul 23 2016 09:04 PM
  • Joined: 29 Sep 2013

I use this for games:

Alt and tab work fine when used separately.

!Tab::return			; Disable Alt Tab.

Make sure your game window name is same as (its possible it changed in a patch)

#IfWinActive Counter-Strike: Global Offensive



jamba
  • Members
  • 13 posts
  • Last active: Jan 02 2015 06:36 PM
  • Joined: 16 Jun 2014

Maybe I'm doing something wrong, but this works only on desktop when I dont put #IfWinActive Counter-Strike: Global Offensive [with it, script does not work at all]

I righclick on ahk, "Edit This Script", I put all the commands then save, righclick again and "Reload This Script", turn on my game.

Does not work ingame at all. :/

 

What Im doing wrong?

 

nwaqsp.jpg

 

 

edit:

I put those commands:

; Disable Alt+Tab
!Tab::Return

; Disable Windows Key + Tab
#Tab::Return

; Disable Left Windows Key
LWin::Return

and those works on desktop, chrome and other windows but not steam windows and ingame :/


Edited by jamba, 31 December 2014 - 02:39 PM.


Xtra
  • Members
  • 954 posts
  • Last active: Jul 23 2016 09:04 PM
  • Joined: 29 Sep 2013

You can try running your script as admin.

 

Right click on script icon and run as administrator.



jamba
  • Members
  • 13 posts
  • Last active: Jan 02 2015 06:36 PM
  • Joined: 16 Jun 2014

You can try running your script as admin.

 

Right click on script icon and run as administrator.

 

Thanks! It helped! 

Now, I have this commands:

#IfWinActive Counter-Strike: Global Offensive
{
; Disable Alt+Tab
!Tab::Return

; Disable Windows Key + Tab
#Tab::Return

; Disable Left Windows Key
LWin::Return
}

And it works almost perfectly.

The only glitch is when I press TAB, then Alt, and then I release TAB still holding Alt - it minimalizes the game.

But any other combinations are OK :D

 

I'm going to test some other commands and put results here.

 

Same things here:

#IfWinActive Counter-Strike: Global Offensive
{
LAlt & Tab::

Send {Tab Down}
KeyWait, Tab
Send {Tab Up}

return
} 

Okay, so it seems like the only problem was running as administrator.

Following commands work perfectly when ran as admin

#IfWinActive Counter-Strike: Global Offensive
{
LAlt & Tab::Send {Tab Down}
LAlt & Tab Up::Send {Tab Up}
}

Now, how to make Windows 7 autostart AHK with admin permissions?

I found the answer:

http://www.sevenforu...mpt-create.html


Edited by jamba, 02 January 2015 - 12:43 AM.