Talk:Simulate input/Mouse

From Rosetta Code
Revision as of 16:28, 27 May 2009 by rosettacode>ShinTakezou (global i suppose)

Local vs global

I think this task should require implementations to specify whether they are simulating mouse clicks on one of this application/process's windows (internal), or anywhere on the screen (OS/window system access). --Kevin Reid 16:02, 27 May 2009 (UTC)

I believe AutoHotkey is meant to simulate "system wide" events, that of course are grabbed by the active application, being the active application any of the apps the user can activate... So maybe this task asks for a synthetized event that is not distinguishable from an event generated by an user interaction (pressing a key e.g.). Rather, it is strongly operating system dependent (unless using a portable language which has a portable library/module which uses the same "interface" on different system, like $synth->button_down(LEFT, $x, $y) (fantasy perlish example). --ShinTakezou 16:28, 27 May 2009 (UTC)