Jump to content
Sign in to follow this  
buzz44

Change mouse cursor and stop clicking

Recommended Posts

hello all... i am looking to capture the click of a mouse but not make it do anything

eg.

When you click one of the mouse buttons ie .Left/Middle/Right .. instead of clicking i want it to do sumthing else .. get the colour infact.. i already have the coding to get the colour and it works when i click ..

problem is ...

say i want to get the colour of a button.. i move the mouse over the button and click.. it gets the colour but it also clicks on the button and does wateva it does ..

another eg is if the cursor is over a file when u click it will highlight the file and thus change the colour that i want.

is there any way i can sumhow "Block" or capture the mouse down thing b4 for it happens ? i was going to use BlockInput bu hen i realised if i use that u wont be able to click any way lol

and help plz =)

also .. is there a way i can change the mouse cursor ?? MouseGetCursors just gets wat the cursor is . is there a way i can (maybe throught dll call) change the cursor.

Edited by burrup

qq

Share this post


Link to post
Share on other sites

anyone please lol ... i really wanna finish my script and i cant tell i figure these problems =).

problem 1: how can i not make the mouse click click on an obect.. read above post if u dont understand plz

problem 2: how do i change the cursor of a mouse?

thx


qq

Share this post


Link to post
Share on other sites

PEOPLE PLZZZZZZZ lol ...

can i change the mouse cursor (1

can i stop the mouse from clicking on sumthing but it still perfoms sumthing else..? (2

eg.. the mouse is over a button .. instead of clicking the button it gets the colour beneath the mouse .. (the button is not GUI form autoit, it is a windows button)

thx

ANYONE PLEASE HELP

edit: coming up to 11hrs with no reply's .. new record?

Edited by burrup

qq

Share this post


Link to post
Share on other sites

Hi,

I think it's only possible with an real Hook to the mouse because the _IsPressed UDF can read the key/mouse but also performs the action.

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

THANKYOU for reply andre... u always come and save me lol .. real hook? .. currently i am use the _Ispressed function but as u said .. it still performs the action =( ... do u know how to change the mouse cursor by anychance?


qq

Share this post


Link to post
Share on other sites

Hi,

change the mousecursor by using a dllcall ?

HCURSOR CreateCursor(

HINSTANCE hInst,

int xHotSpot,

int yHotSpot,

int nWidth,

int nHeight,

const VOID *pvANDPlane,

const VOID *pvXORPlane

);

and then use it ?

SetCursor( )

But don't ask me how to do it because i don't have the time to play with the dllcall function.

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

anyone lol ... please i pray that someone will have replied by morning lol ....surley sum1 knows how to do it or has some ideas


qq

Share this post


Link to post
Share on other sites

OMFG ANYONE PLEASE >>> i have been checking this post FOREVER for DAYS and no one has replied...... arghhhhhhhhh


qq

Share this post


Link to post
Share on other sites
Guest Guidosoft

You guys make up a completley new wave of scripters. Like another generation coming in. lol.

When I look at the active users, I see less an less of the usual members and more of new people with little posts all over the place lol.

Welcome to AutoIt Forums to all of you new guys even though you 2 are not that new.

You probably won't see me around much cause valik is working out his plan to get me banned so I thaught I would just greet you now.

Edit:

"OMFG......."

Thou shalt not take the name of the lord thy GOD in vein.

Edited by Guidosoft

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...