mouse setVirtualPosition and virtualPress
Posted: Sun Jan 18, 2015 3:38 am
Just a small annoyance I am having with the mouse functions.
I am trying to set the virtual mouse within ArcheAge and click something, my issue is if AA is currently the focused window, it is clicking and draging from the physical position to the virtual, causing it to partially rotate the screen and not actually end up clicking where I want it to.
If I tab out of AA then it works as I want it to. Just wondering if there is any way to avoid that, or will the physical mouse always cause an interference with virtual?
This is the part of my function, it still drags the screen even with the check for Pos.
I am trying to set the virtual mouse within ArcheAge and click something, my issue is if AA is currently the focused window, it is clicking and draging from the physical position to the virtual, causing it to partially rotate the screen and not actually end up clicking where I want it to.
If I tab out of AA then it works as I want it to. Just wondering if there is any way to avoid that, or will the physical mouse always cause an interference with virtual?
This is the part of my function, it still drags the screen even with the check for Pos.
Code: Select all
if mouseClickTimer <= 0 then
mouseClickTimer = 2
mouse.setVirtualPosition(win, 818, 996)
if mouse.getVirtualPosition() == 818 then
print("Pressed")
mouse.virtualPress(win, key.VK_LMOUSE)
end
end