Sign in to follow this  
Followers 0
motionman95

Making an image follow the mouse?

11 posts in this topic

Hello! I have a transparent GIF which I would like to follow the mouse around the screen. I'm going to write a script so that when the user clicks the image following it, the script takes a screenshot, sort of like a frame. Is there a reliable way to do this, with transparency intact? Thanks!


Share this post


Link to post
Share on other sites



Hello! I have a transparent GIF which I would like to follow the mouse around the screen. I'm going to write a script so that when the user clicks the image following it, the script takes a screenshot, sort of like a frame. Is there a reliable way to do this, with transparency intact? Thanks!

MouseGetPos() and WinMove() in a loop?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

MouseGetPos() and WinMove() in a loop?

:)

Yeah, I tried that, but the transparency of my GIF doesn't work. I just see the background of my GUI instead. :)


Share this post


Link to post
Share on other sites

Yeah, I tried that, but the transparency of my GIF doesn't work. I just see the background of my GUI instead. :)

Did you try WinSetTrans() on the GUI itself?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

I knew I was forgetting something..lemme try that, then I will report back. :)


Share this post


Link to post
Share on other sites

Did you try WinSetTrans() on the GUI itself?

:)

Okay, I've tried it, but now my GIF is invisible...when I only want the background of my gif to be transparent.


Share this post


Link to post
Share on other sites

Thanks! I will.


Share this post


Link to post
Share on other sites

Cool! That just might solve my problem! Thanks!


Share this post


Link to post
Share on other sites

Another note, you could've set your GUI to the style $WS_POPUP and $WS_EX_TRANSPARENT(maybe?)+$WS_EX_TOPMOST+$WS_EX_LAYERED and given the pic control the $GUI_WS_EX_PARENTDRAG style. Maybe a little less coding.


Visit my website to see all my finished releases!Releases here:UDFs:GUI ResizingColor List (Web Colors)GUIFade_NearestPower

Share this post


Link to post
Share on other sites

Another note, you could've set your GUI to the style $WS_POPUP and $WS_EX_TRANSPARENT(maybe?)+$WS_EX_TOPMOST+$WS_EX_LAYERED and given the pic control the $GUI_WS_EX_PARENTDRAG style. Maybe a little less coding.

Uh, okay, I'll try that as well.


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  
Followers 0