| The mouse interface |
|---|
|
The low-level mouse interface: Optionally! // File: mouse.w_js (JScript) function WM_MOUSE(id,x,y,key) { var id = "id: " + id + " " var x = "X: " + x + " " var y = "Y: " + y + " " var key = "Key: " + key + " " Window.Delete(0); Window.TextOut(0,50,10,id); Window.TextOut(0,50,30,x); Window.TextOut(0,50,50,y); Window.TextOut(0,50,70,key); Window.UpdateWindow() }' VBScript Function WM_MOUSE(id,x,y,key) id = "id: " & id & " " x = "X: " & x & " " y = "Y: " & y & " " key = "Key: " & key & " " Window.Delete(0) Window.TextOut 0,50,10,id Window.TextOut 0,50,30,x Window.TextOut 0,50,50,y Window.TextOut 0,50,70,key Window.UpdateWindow() End Function |
| The new script host. It is not wscript.exe |