Jump to content

Disabling Alt-Enter


AdirondaxRex

Recommended Posts

Unfortunately, no as it's a Windows shortcut rather than a SWTOR shortcut (same as CTRL+ALT+DEL). I've had a google for you but it doesn't look like it's one you can disable.

 

There is an option to disable hotkeys, but that just disables the Windows key ones (Like Windows key + e to open windows explorer).

 

Sorry!

Link to comment
Share on other sites

  • 1 month later...

Disabling Alt+Enter & Alt+ESC

 

EDIT: July 13th, 2012 - updated links/basic info

PLEASE NOTE: This does not modify the SWTOR game client or any of its dependencies, nor does it interact with anything related to the client (beyond making a shortcut to the launcher, which obviously is permitted). The interaction which occurs is entirely on a system-wide level (sort of like using ventrilos; therefore not against the EULA/ToS)

 

This is a guide to disable Alt+enter AND Alt+esc

Why is this important?

Well, I personally set Alt+1,+2,+3,+e,+r, etc binds.

In PvP situations, it's really annoying to mistakenly press Alt+Enter or Alt+Esc mid-fight. You'll almost always end up dead because of it.

 

On to the solution:

 

You need to write (copy and paste code I provide) a simple script (to prevent the key combo from being executed) and bat file (to launch both the script and SWTOR launcher with a single shortcut)

 

As a prerequisite, please ensure you TURN OFF "hide extensions for known file tiles" in your Folder Options

-Method: Open any folder --> Press "Organize" --> "Folder and search options" --> Press the "View" tab --> Un-check "Hide extensions for known file types" --> Press "Apply"

 

 

1. Download and install AutoHotkey

http://l.autohotkey.net/AutoHotkey_L_Install.exe/

-This is AutoHotkey_L, which is a "custom build of AutoHotkey maintained by Lexikos which features objects, classes, Unicode and other enhancements for intermediate programmers."

-You may need this specific version. If you are wary of the url, go to http://www.autohotkey.com/download/. You will see that pressing the "AutoHotkey_L" takes you to the same exact place.

 

2. For Windows 7/Vista users: Run AutoHotkey as administrator

-Go to your AutoHotkey install directory.

-Set 'AutoHotkey.exe' to run as an Administrator

-Method: Right click 'AutoHotkey.exe' --> 'Properties' --> 'Compatability' --> Checkbox 'Run as an Administrator' --> 'Apply'

 

3. Create an AutoHotkey script

-Right click your desktop --> 'New' --> 'AutoHotkey Script'

 

4. Rename the script as desired (DO NOT change the extension, which is '.ahk')

-Click your AutoHotkey script, and either press "F2" or Right Click --> Rename

-I called mine 'DisableAltEnterESC.ahk'

-Remember that you'll only see the '.ahk' part if you have TURNED OFF 'hide extensions for known file types"

 

5. Open the script (the file you just made) with notepad:

-Right click the script file ---> Edit Script

or

-IF that option is not there: Right click the script file ---> Open With --> Notepad

or

-IF both of those options don't show up: Right click the script file --> 'Properties' --> 'Change' for 'Opens with:' to 'Notepad'

 

6. Erase everything

 

7. Paste the following code:

#NoEnv

#Warn

SendMode Input

SetWorkingDir %A_ScriptDir%

#SingleInstance ignore

 

*!Enter::return

*!Escape::return

!Enter::return

!Escape::return

 

8. Save the file

 

9. Run the script

-If you have difficulty, try right clicking the script file and pressing 'Run Script'

or

-If you had to change the "Opens With" to notepad, change it back to AutoHotkey,exe

 

10. Combine the AutoHotkey script & the SWTOR launcher into 1 shortcut

10-1. Create a text document on your desktop and open it with Notepad.

-Method: Right click Desktop --> "New" --> "Text Document"

 

10-2. Writing the code

-Depending on where you installed SWTOR AND where you plan to have your '.ahk' script, [if different from mine] this part MUST BE MODIFIED accordingly:

-I installed SWTOR (the game) to C:\Games\SWTOR

-I placed my AutoHotkey Script, named 'DisableAltEnterESC.ahk' into the C:\Games\SWTOR folder

 

-With these two conditions, this is what was pasted into the text file:

@echo off

rem AutoHotkey Script

cd C:\Games\SWTOR

start DisableAltEnterESC.ahk

rem Star Wars: The Old Republic

cd C:\Games\SWTOR

start launcher.exe

exit

 

10-3. Save the file.

 

10-4. Rename the file extension to .bat & rename the file as desired

-You MUST put '.bat' at the end (REPLACES the '.txt' extension)

-I named my file DoubleStart.bat

-Method: Left click the txt file and press "F2", or Right click --> Rename

 

10-5. Move your .bat file as desired

-I put mine in my SWTOR folder

C:\Games\SWTOR

 

10-6. Create a shortcut to the .bat file

-Method: Right click Desktop --> 'New' --> 'Shortcut'

-My '.bat' file is 'DoubleStart.bat' and it's my the SWTOR folder (C:\Games\SWTOR\), therefore, I put

C:\Games\SWTOR\DoubleStart.bat

 

10-7. For Windows 7/Vista users: Set the shortcut to Run as administrator

-Method: Right Click the shortcut --> [stay on the 'Shortcut' tab] Click 'Advanced' --> Checkbox 'Run as administrator' --> Press 'Ok' --> Press 'Apply'

 

10-8. Give the shortcut the SWTOR icon

-Method: Right Click the shortcut --> [stay on the 'Shortcut' tab] Click 'Change Icon' --> Browse to your 'SWTOR' Game Folder --> Doubleclick 'launcher.exe' --> Select the SWTOR icon and press 'Ok' --> Press 'Apply'

 

10-9. Rename the shortcut as desired (there is no extension for a shortcut)

-I renamed mine to 'Star Wars - The Old Republic' (which is the default SWTOR shortcut name)

 

Now you have a shortcut which will start both your script and your launcher, while still appearing to be the same as the default shortcut.

You can now set Alt+1,+2,+3, etc binds without the fear of accidentally pressing alt+enter or alt+esc & experiencing undesirable effects.

Edited by Pryath
Link to comment
Share on other sites

×
×
  • Create New...