Is there a way to simulate a mouse left button click in a program. So that I can act as if the mouse left button was clicked however no interaction from the user?
Trying to force a grid sort on a particular column. After loading the grid I am placing the mouse pointer on the column header. I then want to force a mouse click for the grid to sort on that particular column.
We keep track of a user's preference for which column they want sorted for our lookup lists. Then when list is loaded I want to sort by the column they prefer
tested alot with vbscript and so on... but no result.
The only way to get it working was to build a "Click Left Mouse EXE" with AutoIT.
The OutoIT Script is very simple:
; click at the current mouse position.
compiled it to an exe...
then call it in cobol:
call "c$system" using "c:\muffrohr\LMouse.exe", 97 end-call.
I only tested the sorting... by placing the mouse manual to the header of the cell in a grid and then press <F1> to call the exe. After i pressed <F1> the sorting in the grid happens.