Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#IfWinActive Mount&Blade ;This script works only if Mount&Blade window is active.
$m::
Loop
{
if not GetKeyState("m", "P")
break
Click
Sleep, 10
}
$n::
Loop
{
if not GetKeyState("n", "P")
break
Send {LControl down}
Sleep, 10
Send {x down}
Sleep, 10
Send {x up}
Sleep, 10
Send {x down}
Sleep, 10
Send {x up}
Sleep, 10
Send {x down}
Sleep, 10
Send {x up}
Sleep, 10
Send {LControl up}
}
return
If I am reading this right, I just run the script, then hold "n" in game to run it right?
Use the following instead. Press n to start. Press n to stop.
This is a bad way of going about things though. If you want to change troops or companions just edit them with Morghs Editor. If you want to change the player character just export, edit, and import. If you need a stack of top tier troops in your party just use a save editor and make it happen. Hell, even using CheatEngine to just edit the values in memory would be faster than this.
Edit: I just tried to use this and it didn't work. I am assuming you used it before you posted it, so I must be doing something wrong, but I don't know what. I am making sure to run the script before I try to use it in-game, I then go to Lethaldarin's skill page and press "n" and nothing happens. I can still press Ctrl-X all day, but it gets old.
Edit2: For reference, I did make a very simple script that just types "My first script" when I press Ctrl + J in notepad or something and it works fine, so I understand that much of it at least.
Is the game running as admin for some reason? If it is then your AHK script also needs to be running as admin in order to interact with the game process.
As far as dealing with corrupt saves go just do what I do for all of my games. Copy your game's save folder to Dropbox. Delete the save folder from its original location. Create a symbolic link where the save folder originally was that points to its new location within your Dropbox folder. Once you've done that every time you save it will be automatically uploaded to Dropbox. Dropbox keeps a backup of file versions for 30 days. If a save file gets corrupted just revert to the most recent non-corrupt version. If you play with realistic mode you'll likely have saves made every few minutes during normal play.
Edit: I am curious as to how they would be approached differently, though.
Edit2: So, apparently, the admin thing was what was wrong. I had put the game into admin mode earlier when I was using a different program because that was one of the suggested solutions (along with the program), but that didn't work. It has been in admin mode since then and I went in and took it off and now the script works, thanks a lot.
Thank you to Bearded for the script as well.
Good man. Thank you for that.
I've been using the same script for a long while now. I came back to the game recently having changed nothing and I couldn't get the script to work. Turns out it was exactly what you mentioned. Not sure why it worked before.