Aller au contenu

Photo

Autohotkey Mouselook script (for PC users)


  • Veuillez vous connecter pour répondre
20 réponses à ce sujet

#1
ashwind

ashwind
  • Members
  • 3 149 messages

If you hate holding down your mouse to look around like myself, you can use the following script to toggle between mouselook mode and normal mode by right clicking once.

 

You will need to download autohotkey and install it yourself. Once you have that, simply save the following script to a text file with the .ahk extension. If you installed DAI in a different location, you will need to change that in the script. 

 

 

----------------------------------------------------------------------------------------------------------------------- Dont copy this line  :P

 

#persistent
#IfWinActive, Dragon Age: Inquisition ahk_class Dragon Age: Inquisition
AttackKey = 1 
MenuToggle = false
 
SetNumLockState off
 
IfWinNotExist, Dragon Age: Inquisition ahk_class Dragon Age: Inquisition
{
run, C:\Program Files (x86)\Origin Games\Dragon Age Inquisition\DragonAgeInquisition.exe
}
 
CoordMode, Mouse, Screen
SendMode, Input
 
NumLock UP::
Goto, ToggleMouseLook
return
 
RButton::
GetKeyState, state, NumLock, T
if state = U
SendInput {RButton DOWN}
return
 
RButton UP::
Goto, ToggleMouseLook
return
 
+Escape::
ExitApp
return
 
ToggleMouseLook:
GetKeyState, state, NumLock, T
if state = D
{
;SetCapsLockState off
SetNumLockState off
SendInput {RButton UP}
}
else
{
BlockInput, MouseMove
 
SendInput {RButton UP}
Sleep, 50
 
SetNumLockState on
MouseMove, % A_ScreenWidth/2, % (A_ScreenHeight/2)
SendInput {RButton Down}
 
BlockInput, MouseMoveOff
 
 
}
return
 

  • Ieldra et imarune aiment ceci

#2
Ieldra

Ieldra
  • Members
  • 25 174 messages

Thank you, very nice. I won't need it personally, but I'm pleased by any successful attempts to get past the limitations of the PC interface. We need more of these scripts.



#3
UniformGreyColor

UniformGreyColor
  • Members
  • 1 455 messages

Yes, thanks! Thisis an option that you should be able to select in-game.



#4
imarune

imarune
  • Members
  • 99 messages

Thanks ashwind! Are you looking a little further ?  Will you  implement "click and move" and "click and loot" ? Anyway, a good tutorial for me :)



#5
am0n

am0n
  • Members
  • 40 messages

Thanks ashwind! Are you looking a little further ?  Will you  implement "click and move" and "click and loot" ? Anyway, a good tutorial for me :)

 

Unfortunately, autohotkey won't fix that problem.  All this script does is trick the game into thinking you are holding the key down, even though you aren't.  Click to move and Click to loot would require a much more complex script that would need to determine a path and then interact, which is something the game itself needs to do, not a third party program.



#6
Han Master

Han Master
  • Members
  • 673 messages
Why don't they allow mods for DA 3, this would fix a lot of problems and we don't even need to wait for the patch.

#7
wowjason62606

wowjason62606
  • Members
  • 28 messages

Why don't they allow mods for DA 3, this would fix a lot of problems and we don't even need to wait for the patch.


mods are allowed. The problem is this is a brand new engine for the series and the mod makers just haven't got it done yet.

the devs have said multiple times it is 100% OK to mod the game!

#8
wowjason62606

wowjason62606
  • Members
  • 28 messages
Also great script for m+kb PC users

#9
imarune

imarune
  • Members
  • 99 messages

Unfortunately, autohotkey won't fix that problem.  All this script does is trick the game into thinking you are holding the key down, even though you aren't.  Click to move and Click to loot would require a much more complex script that would need to determine a path and then interact, which is something the game itself needs to do, not a third party program.

I'm not sure I'm understanding you; with the tac cam, it is possible to have auto attack. So, why is it impossible to bind this event to a macro?

 

Edit: Ok; I'm silly: ahk can't trigger in game events...



#10
Han Master

Han Master
  • Members
  • 673 messages

mods are allowed. The problem is this is a brand new engine for the series and the mod makers just haven't got it done yet.
the devs have said multiple times it is 100% OK to mod the game!


I heard they say no mods allow ?

#11
bmwcrazy

bmwcrazy
  • Members
  • 3 622 messages
I hope this won't get me banned in the multiplayer.

#12
Han Master

Han Master
  • Members
  • 673 messages

I'm not sure I'm understanding you; with the tac cam, it is possible to have auto attack. So, why is it impossible to bind this event to a macro?


The TAC cam for PC sucks. That's why we are demanding they allow us to zoom out more and other improvements for the PC Tac cam.

#13
wowjason62606

wowjason62606
  • Members
  • 28 messages

I heard they say no mods allow ?



not true darrah himself said 100% OK to mod

#14
imarune

imarune
  • Members
  • 99 messages

@Han Master:

Yes. But I don't want to wait one year. Let me remember: the witcher... Oh yes, a great patch which solves almost anything tedious in the game.. But  one year after the first release ?

 

So, doing the same thing for LMB (similar to RMB trick) in the ahk script  does'nt simulate auto attack?



#15
wowjason62606

wowjason62606
  • Members
  • 28 messages
@wowjason62606 @dragonage I don't think we will come after you. Multiplayer, definitely no.


quote name="Han Master" post="17829517" timestamp="1416599512"]

I heard they say no mods allow ?[/quote]

here is the answer from dev I asked if mods allowed. He replied. Sounds like for multilayer though it is not allowed. Single player ok

#16
wowjason62606

wowjason62606
  • Members
  • 28 messages
Check out @BioMarkDarrah's Tweet: https://twitter.com/...0506306561?s=09

actual link to tweet

#17
wowjason62606

wowjason62606
  • Members
  • 28 messages
Sorry for double post

so yes single player, no Multiplayer as far as mods go
  • bmwcrazy aime ceci

#18
bmwcrazy

bmwcrazy
  • Members
  • 3 622 messages

here is the answer from dev I asked if mods allowed. He replied. Sounds like for multilayer though it is not allowed. Single player ok


Thanks for sharing.

This is why I'd rather not play the multiplayer.

I want my God mode, sexy undies, and nudie mods.

#19
StingingVelvet

StingingVelvet
  • Members
  • 1 116 messages

Unfortunately, autohotkey won't fix that problem.  All this script does is trick the game into thinking you are holding the key down, even though you aren't.  Click to move and Click to loot would require a much more complex script that would need to determine a path and then interact, which is something the game itself needs to do, not a third party program.

 

Yeah, there isn't gonna be a mod or tweak that turns this into an Origins style game.



#20
ashwind

ashwind
  • Members
  • 3 149 messages

Thanks ashwind! Are you looking a little further ?  Will you  implement "click and move" and "click and loot" ? Anyway, a good tutorial for me :)

 

As others pointed out autohotkey is only a third party program that only allows us to map keyboard+mouse beyond the options that are provided by the game itself. It cant go beyond that and implement features that does not exists in game; click to move, click to loot, etc.



#21
Han Master

Han Master
  • Members
  • 673 messages
Excellent, can't wait for a fix to PC issues.