Trying to use SetCursorPos and it's not working.

I have a web page that is a display kiosk. The system boots automatically and displays this page. The mouse cursor however plunks right down in the middle of the screen. I've tried changing the cursor to a blank cursor but the cursor is right over a data array and the system pulls the default text select cursor and every time the page refreshes, of course the cursor goes to the wait cursor. Happens every 10 seconds, not so good looking. So I tired to embed a SetCursorPos command in the page to try to move the cursor. My complier doesn't throw any errors up but the cursor doesn't move on load. Any ideas what I've got wrong?
<script language="VB" runat="server">
    Declare Function SetCursorPos Lib "user32" (ByVal X As Integer, ByVal Y As Integer) As Integer
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
        SetCursorPos(1080, 1080)
    End Sub
  </script>

Open in new window

CARLWAsked:
Who is Participating?
 
Muhammad KhanManager, ITCommented:
0
 
CARLWAuthor Commented:
Anyway to work this with the default system DLL's? I don't want to have to inject this into the corporate system, it'll take forever to get it approved.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.