Is it possible to move mouse to cell in grid? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
BriHecato
Posts: 124
Joined: 18 Jul 2017, 07:17

Is it possible to move mouse to cell in grid?

18 Mar 2018, 11:20

This is all I can get from WinSpy about grid control in erp software:
ClassNN: WindowsForms10.Window.8.app.0.141b42a_r9_ad12

I would like to force mouse to move (or click/controlclick) to the cell that is currently selected by cursors or my other script.
Is it possible at all?

-------- edit -----
I've noticed that selected cell is highlighted by unique color (in comparison to rest of control) - maybe i can scan some area for that color - find the first pixel (upper left) then just offset a little. It would solve my question.
User avatar
BriHecato
Posts: 124
Joined: 18 Jul 2017, 07:17

Re: Is it possible to move mouse to cell in grid?  Topic is solved

29 Mar 2018, 03:34

It's possible :)

PixelSearch, px, py, ramkax1, ramkay1, ramkax2, ramkay2, 0x0078d7, 0, Fast RGB ;
myszx := px+5
myszy := py+5
MouseMove, myszx, myszy

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, Nerafius and 103 guests