´???`??????????`~~~==……???¸¸¸¸¸[[[AHK SCRIPTS FOR THE FUN]]]¸¸¸¸¸???……==~~~`??????????´???` ---------------------------------------------------------------------------------------------------------------------------------------------------------------- ----- Only things to know to script this in 5 mn: ----- ! equal alt key ----- ^ equal control key ----- + equal shift key ----- ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Hello i have been working too on a bit of ahk scripting for the game, its usefull theses three scripts made by me i m going post here:
1. Stop game middle mouse button to zoom in and out while using panning button on mousewheel
2.Reset wheel setting i like without need to check if it is on default, press the key to reset it automatically without bugs or middle mouse button or light deviation
3.Reset interface position to my choice before play after a save loaded to avoid replace every element that can change through update or something else, but that change too so u still need to find yourself how record coordinate position with your mouse between click and eventually something else............
You can activate all of that one after one or togheter in game and later(usefull too )
First install ahk for 64 OR 32 bits (not LE version) Second Create new files right clicking on explorer and choose -> new -> autohotkey script -> Third Do it as many as necessary ------- ||1||disableWheelNotWithCtrl.AHK ------- SetTitleMatchMode 3
------- ||3||SetPillarsInterface.AHK(maybe need adjustments periodically...) with txt file at same location named coords.tx like this: coorda,coordb(,eventually action) --------> action means up or down the key, means keep pressing mouse button until next up after down at different or same location... Ex: 782,982, 1,1,0 ------- SetTitleMatchMode 3
^!p:: WinActivate, Pillars of Eternity WinMaximize, Pillars of Eternity WinSet, AlwaysOnTop, ON, Pillars of Eternity WinShow, Pillars of Eternity return
#IfWinActive Pillars of Eternity ^<::ExitApp +w::prepareinterface()
------- ||4|| ------- Every of my ahk header look like this: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
PLUS PYTHON SCRIPT LO LAUNCH EVERYTHINGS SAME TIME WITH THE GAME ONLY BECAUSE SHIFT+> close everything REPLACE SOME PATHS INSIDE TO GET IT WORKING WITH YOUR INSTALL PATHS #! /usr/bin/env python # -*- coding: utf-8 -*- from subprocess import Popen from os import system #os.chdir(default_path) ahkpath="MyDocuments/AHK/apps/poe/disableWheelNotWithCtrl.AHK" poepath="steam/SteamApps/common/Pillars of Eternity/PillarsOfEternity.exe"
IEMOD PROBLEM WITH THE LAUNCHER(Not with precompiled dll that are no more provided,only the launcher in main dl page for the latest update.) Hello just an update to have the python launcher working without repetitive crash of the game due to use of the patcher made by iemod author.
To not crash the game after using the launcher, all works well but after few seconds of combat the game crash suddenly with full of logs, tried to append path of launcher folder and full path of the launcher(instead of game path else no iemod started) but the crash remains anyway, you just have to paste the precompiled patched dll of the assembly yourself OR stop use python part and launch ahk script and launcher separatly.
Been trying to tweak the script a bit and could use your help.
I dont even use panning so I have edge pan set. I want to put middle mouse button for highlight and double click pause And leave my r mouse for the double click scout mode.
When I swap out middle in the script for highlight scout stops working though. I wanted to do the change for highlight because selection circles flicker with the sleep in there and highlights show up for a a brief amount of time each time I go into scout mode.
What do I need to do to tweak this in the way i want?
So this works for me atleast, provided I understood correctly that you wanted: middle mouse button for both highlight interactables (when held down) and pause (when double click) - and then right mouse button (double click) to enter scouting mode.
; ; ; *********************** ; <SCRIPT START> ; *********************** ; ~$RButton:: KeyWait, RButton KeyWait, RButton, D, T0.12 If ErrorLevel = 1 Return Else Send z ;CHANGE z TO YOUR KEY FOR TOGGLE SCOUTING return ; ; ; ~$MButton:: While GetKeyState("MButton","p"){ Send v;CHANGE v TO YOUR KEY FOR HIGHLIGHT INTERACTABLES Sleep 5 } ; KeyWait, MButton KeyWait, MButton, D, T0.12 If ErrorLevel = 1 Return Else Send x ;CHANGE x TO YOUR KEY FOR PAUSE. (If you use the default Spacebar I think it is just written as Space) return ; ; *********************** ;<END SCRIPT> ; ***********************
Observe that by putting pause and highlight on the same button (middle mouse) it may be difficult to find a key that works well for a single click with the middle mouse button if you intended to maintain the middle mouse button original functionality as well. It would need to be some kind of non action key I think (aka not toggle formation or anything that commands your charachter(s) to move around or take active action. Also any command that opens menus in the interface would work not so good I think). Keeping the default "pan camera" should work ok.
(I dont know any way to avoid slight flickering when you want to have more than one function together with highlight interactables on the same mouse button. Sorry. The slight flickering doesn´t bother me all that much so I never gave it much thought before your comment.)
Thank you for your kind comment. Yes I discovered that it is much more comfortable to play the game without having to use the left hand. Then I can just really lay back deep and relax with my chair in flightmode With this script you don´t have to use left hand almost at all.. except when quicksave/quickload and if not want to click with mouse to open the inventory/journal/charsheet etc.
For your mouse, if I may suggest or recommend a real bargain for you: get a Trust MaxTrack for like 10-15 Euro. It is a really cheap but great mouse that has two extra side buttons aswell as a 6th non-customisable button that only purpose is to quickly be able to change the mouse speed within an application (great for gaming). I have had more expensive mouses like Razor and Logitech before and I think the cheap Trust MaxTrack is just as good for playing any game. And it costs like 5 times less.
11 comments
----------------------------------------------------------------------------------------------------------------------------------------------------------------
----- Only things to know to script this in 5 mn: ----- ! equal alt key ----- ^ equal control key ----- + equal shift key -----
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Hello i have been working too on a bit of ahk scripting for the game, its usefull theses three scripts made by me i m going post here:
1. Stop game middle mouse button to zoom in and out while using panning button on mousewheel
2.Reset wheel setting i like without need to check if it is on default, press the key to reset it automatically without bugs or middle mouse button or light deviation
3.Reset interface position to my choice before play after a save loaded to avoid replace every element that can change through update or something else, but that change too so u still need to find yourself how record coordinate position with your mouse between click and eventually something else............
You can activate all of that one after one or togheter in game and later(usefull too )
First install ahk for 64 OR 32 bits (not LE version)
Second Create new files right clicking on explorer and choose -> new -> autohotkey script ->
Third Do it as many as necessary
-------
||1||disableWheelNotWithCtrl.AHK
-------
SetTitleMatchMode 3
#IfWinActive Pillars of Eternity
WheelUp::Send, {WheelDown}
WheelDown::Send, {WheelUp}
^WheelUp::Send, {WheelUp}
^WheelDown::Send, {WheelDown}
+<::Run, SetNormalWheelOfPillards.AHK
^<::exitthis()
exitthis()
{
Process, close, PillarsOfEternity.exe
ExitApp
}
-------
||2||SetNormalWheelOfPillards.AHK
-------
Send, {WheelUp}
sleep,500
Send, {WheelUp}
sleep,500
Send, {WheelUp}
sleep,500
Send, {WheelUp}
sleep,500
ExitApp
-------
||3||SetPillarsInterface.AHK(maybe need adjustments periodically...) with txt file at same location named coords.tx like this:
coorda,coordb(,eventually action) --------> action means up or down the key, means keep pressing mouse button until next up after down at different or same location...
Ex:
782,982,
1,1,0
-------
SetTitleMatchMode 3
^!p::
WinActivate, Pillars of Eternity
WinMaximize, Pillars of Eternity
WinSet, AlwaysOnTop, ON, Pillars of Eternity
WinShow, Pillars of Eternity
return
#IfWinActive Pillars of Eternity
^<::ExitApp
+w::prepareinterface()
prepareinterface()
{
Click 2
delim2=,
;#WinActivateForce
;SetTitleMatchMode 2
Loop, read, coords.txt
{
;if A_Index =2
;{
;WinSet, AlwaysOnTop, On,SpringLobby
;CoordMode, Mouse, Relative
;}
;if A_Index >1
;{
;WinActivate,SpringLobby
;}
;msgbox,%A_Index%
;Msgbox,%Words1% // %Words2%
StringSplit, Words, A_LoopReadLine, %delim2%
;Msgbox,%Words1% %Words2%
x=%Words1%
y=%Words2%
action=%Words3%
;MouseMove, %x%, %y%
;if A_Index =1
;{
;CoordMode, Mouse, Screen
;}
;MouseClick, left, %x%, %y%
if (%action% = 0)
{
MouseClickDrag, L, 1007,954,480,835
}
else
{
if (%x% =0)
{}
else
{
MouseMove, %x%, %y%,50
}
if (%action%=down || %action%= )
{
Click down
;Send, {LButton Down}
;KeyWait, Up
}
if (%action%=up || %action%= )
{
Click up
;Send, {LButton Up}
}
;Msgbox,a%x%a a%y%a
;MouseClick, left, 100, 100
;MouseClick, L, x, y
}
Sleep, 500
}
;WinSet, AlwaysOnTop, Off,SpringLobby
;ExitApp
Return
}
-------
||4||
-------
Every of my ahk header look like this:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
PLUS PYTHON SCRIPT LO LAUNCH EVERYTHINGS SAME TIME WITH THE GAME ONLY BECAUSE SHIFT+> close everything
REPLACE SOME PATHS INSIDE TO GET IT WORKING WITH YOUR INSTALL PATHS
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from subprocess import Popen
from os import system
#os.chdir(default_path)
ahkpath="MyDocuments/AHK/apps/poe/disableWheelNotWithCtrl.AHK"
poepath="steam/SteamApps/common/Pillars of Eternity/PillarsOfEternity.exe"
tokill=Popen([ahkpath], shell=True,stdin=None, stdout=None, stderr=None, close_fds=True)
poe=Popen([poepath],cwd="steam/SteamApps/common/Pillars of Eternity/", shell=True,stdin=None, stdout=None, stderr=None, close_fds=True)
poe.wait()
#wait game exition to kill everything.
tokill.terminate()
tokill.kill()
system('taskkill /f /t /pid ' + str(tokill.pid))
Hello just an update to have the python launcher working without repetitive crash of the game due to use of the patcher made by iemod author.
To not crash the game after using the launcher, all works well but after few seconds of combat the game crash suddenly with full of logs, tried to append path of launcher folder and full path of the launcher(instead of game path else no iemod started) but the crash remains anyway, you just have to paste the precompiled patched dll of the assembly yourself OR stop use python part and launch ahk script and launcher separatly.
I dont even use panning so I have edge pan set.
I want to put middle mouse button for highlight and double click pause
And leave my r mouse for the double click scout mode.
When I swap out middle in the script for highlight scout stops working though.
I wanted to do the change for highlight because selection circles flicker with the sleep in there and highlights show up for a a brief amount of time each time I go into scout mode.
What do I need to do to tweak this in the way i want?
;
;
; ***********************
; <SCRIPT START>
; ***********************
;
~$RButton::
KeyWait, RButton
KeyWait, RButton, D, T0.12
If ErrorLevel = 1
Return
Else
Send z ;CHANGE z TO YOUR KEY FOR TOGGLE SCOUTING
return
;
;
;
~$MButton::
While GetKeyState("MButton","p"){
Send v;CHANGE v TO YOUR KEY FOR HIGHLIGHT INTERACTABLES
Sleep 5
}
;
KeyWait, MButton
KeyWait, MButton, D, T0.12
If ErrorLevel = 1
Return
Else
Send x ;CHANGE x TO YOUR KEY FOR PAUSE. (If you use the default Spacebar I think it is just written as Space)
return
;
; ***********************
;<END SCRIPT>
; ***********************
Observe that by putting pause and highlight on the same button (middle mouse) it may be difficult to find a key that works well for a single click with the middle mouse button if you intended to maintain the middle mouse button original functionality as well. It would need to be some kind of non action key I think (aka not toggle formation or anything that commands your charachter(s) to move around or take active action. Also any command that opens menus in the interface would work not so good I think). Keeping the default "pan camera" should work ok.
(I dont know any way to avoid slight flickering when you want to have more than one function together with highlight interactables on the same mouse button. Sorry. The slight flickering doesn´t bother me all that much so I never gave it much thought before your comment.)
and I am getting so much use out of this script since I always use a scout character before I send in my party.
this is going to be perfect for my next playthrough of Divnity Original Sin as well
Thanks.
With this script you don´t have to use left hand almost at all.. except when quicksave/quickload and if not want to click with mouse to open the inventory/journal/charsheet etc.
For your mouse, if I may suggest or recommend a real bargain for you: get a Trust MaxTrack for like 10-15 Euro. It is a really cheap but great mouse that has two extra side buttons aswell as a 6th non-customisable button that only purpose is to quickly be able to change the mouse speed within an application (great for gaming). I have had more expensive mouses like Razor and Logitech before and I think the cheap Trust MaxTrack is just as good for playing any game. And it costs like 5 times less.