Auto Hot key for toggling stealth in Middle Earth Shadow of Mordor - autohotkey

Currently there is no toggle stealth in middle earth shadow of Mordor. So I tried to use auto hot key for toggling. My little finger hurts a lot when i keep holding. So I found this auto hot key script from here. https://steamcommunity.com/app/241930/discussions/0/617319460876561937/?l=italian#c490125103631105925
But this code does not seem to be working. I have autohotkey installed and also verified that it runs the sample msg box saying escape on pressing escape key program. I also remapped stealth to LCtrl. This is the 1st time I am using autohotkey. I have placed this file (shadow_of_mordor_stealth.ahk) in the same folder as the game's exe file is in. Thanks.
Update : As pointed by Sir Teddy The First, running in admin mode now works. Thankyou all for your help.

Related

Highlighting code with mouse goes wild in Visual Studio Code

When I try to highlight some code in Visual Studio code it goes crazy and moves very fast. E.g. I want to select around one page and end up selecting 10 "pages" worth of code.
How can I make it act normaly when I want to highlight some code?
I used to have the same issue. A weird behavior with mouse selection. This was my solution path.
Check for hardware failures.
Unplug the keyboard dongle. If suddenly the mouse selection goes well. Do this steps.
Check for keys stucked βœ…
Uninstall the keyboard driver from Device Manager βœ…
Change the dongle USB port βœ…
And after all this steps, my cursor comes back to normality... for a while 😐.
Made the keyboard check with keyboard tester
Detect the key with the failure (Fortunately Insert in my case).
Download the app keytweak and disable that key.
This is a workaround if you don´t want to buy a new keyboard. I hope your failing key isn't any vocal 😬. If so... buy a new one.

Mouse and Keyboard not working in XWindows

I have an LFS v10 environment that is SystemV based. I'm in the process of improving it by adding XWindows to it. When I run startx, XWindows starts up, and I see the a few programs/Windows that display in the twm Window manager.
My problem is that the cursor does not move on the screen. I can see it in the dead center of the screen but it doesn't move as I move the mouse.
I also have a with the keyboard. It does appear that one of the programs/Windows are active by default at the time that XWindows starts, but an attempt to type some characters puts nothing in the text editor program.
The keyboard is a Logitech MK710 and the mouse is a Logitech M317.
Before I attempt to start XWindows, the keyboard works without problem while I'm working at the command line.
I've been activating different options when building the Linux kernel that some people are recommending but none are helping.
I got this working. For anyone interested. the solution was installing all 4 of the below drivers:
libevdev-1.9.1
Xorg Evdev Driver-2.10.6
libinput-1.16.1
Xorg Libinput-0.30.0
I then ran the X -configure command, then copied the created file to /etc/X11/xorg.conf, then ran startx and the mouse and keyboard began working.

Smart Caret in Eclipse stops working for some files

I am using Eclipse and I am coding java. I really like the "Smart Caret" option for the Home and End buttons since it allows you to go the start and end of a line but not past any whitespaces. Also the Home key will take you to the start of a comment, rather than the start of the line. And you can cycle through different positions with these keys. And this is how the editor was by default, from installation.
However one thing that has happened a few times now is that when I am writing code in the editor, this functionality just vanishes. It is seemingly random when it happens and the weirdest part, I think, is that it is file specific. So all of a sudden when I am writing, the Home and End keys start taking me to the very start and end of the line I am on. It is as if I am accidentally pressing some hotkey to disable these Smart Carets for the specific file.
It does not help to disable and re-enable the Smart Caret option in Preferences. And beyond that I do not really know what to do. Is this a bug? It is incredibly annoying when it happens. Being used to things working one way, then having them spontaneously change and then again having them back to the default when I am editing a different file.

External/USB controller integrated with Eclipse

I own an APC MINI USB/MIDI button pad and have been trying to get windows to more or less recognize it as a operating-system-wide input device. My primary use case is to trigger macros or shortcuts in Eclipse.
For example, instead of the current keybinding of ALT+] to clone a window I could press [btn_1] on the external controller to trigger the action. Another example is I could move the slider up and down changing the zoom on my text.
Ideally I'll be able to fire off any macro or shortcut just by pressing a button on the USB pad. If I could get it working at the OS level, I could see having a row of buttons start or focus frequently used applications. For example be able to open FireFox or press a button to navigate a tab to StackOverflow.com.
I supposed I COULD slap together a quick jar with a Midi library, listen for input from the device and map the "notes" (button presses) to a key combination/shortcut but I feel like there has got to be a way to have windows treat the pad as an input device just like a mouse or keyboard. Been all over the internet looking for solutions but most use cases deal with software engineered to handle midi input. Not afraid to write .bat files to cooperate with windows but still need some way to link the buttons on my board to said .bat files.
Any ideas or suggestions would be greatly appreciated!

Macro Keys not Detected AutoHotkey

I have just purchased the Steelseries apex gaming keyboard and rival mouse. Unfortunately, each of these products has different software for macros and keyboard lighting, both of which are mediocre at most.
Instead of having 2 processes running in the background and having to use 2 crappy programs to write my macros, I have decided to use AutoHotkey for my macros, some of which I plan on making quite complex. The mouse was no problem in AutoHotkeys, with the two side buttons using XButton1 and XButton2, however no matter what I do, I can't detect my keyboard macro keys (M1 to M12 and MX1 to MX10).
Using a keyboard hook doesn't detect any keys, and looking online I can't find how to reference these keys either. I'm not even sure windows sees them, as when I try to input them into the shortcut key field in a normal shortcut they do nothing. So my questions are:
What is the name for the macro keys on my keyboard in AutoHotkey?
Is there any way to work around this problem without having to use the Steelseries Engine?
If I can't access them normally, is there a way to reassign them without external software?
(Optional) Is there any way to adjust the lighting on the keyboard and mouse without the Steelseries software as well?
Btw I'm using Windows 8 and here are the links to the mouse and keyboard. Thank you in advance.
You can get the name for special keys that are not listed in AutoHotkey documentation by following steps here.
Some notes and explanations:
You can use that script for step 1:
#InstallKeybdHook
Sleep, 99999999999999999999
When you run it, check if keyboard hook is active by:
press here:
then here:
and if active, you should see something like here:
In the step 6 the hex value column is here:
If that is not working for you, try Alternate solutions in the link that I provided before.