League of legends

0:00, 22 мая 2020
Без рубрики 'League of legends
0 22 мин.

Original Mission:

This is something that I’ve thrown together to help people out with their keyboard mappings. What’s a keyboard mapping? How many times a day do you accidentally hit cAPS lOCK BY MISTAKE AND END UP HAVING TO GO BAck and retype stuff? For me it was at least once an hour — in fact, I used to pop off the Caps Lock key so I wouldn’t hit it anymore, but I found something better in Windows XP, as well as 2000, Server 2003, Vista, Windows 7, Windows 8, and Windows 10. There’s a little used registry hack that allows you to remap keys across a keyboard. For me, this meant that I told my computer to treat Caps Lock as if it was a shift key, which it now does.

The more I started working with other keyboard, the more I wanted to have this ability to map other keys across my keyboard, but working with the Hex numbers and having too look up scan codes could be painful… hence SharpKeys.

SharpKeys is not responsible for any of the keyboard remapping functionality — it simply exposes a Registry key that controls how Windows remaps keys and has been available to us since Windows 2000. The list of keys that are included in the application are from most of the US-based keyboards that I’ve used over the years and is not guaranteed to be 100% complete for world keyboards.

Context-sensitive Hotkeys

The directives #IfWinActive/Exist and #If can be used to make a hotkey perform a different action (or none at all) depending on a specific condition. For example:

#IfWinActive, ahk_class Notepad
^a::MsgBox You pressed Ctrl-A while Notepad is active. Pressing Ctrl-A in any other window will pass the Ctrl-A keystroke to that window.
#c::MsgBox You pressed Win-C while Notepad is active.

#IfWinActive
#c::MsgBox You pressed Win-C while any window except Notepad is active.

#If MouseIsOver("ahk_class Shell_TrayWnd") ; For MouseIsOver, see .
WheelUp::Send {Volume_Up}     ; Wheel over taskbar: increase/decrease volume.
WheelDown::Send {Volume_Down} ;

Mouse

Advanced Buttons

XButton1 4th mouse button. Typically performs the same function as Browser_Back.
XButton2 5th mouse button. Typically performs the same function as Browser_Forward.

Wheel

WheelDown Turn the wheel downward (toward you).
WheelUp Turn the wheel upward (away from you).
WheelLeftWheelRight

: Scroll to the left or right.

Requires Windows Vista or later. These can be with some (but not all) mice which have a second wheel or support tilting the wheel to either side. In some cases, software bundled with the mouse must instead be used to control this feature. Regardless of the particular mouse, Send and Click can be used to scroll horizontally in programs which support it.

Inventory Customkeys for Warcraft 3

A great combination for the Warcraft 3 QWER Customkeys is the tool AutoHotkey for the inventory items. You can download AutoHotkey for Warcraft 3 here.

With AutoHotkey you can setup every item keys like you want, place new keys, swap keys and much more. bizeps A cool thing is that you can bind ALL of your gaming mouse buttons to Warcraft 3 commands, with AutoHotkey.

Another option for this is Warcraft 3 Warkeys.

Warcraft 3 QWER Hotkey usage and tips

Decide yourself which keys are the best for you! crown But…the most people use the QWER combination, it has many benefits: It is possible to reach a lot of different keys on the keyboard without moving the hand at all! This is important, because the actions have to be fast & blind! Moreover the keys 1,2,3,4 and so on are in a perfect place.

In Warcraft 3 I always save my army into groups (just an example)

1 Main Hero
2 Main / melee army + second Hero
3 Ranged army or casters
4 Siege units or air units
5 Tanks & Stuff

Extra Customkeys:

~ Select idle workers.
Tab Switch the units inside a selection.
Spacebar Jump with the viewport to the latest alert.
Backspace Select Townhall(s).

That’s it!!! Now you should test it directly in a game, and start learning to do everything with Hotkeys! crown bling

Everything all right? If you need help make a comment!

Enjoy!!!

Moving the Mouse Cursor via the Keyboard

The keyboard can be used to move the mouse cursor as demonstrated by the fully-featured Keyboard-To-Mouse script. Since that script offers smooth cursor movement, acceleration, and other features, it is the recommended approach if you plan to do a lot of mousing with the keyboard. By contrast, the following example is a simpler demonstration:

*#up::MouseMove, 0, -10, 0, R  ; Win+UpArrow hotkey => Move cursor upward
*#Down::MouseMove, 0, 10, 0, R  ; Win+DownArrow => Move cursor downward
*#Left::MouseMove, -10, 0, 0, R  ; Win+LeftArrow => Move cursor to the left
*#Right::MouseMove, 10, 0, 0, R  ; Win+RightArrow => Move cursor to the right

*; LeftWin + RightControl => Left-click (hold down Control/Shift to Control-Click or Shift-Click).
SendEvent {Blind}{LButton down}
KeyWait RCtrl  ; Prevents keyboard auto-repeat from repeating the mouse click.
SendEvent {Blind}{LButton up}
return

*; LeftWin + AppsKey => Right-click
SendEvent {Blind}{RButton down}
KeyWait AppsKey  ; Prevents keyboard auto-repeat from repeating the mouse click.
SendEvent {Blind}{RButton up}
return

Introduction and Simple Examples

Hotkeys are sometimes referred to as shortcut keys because of their ability to easily trigger an action (such as launching a program or keyboard macro). In the following example, the hotkey Win+N is configured to launch Notepad. The pound sign stands for the Win key, which is known as a modifier:

#n::
Run Notepad
return

In the final line above, serves to finish the hotkey. However, if a hotkey needs to execute only a single line, that line can be listed to the right of the double-colon. In other words, the is implicit:

#n::Run Notepad

To use more than one modifier with a hotkey, list them consecutively (the order does not matter). The following example uses to indicate Control+Alt+S:

^!s::
Send Sincerely,{enter}John Smith  ; This line sends keystrokes to the active (foremost) window.
return

Alt-Tab Hotkeys

Each Alt-Tab hotkey must be a combination of two keys, which is typically achieved via the ampersand symbol (&). In the following example, you would hold down the right Alt key and press J or K to navigate the alt-tab menu:

RAlt & j::AltTab
RAlt & k::ShiftAltTab

AltTab and ShiftAltTab are two of the special commands that are only recognized when used on the same line as a hotkey. Here is the complete list:

READ  Изменения rocketdock 1.3.5

AltTab: If the alt-tab menu is visible, move forward in it. Otherwise, display the menu (only if the hotkey is an «&» combination of two keys; otherwise, it does nothing).

ShiftAltTab: Same as above except move backward in the menu.

AltTabMenu: Show or hide the alt-tab menu.

AltTabAndMenu: If the alt-tab menu is visible, move forward in it. Otherwise, display the menu.

AltTabMenuDismiss: Close the Alt-tab menu.

To illustrate the above, the mouse wheel can be made into an entire substitute for Alt-tab. With the following hotkeys in effect, clicking the middle button displays the menu and turning the wheel navigates through it:

MButton::AltTabMenu
WheelDown::AltTab
WheelUp::ShiftAltTab

To cancel a hotkey-invoked Alt-tab menu without activating the selected window, use a hotkey such as the following. It might require adjustment depending on: 1) the means by which the alt-tab menu was originally displayed; and 2) whether the script has the keyboard hook installed.

LCtrl & CapsLock::AltTab
!MButton::  ; Middle mouse button. The ! prefix makes it fire while the Alt key is down (which it is if the alt-tab menu is visible).
if WinExist("ahk_class #32771")  ; Indicates that the alt-tab menu is present on the screen.
    Send !{Escape}{Alt up}
return

Currently, all special Alt-tab actions must be assigned directly to a hotkey as in the examples above (i.e. they cannot be used as though they were commands). They are not affected by #IfWin or #If.

Custom alt-tab actions can also be created via hotkeys. In the following example, you would press F1 to display the menu and advance forward in it. Then you would press F2 to activate the selected window (or press Escape to cancel):

*F1::Send {Alt down}{tab} ; Asterisk is required in this case.
!F2::Send {Alt up}  ; Release the Alt key, which activates the selected window.
~*Escape::
if WinExist("ahk_class #32771")
    Send {Escape}{Alt up}  ; Cancel the menu without activating the selected window.
return

The press(), keyDown(), and keyUp() Functions¶

To press these keys, call the function and pass it a string from the such as , , . See .

For example:

>>> pyautogui.press('enter')  # press the Enter key
>>> pyautogui.press('f1')     # press the F1 key
>>> pyautogui.press('left')   # press the left arrow key

The function is really just a wrapper for the and functions, which simulate pressing a key down and then releasing it up. These functions can be called by themselves. For example, to press the left arrow key three times while holding down the Shift key, call the following:

>>> pyautogui.keyDown('shift')  # hold down the shift key
>>> pyautogui.press('left')     # press the left arrow key
>>> pyautogui.press('left')     # press the left arrow key
>>> pyautogui.press('left')     # press the left arrow key
>>> pyautogui.keyUp('shift')    # release the shift key

To press multiple keys similar to what does, pass a list of strings to . For example:

>>> pyautogui.press()

Or you can set how many presses :

>>> pyautogui.press('left', presses=3)

Guide: How to install the Warcraft 3 Customkeys.txt?

Good news: Installing the Warcraft 3 QWER Hotkeys is really simple.guide how to activate the Warcraft QWER Customkeys.txt

Step 1: Download the Warcraft 3 Customkeys.txt (click on of the Download buttons on top).

Step 2: Copy the Customkeys.txt into your Warcraft 3 folder:

The new way: Just copy the Customkeys.txt file into: C:/Documents/Warcraft-III/CustomkeyBindings

The old way: Copy the Customkeys.txt file into: C:/Programs/Warcraft-III

Step 3: Check the box inside the Warcraft 3 > Settings > Gameplay Options.

After that, restart Warcraft 3 and test if your QWER Hotkeys work! bizeps bling

If they do not work, we can help you in the comment section. We will always try to answer fast & also other commenters can help you.

Как делаются бинды?

Это очень простой процесс, главное приучиться и перемещение камеры клавиатурой будет занимать меньше секунды. Чтобы задать бинд (забиндить) необходимо выбрать нужный отряд и нажать ctrl +любую цифру (например 1). Далее при нажатии на эту цифру вы сможете выбрать этот отряд, а если нажать дважды, то камера тут же окажется на этом отряде.

Если же возникает необходимость дополнить отряд, который игрок забиндил ранее, то он просто выбирает новую группу бойцов и ждет shift+ цифра отряда, ожидающего пополнения. В некоторых игровых ситуациях нужно наоборот разделить войска. В этом случае выбирается часть юнитов, и нажимается alt + новая цифровая клавиша. Теперь отряды будут независимы друг от друга.

Other Features

NumLock, CapsLock, and ScrollLock: These keys may be forced to be «AlwaysOn» or «AlwaysOff». For example: .

Overriding Explorer’s hotkeys: Windows’ built-in hotkeys such as Win+E (#e) and Win+R (#r) can be individually overridden simply by assigning them to an action in the script. See the override page for details.

Substitutes for Alt-Tab: Hotkeys can provide an alternate means of alt-tabbing. For example, the following two hotkeys allow you to alt-tab with your right hand:

RControl & RShift::AltTab  ; Hold down right-control then press right-shift repeatedly to move forward.
RControl & Enter::ShiftAltTab  ; Without even having to release right-control, press Enter to reverse direction.

For more details, see .

Additional FAQ and answers

Q: Can I remap a combination of keys to one key?
A: Sadly, no. SharpKeys only remaps whole keys rather than a modified key. For example, you can remap Ctrl or C but you can’t remap Ctrl+C to another key. That said, the Microsoft PowerToys tool does offer this functionality — you can learn more about their tool here: https://github.com/microsoft/PowerToys/releases

Q: Can I remap a mouse click to a new key?
A: Sorry, but no. The remapping technology that Windows uses to remap your keys isn’t aware of your mouse.

Q: Why can’t I remap my Fn key on my keyboard?
A: Some keys simply just never get to Windows. In the case of most Fn keys, they are interpretted by the hardware and never get passed onto the OS, no matter how they appear to work… if Windows doesn’t see the key, there’s no way for the key to be remapped by Windows.

Q: Type a Key shows 00_100 — can I remap this key?
A: 00_100 is a catch all code that Windows reports when a key is captured by hardware or some other driver so there’s no way to successfully remap that key, especially since multiple keys can return the same 00_100 code.

Q: Type a Key shows Unknown Key — can I remap this key?
A: Odds are this is just a key that has never been seen by SharpKeys before so it doesn’t know what to do with it. Open an issue on this site for the this project and someone from the Open Source community can look into adding it.

READ  Как сделать из kindle погодный домашний информер

Q: Type a Key shows a code that is E0_nnnn — can I remap this key?
A: If a scancode has 6 characters, then it is what is known as a triple byte scancode which is something that cannot be remapped by the Windows Registry. To remap a key like this, you’ll need an active remapper like AutoHotKeys or the app that came with the keyboard (e.g. Logitech’s Options) if available.

Q: I have a new PC that has a hang up button I want to remap — can I remap this key?
A: A lot of people ask for E0_1F65 but as the above question calls out, triple byte scancodes cannot be remapped with the Windows Registry. This applies to Lenovo, HP, Dell, and any other PC maker’s laptop or desktop.

Q: Type a Key doesn’t recognize the Alt key when I type it — how do I remap this key?
A: The Alt key scancode doesn’t make it through the system, to get to the Type a Key window. Basically, when you type Alt, Windows sends it to the system menu and activate it, rather than sending the scancode to the window. You can still remap this key, but you’ll see to select it from the list manually; you’ll find it in the grouping of keys marked as «Special».

Q: What is the craziest remapping you’ve ever done?
A: I think it’s my active remapping on Surface products, where some of the cursor navigation keys share space with F9-F12. Since I use F1-F8 for a lot for Office or Visual Studio, I don’t want to have to remember to hit Fn but I also don’t want to leave Fn-Lock on because I also need Home, End, PgUp, and PgDn as well. Soooooo, I leave Fn-Lock on and then remapped F9-F12 to Home/End/PgUp/PgDn and then Home/End/PgUp/PgDn to F9-F12. I also disabled Caps Lock and remapped the Right Alt to Left Windows because that’s just happy for a laptop. Since other people might make use of this, I put the SKL file in the depot here.

Joystick

Joy1 through Joy32: The buttons of the joystick. To help determine the button numbers for your joystick, use this test script. Note that hotkey prefix symbols such as ^ (control) and + (shift) are not supported (though GetKeyState can be used as a substitute). Also note that the pressing of joystick buttons always «passes through» to the active window if that window is designed to detect the pressing of joystick buttons.

Although the following Joystick control names cannot be used as hotkeys, they can be used with GetKeyState:JoyX, JoyY, and JoyZ: The X (horizontal), Y (vertical), and Z (altitude/depth) axes of the joystick.JoyR: The rudder or 4th axis of the joystick. JoyU and JoyV: The 5th and 6th axes of the joystick. JoyPOV: The point-of-view (hat) control.JoyName: The name of the joystick or its driver. JoyButtons: The number of buttons supported by the joystick (not always accurate). JoyAxes: The number of axes supported by the joystick.JoyInfo: Provides a string consisting of zero or more of the following letters to indicate the joystick’s capabilities: Z (has Z axis), R (has R axis), U (has U axis), V (has V axis), P (has POV control), D (the POV control has a limited number of discrete/distinct settings), C (the POV control is continuous/fine). Example string: ZRUVPD

Multiple Joysticks: If the computer has more than one joystick and you want to use one beyond the first, include the joystick number (max 16) in front of the control name. For example, 2joy1 is the second joystick’s first button.

Note: If you have trouble getting a script to recognize your joystick, one person reported needing to specify a joystick number other than 1 even though only a single joystick was present. It is unclear how this situation arises or whether it is normal, but experimenting with the joystick number in the joystick test script can help determine if this applies to your system.

See Also:Joystick remapping: methods of sending keystrokes and mouse clicks with a joystick.Joystick-To-Mouse script: using a joystick as a mouse.

Special Keys

If your keyboard or mouse has a key not listed above, you might still be able to make it a hotkey by using the following steps:

  1. Ensure that at least one script is running that is using the keyboard hook. You can tell if a script has the keyboard hook by opening its main window and selecting «View->Key history» from the menu bar.
  2. Double-click that script’s tray icon to open its main window.
  3. Press one of the «mystery keys» on your keyboard.
  4. Select the menu item «View->Key history»
  5. Scroll down to the bottom of the page. Somewhere near the bottom are the key-down and key-up events for your key. NOTE: Some keys do not generate events and thus will not be visible here. If this is the case, you cannot directly make that particular key a hotkey because your keyboard driver or hardware handles it at a level too low for AutoHotkey to access. For possible solutions, see further below.
  6. If your key is detectable, make a note of the 3-digit hexadecimal value in the second column of the list (e.g. 159).
  7. To define this key as a hotkey, follow this example:
    SC159:: ; Replace 159 with your key's value.
    MsgBox, %A_ThisHotkey% was pressed.
    return

Reverse direction: To remap some other key to become a «mystery key», follow this example:

; Replace 159 with the value discovered above. Replace FF (if needed) with the
; key's virtual key, which can be discovered in the first column of the Key History screen.
#c::Send {vkFFsc159} ; See  for more details.

Alternate solutions: If your key or mouse button is not detectable by the Key History screen, one of the following might help:

  1. Reconfigure the software that came with your mouse or keyboard (sometimes accessible in the Control Panel or Start Menu) to have the «mystery key» send some other keystroke. Such a keystroke can then be defined as a hotkey in a script. For example, if you configure a mystery key to send Control+F1, you can then indirectly make that key as a hotkey by using in a script.

  2. Try AHKHID. You can also try searching the forum for a keywords like , or .

  3. The following is a last resort and generally should be attempted only in desperation. This is because the chance of success is low and it may cause unwanted side-effects that are difficult to undo:
    Disable or remove any extra software that came with your keyboard or mouse or change its driver to a more standard one such as the one built into the OS. This assumes there is such a driver for your particular keyboard or mouse and that you can live without the features provided by its custom driver and software.

READ  Новые обои

Использование клавиш для приказов юнитам

Все приказы в игре имеют свою клавишу на клавиатуре. Изучение основных команд позволит очень быстро выбирать здания для постройки, заказывать войска, использовать способности юнитов и зданий.

Примеры команд

F2 + A  —  (по русски ф2 а клик) часто можно услышать от игроков старкрафта. При нажатии F2 выбираются все боевые единицы на карте. Клавиша A дает команду атаки (юниты будут двигаться к точке и атаковать всех врагов на пути). Обычно такой приказ игроки дают, когда уверены, что у них боевого лимита гораздо больше, чем у врага, и от контроля победа не зависит.

H — нажав клавишу h вы можете поставить войска на удержание позиции (холд). Очень часто используется, чтобы закрыть проход в стенке каким-нибудь юнитом.

Function Hotkeys [v1.1.20+]

One or more hotkeys can be assigned a function by simply defining it immediately after the hotkey label as in this example:

; Ctrl+Shift+O to open containing folder in Explorer.
; Ctrl+Shift+E to open folder with current file selected.
; Supports SciTE and Notepad++.
^+o::
^+e::
    editor_open_folder() {
        WinGetTitle, path, A
        if RegExMatch(path, "\*?\K(.*)\\+(?=  )", path)
            if (FileExist(path) && A_ThisHotkey = "^+e")
                Run explorer.exe /select`,"%path%"
            else
                Run explorer.exe "%path1%"
    }

: Hotstrings can also be defined this way. Multiple hotkeys or hotstrings can be stacked together to call the same function.

There must only be whitespace, comments or directives between the hotkey/hotstring labels or label and the function. Hotkey/hotstring labels defined this way are not visible to IsLabel(), Gosub or other commands; however, the ends at the first hotkey/hotstring even if it is assigned a function.

The main benefit of using a function is that local variables can be used, which avoids conflicts when two or more hotkeys use the same variable names for different purposes. It also encourages self-documenting hotkeys, like in the code above where the function name describes the hotkey.

The Hotkey command can also be used to assign a function or function object to a hotkey.

Что такое бинды?

В игре есть возможность назначать отрядам горячие клавиши — бинды. Они позволяют быстро переключаться между группами войск, что очень сильно облегчает контроль.

Назначение биндов является важным моментом не только для удобства игрока. Чтобы научиться максимально быстро отдавать команды юнитам следует с первых дней погружения в СтарКрафт приучать себя к биндам.

Необходимо понимать, что такой метод управления позволит повысить результаты и с легкостью побеждать соперников. Многие новички ошибочно думают, что в StarCraft 2 бинды необходимы только для улучшения контроля групп, но это не так. При помощи этого инструмента можно быстро переноситься к зданиям или любому участку карты.

Hotkey Tips and Remarks

Each numpad key can be made to launch two different hotkey subroutines depending on the state of NumLock. Alternatively, a numpad key can be made to launch the same subroutine regardless of the NumLock state. For example:

NumpadEnd::
Numpad1::
MsgBox, This hotkey is launched regardless of whether NumLock is on.
return

If the is used with a even once, it changes the behavior of that prefix key for all combinations. For example, in both of the below hotkeys, the active window will receive all right-clicks even though only one of the definitions contains a tilde:

~RButton & LButton::MsgBox You pressed the left mouse button while holding down the right.
RButton & WheelUp::MsgBox You turned the mouse wheel up while holding down the right button.

The Suspend command can temporarily disable all hotkeys except for ones you make exempt. For greater selectivity, use #IfWinActive/Exist.

By means of the Hotkey command, hotkeys can be created dynamically while the script is running. The Hotkey command can also modify, disable, or enable the script’s existing hotkeys individually.

Joystick hotkeys do not currently support modifier prefixes such as ^ (Control) and # (Win). However, you can use GetKeyState to mimic this effect as shown in the following example:

Joy2::
if not GetKeyState("Control")  ; Neither the left nor right Control key is down.
    return  ; i.e. Do nothing.
MsgBox You pressed the first joystick's second button while holding down the Control key.
return

There may be times when a hotkey should wait for its own modifier keys to be released before continuing. Consider the following example:

^!s::Send {Delete}

Pressing Control+Alt+S would cause the system to behave as though you pressed Control+Alt+Delete (due to the system’s aggressive detection of Ctrl+Alt+Delete). To work around this, use KeyWait to wait for the keys to be released; for example:

^!s::
KeyWait Control
KeyWait Alt
Send {Delete}
return

If a hotkey label like produces an error like «Invalid Hotkey», your system’s keyboard layout/language might not have the specified character («Z» in this case). Try using a different character that you know exists in your keyboard layout.

A hotkey label can be used as the target of a Gosub or Goto. For example: .

One common use for hotkeys is to start and stop a repeating action, such as a series of keystrokes or mouse clicks. For an example of this, see .

Finally, each script is quasi multi-threaded, which allows a new hotkey to be launched even when a previous hotkey subroutine is still running. For example, new hotkeys can be launched even while a MsgBox is being displayed by the current hotkey.

Оцените статью
Понравилась статья?
Комментарии (0)
Комментариев нет, будьте первым кто его оставит
Добавить комментарий
Ваш e-mail не будет опубликован. Обязательные поля помечены *