I'm using two AHK scripts. One of them highlights whatever window my mouse hovers over. The other one clicks a certain area of the active window which corresponds to fold. (I realise it's a very crude method but I use Placemint to size my tables and this is the only way I could work out how to implement hotkey fold on iPoker.)
I would like to adapt the "Folding" script to not move the cursor when it clicks. I've been reading about using post message but have no idea how to implement it.
This is my folding script:
Code:
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
xbutton1::
{
Click 475, 470
Click 186,424
}
return
Any help would be much appreciated, thank you.