Author Topic: Mouse click commands do not work (Warhammer II)  (Read 859 times)

Harro

  • Newbie
  • *
  • Posts: 5
Mouse click commands do not work (Warhammer II)
« on: April 22, 2020, 02:53:36 PM »
I am trying to use mouse clicks in the game Total War: Warhammer II.
They do not work. Not with a spoken command or when i bind it to a key.
I always use this function in other games because of a handicap so i know how to set this up at least.

Anyone know a work around to make it work.

Thanks !  :)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Mouse click commands do not work (Warhammer II)
« Reply #1 on: April 22, 2020, 04:44:47 PM »
Is it the actual clicking that isn't working, or are you attempting to move the mouse cursor using VoiceAttack and that isn't working as expected?

Are you running VoiceAttack as administrator?

Harro

  • Newbie
  • *
  • Posts: 5
Re: Mouse click commands do not work (Warhammer II)
« Reply #2 on: April 23, 2020, 06:21:15 AM »
Just the left mouse button. When i press X - Click left mouse button. That's it. I am running it in administrator mode.
Just can't get it to work in this specific game. I am using it in many different games.
« Last Edit: April 23, 2020, 07:55:23 AM by Harro »

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Mouse click commands do not work (Warhammer II)
« Reply #3 on: April 23, 2020, 10:22:17 AM »
That seems to be an issue with this game (or game engine, perhaps), specifically, as this has previously been reported by another user.

I would not recommend using an old version of VoiceAttack, however you could try using AutoHotkey for the click, as suggested.

Harro

  • Newbie
  • *
  • Posts: 5
Re: Mouse click commands do not work (Warhammer II)
« Reply #4 on: April 23, 2020, 05:04:25 PM »
Not even autohot key will work in this freaking game :(
This script works in everything else.. Ah well thanks for the help.

; Recommended for performance
#NoEnv

; Better and more reliable
SendMode Input

; Press the right mouse button unless it's already pressed.
F2::
 if ( not GetKeyState("RButton" , "P") )
  Click down right
return

; Release the mouse button when the key is released.
F2 Up::Click up right

F1::
 if ( not GetKeyState("LButton" , "P") )
  Click down
return

F1 Up::Click up