Simulate input/Mouse: Difference between revisions

m (Extended link)
(→‎{{header|PureBasic}}: Added PureBasic)
Line 65:
<pre>12.50</pre>
The same example is used in the related task [[Simulate input/Keyboard#PicoLisp]].
=={{header|PureBasic}}==
This code is Windows only.
<lang PureBasic>Macro Click()
mouse_event_(#MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
mouse_event_(#MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
EndMacro
 
; Click at the current location
Click()
 
Delay(1000) ; Wait a second
 
; Move to a new location and click it
SetCursorPos_(50, 50)
Click()</lang>
 
=={{header|Tcl}}==
Anonymous user