Hi there, I'm working on a background macro for skills (all skills), but I'm having a problem when trying to make it work for SH or healing spells.
The problem is with this: ControlClick, x300 y230,ahk_id %id%,,left,2,d
This should double click in the 300,230 coords (horse slot) to unequip it. It sends the left click (if I close the equip window will start walking in that direction) but it doesn't sends double click for unequip.
Here is the code I've done so far for skills (the code still continues with a few other functions, but they are not related to my problem):
So anyone has any ideas how to make it double-ControlClick left to unequip the horse?
The problem is with this: ControlClick, x300 y230,ahk_id %id%,,left,2,d
This should double click in the 300,230 coords (horse slot) to unequip it. It sends the left click (if I close the equip window will start walking in that direction) but it doesn't sends double click for unequip.
Here is the code I've done so far for skills (the code still continues with a few other functions, but they are not related to my problem):
Code:
start:
{
WinGet,id, ID, %winname%
Loop
{
if run = 0
{
break
}
else
{
If skillstate = 1
{
If sshstate = 1
{
settimer, hr, %time2%
hr:
Click 300, 230, 2
sleep 750
ControlClick, x800 y50,ahk_id %id%,,right,3,na
sleep 750
{
settimer, autoskill, %time2%
{
settimer, skill, 1000
{
settimer, sit, 1000
{
settimer, med, %time2%
return
}
return
}
return
}
return
}
}
else
{
settimer, autoskill, %TIME2%
autoskill:
ControlClick, x512 y384,ahk_id %id%,,right,,na
{
settimer, skill, 1000
skill:
ControlClick, x110 y760,ahk_id %id%,,right,,na
{
settimer, med, 3000
med:
ControlClick, x150 y760,ahk_id %id%,,right,,na
{
settimer, sit, 1000
sit:
ControlClick, x190 y760,ahk_id %id%,,right,,na
return
}
return
}
return
}
}
}