So ive made a script in which i put the code from the bottom comment to change the hotkey from ~ to F but i cant manage to get it working. How exactly do i run this script along with AutoHotkey or along with the .exe file provided by the author? If anyone can elaborate the process a bit would be greatly appreciated.
Please refer to: https://www.autohotkey.com/docs/Program.htm#run
1. Check that you have AutoHotKey installed 2. Check that your monitor is set to 1920x1080 2. Check that you use the mod "FtG UI Mod - More Readable Fonts and UI" (http://dragonage.nexusmods.com/mods/73) 3. Once you have edited the .ahk file to your liking you can then either compile it (to an EXE file) or just run the script from the taskbar
(Right-click the .ahk file and check the context menu for "Compile Script" or "Run Script" items)
The included EXE files for this file only use the ~ key (tilde).
For anyone using 1920x1200, here is the code I used to edit the AHK script (replace the "F" key with whatever key you need, some keys may need to be looked up for codes on the autohotkey website): --
-- This combines the helpful notes from a couple of comments below; it will click the "take all" button for you and return your mouse cursor to its previous location. Maybe this will save someone some time figuring it out like I did. For other resolutions, a little bit of math (dust off that basic algebra!) and you can get the appropriate coordinates. Hope that helps!
Hey, that's really nice and handy, thanks for the tips. Loading the last save may be an overkill in my opinion but it's a preference and an option. Customization is a power
I actually just used this more as an idea to write myself a custom take-all script. And it's really-really easy. So I suggest everyone who have problems with using this out-of-the-box (which is probably most of you) do the same. The tilde hotkey is kinda stupid too, as it is a console and many use it. As for me I used AHK too and what I needed to change is just tilde to my desired key (I just put "Q" in there, done, you can do any button though, some require special id-code, a table of which you can also find on ahk site) and the coordinates for my resolution (with a special easily-found ahk script it's not hard to find any coordinates). If anyone want a speed up for 1680x1050 they are 606, 750. In addition to that I hated how you need to manually start the script everytime you wanna play DA:O, so I just wrote a little simple .bat startup script too. You just create an empty notepad file, use it like a notepad and rename into something.bak file. In my case the contents of it look like this: --- @echo off start "" "game_directoryDragon Agebin_shipdaorigins.exe" -enabledeveloperconsole start "" "C:UsersusernameDesktoptake_all_da1.ahk" --- I was obviously lazy, because it can be written better, but for simplistic means it's ok. This starts both the script and the game with console functionality simultaneously. If you want to copy-paste, don't forget to change "game_directory" to your game path and the second path to your modified script.
Also I personally think it's better this way rather than auto-loot (I don't use it not because of compatibility issues). I always hated auto-loot mechanics in most games (mmos sometimes excluded), especially in RPGs, it breaks tons of immersion and control over your loot. I mean isn't it better to really look what you are getting? You are not just a telekinetic super-thief kleptomaniac-robot... A take-all hotkey button still helps though, as it serves you a balance between time and immersion imo.
p.s. btw is there any means in ahk to write it so it mouse-clicks and returns the cursor to where it was before the keypress?
neither of the apps work for me. However the console is bound to the tilde key so when I hit in the loot menu the console opens but doesn't take any itmes. maybe this conflict is the case? also I have the requirements
edit: I tried to replace the key for the console, but that didn't help
You can use autohotkey (google it) to do this for any screen size or game. You just need to use the tools it includes to find the screen position of where the button is at your resolution and then have it move the mouse there and click when you hit whichever key you assign. I went ahead and checked the coordinates for 1680x1050. Just make a file with notepad and name it something like "lootall.ahk" and put this in it. Then open the file every time you play dao (once you install autohotkey you should just have to double click the file to get it running silently in the background). Change "Tab" to any key you want to use. Hold the key for a few microseconds, because it only checks every 10 miliseconds for the key press.
Its good to see people still interested in this game and adding things here. I didn't need it myself, but it's handy to have this alternative available for people because of the compatibility issues with the auto loot mods out there, so I'm endorsing.
18 comments
1. Check that you have AutoHotKey installed
2. Check that your monitor is set to 1920x1080
2. Check that you use the mod "FtG UI Mod - More Readable Fonts and UI" (http://dragonage.nexusmods.com/mods/73)
3. Once you have edited the .ahk file to your liking you can then either compile it (to an EXE file) or just run the script from the taskbar
(Right-click the .ahk file and check the context menu for "Compile Script" or "Run Script" items)
The included EXE files for this file only use the ~ key (tilde).
have fun
--
; Register F key (F) to "take all"
F::
MouseGetPos , xpos, ypos
Click , left, 693,840
sleep 10
MouseMove %xpos%, %ypos%, 0
return
--
This combines the helpful notes from a couple of comments below; it will click the "take all" button for you and return your mouse cursor to its previous location. Maybe this will save someone some time figuring it out like I did. For other resolutions, a little bit of math (dust off that basic algebra!) and you can get the appropriate coordinates. Hope that helps!
does not work with lower resolution?
This gets the mouse position and then returns cursor there after clicking take all.
You can also use your ahk script to launch the game for you instead of using the batch file.
I use something like this -
I also have keybinds and a menu when clicking the tray icon, to start with -autoload or not. That switch automatically loads the latest save.
The tilde hotkey is kinda stupid too, as it is a console and many use it. As for me I used AHK too and what I needed to change is just tilde to my desired key (I just put "Q" in there, done, you can do any button though, some require special id-code, a table of which you can also find on ahk site) and the coordinates for my resolution (with a special easily-found ahk script it's not hard to find any coordinates). If anyone want a speed up for 1680x1050 they are 606, 750.
In addition to that I hated how you need to manually start the script everytime you wanna play DA:O, so I just wrote a little simple .bat startup script too. You just create an empty notepad file, use it like a notepad and rename into something.bak file. In my case the contents of it look like this:
---
@echo off
start "" "game_directoryDragon Agebin_shipdaorigins.exe" -enabledeveloperconsole
start "" "C:UsersusernameDesktoptake_all_da1.ahk"
---
I was obviously lazy, because it can be written better, but for simplistic means it's ok. This starts both the script and the game with console functionality simultaneously. If you want to copy-paste, don't forget to change "game_directory" to your game path and the second path to your modified script.
Also I personally think it's better this way rather than auto-loot (I don't use it not because of compatibility issues). I always hated auto-loot mechanics in most games (mmos sometimes excluded), especially in RPGs, it breaks tons of immersion and control over your loot. I mean isn't it better to really look what you are getting? You are not just a telekinetic super-thief kleptomaniac-robot... A take-all hotkey button still helps though, as it serves you a balance between time and immersion imo.
p.s. btw is there any means in ahk to write it so it mouse-clicks and returns the cursor to where it was before the keypress?
neither of the apps work for me. However the console is bound to the tilde key so when I hit in the loot menu the console opens but doesn't take any itmes. maybe this conflict is the case? also I have the requirements
edit: I tried to replace the key for the console, but that didn't help
Loop
{
Sleep, 10
If(GetKeyState("Tab"))
{
Click 632, 748
}
}
This is one of the DA2 features I actually liked.
Haven't tried it yet though.