Jump to content

Hide mouse cursor, but allow movement & clicks?


Recommended Posts

Hello,

I have searched forums and cant get anywhere with this... 1st script in Autoit.

I have a prog I need to control and the only way I can get it to do what I want is to use mouse clicks (cant use tab or key presses etc as they do nothing, and many of the TABs/buttons I need to select have no unique ID).

I want this action to be hidden from the user and a simple 'please wait' dialogue to be displayed when the script is actioned.

So far I have set the prog window to be effectively transparent using WinSetTrans with setting of 1.

This allows the mouse to function, but its seen rushing around the screen for 10 seconds in what would be a seemingly random manor.

I have searched and tried all the scripts I can find here and not got anywhere.

I need the mouse cursor to be hidden but still function (and use blockinput for 10secs while script does its mouse clicking).

Any ideas? Hiding using gui does not work as I need to bring focus to the prog to get the mouse actions to work, and that shows the mouse again.

I was thinking that maybe I need to create a blank cursor and call that from script unless there is an alternate way?

In testing I cant even get the change cursor function working <<_WinAPI_LoadImage(0,"C:\WINDOWS\Cursors\blank.cur",$IMAGE_CURSOR,0,0,$LR_LOADFROMFILE) >>

So my main task is to hide a window but allow actions to take place while displaying a please wait message.

Thanks,

Gary.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...