Posted May 13, 2019
this will simulate mouseclicks on keypress (1,2+3) without moving the mouse - so it's new hotkey-functionallity for
- open weapon-list (key '1')
- open spell-list (key '2')
- open potion-list (key '3')
I assume you know how to use AHK (Autohotkey)
the code:
=================================================
SendMode Play
#IfWinActive, ahk_exe div.exe
{
;open weapon-list
1::
MouseGetPos, orig_x, orig_y
Click, 875, 992
MouseMove, orig_x, orig_y
return
;open spell-list
2::
MouseGetPos, orig_x, orig_y
Click, 927, 992
MouseMove, orig_x, orig_y
return
;open potion-list
3::
MouseGetPos, orig_x, orig_y
Click, 976, 992
MouseMove, orig_x, orig_y
return
}
===============================================
this is working for screen-resolution 1680x1050
for other resolutions, you'll have to change the values for the 'Click'-commands accordingly.
here are some values for different screen-resolutions (tell me if yours is missing):
1920x1200:
Click, 990, 1140
Click, 1040, 1140
Click, 1090, 1140
1920x1080:
Click, 990, 1020
Click, 1040, 1020
Click, 1090, 1020
1600x1200:
Click, 830, 1140
Click, 880, 1140
Click, 930, 1140
1600x900:
Click, 830, 840
Click, 880, 840
Click, 930, 840
1280x1024:
Click, 670, 960
Click, 720, 960
Click, 770, 960
1440x900:
Click, 750, 840
Click, 800, 840
Click, 850, 840
1280x960:
Click, 675, 900
Click, 725, 900
Click, 775, 900
1366x768:
Click, 720, 700
Click, 770, 700
Click, 820, 700
800x600:
Click, 430, 540
Click, 480, 540
Click, 530,540
cheers
- open weapon-list (key '1')
- open spell-list (key '2')
- open potion-list (key '3')
I assume you know how to use AHK (Autohotkey)
the code:
=================================================
SendMode Play
#IfWinActive, ahk_exe div.exe
{
;open weapon-list
1::
MouseGetPos, orig_x, orig_y
Click, 875, 992
MouseMove, orig_x, orig_y
return
;open spell-list
2::
MouseGetPos, orig_x, orig_y
Click, 927, 992
MouseMove, orig_x, orig_y
return
;open potion-list
3::
MouseGetPos, orig_x, orig_y
Click, 976, 992
MouseMove, orig_x, orig_y
return
}
===============================================
this is working for screen-resolution 1680x1050
for other resolutions, you'll have to change the values for the 'Click'-commands accordingly.
here are some values for different screen-resolutions (tell me if yours is missing):
1920x1200:
Click, 990, 1140
Click, 1040, 1140
Click, 1090, 1140
1920x1080:
Click, 990, 1020
Click, 1040, 1020
Click, 1090, 1020
1600x1200:
Click, 830, 1140
Click, 880, 1140
Click, 930, 1140
1600x900:
Click, 830, 840
Click, 880, 840
Click, 930, 840
1280x1024:
Click, 670, 960
Click, 720, 960
Click, 770, 960
1440x900:
Click, 750, 840
Click, 800, 840
Click, 850, 840
1280x960:
Click, 675, 900
Click, 725, 900
Click, 775, 900
1366x768:
Click, 720, 700
Click, 770, 700
Click, 820, 700
800x600:
Click, 430, 540
Click, 480, 540
Click, 530,540
cheers