Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse movement control. Help....

Status
Not open for further replies.

trango

Programmer
Jul 3, 2002
1
US
I need to know how to use the mouse x and y movement in vbs to trigger events. left triggers one event while right movemment triggers another. Any suggestions.

Thanks in advance
 
The following code will show you how the mousemove event works, from there you should be able to derive the code for using this event to trigger other events.

<script language=vbscript>
function document_onmousemove()
myForm.txtField.value = window.event.screenx
end function
</script>

<body>
<form ID=myForm>
<input type=text ID=&quot;txtField&quot; maxlength=10 size=10>
</form>
</body>


Hope this helps!
Tazzmann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top