motionman95 Posted July 10, 2009 Share Posted July 10, 2009 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! Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 10, 2009 Share Posted July 10, 2009 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 Link to comment Share on other sites More sharing options...
motionman95 Posted July 10, 2009 Author Share Posted July 10, 2009 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. Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 10, 2009 Share Posted July 10, 2009 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 Link to comment Share on other sites More sharing options...
motionman95 Posted July 10, 2009 Author Share Posted July 10, 2009 I knew I was forgetting something..lemme try that, then I will report back. Link to comment Share on other sites More sharing options...
motionman95 Posted July 10, 2009 Author Share Posted July 10, 2009 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. Link to comment Share on other sites More sharing options...
DCCD Posted July 10, 2009 Share Posted July 10, 2009 Take a look AutoIt3 Examples X:\Program Files\AutoIt3\Examples\GUI\Advanced\AlphaBlend.au3 . [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
motionman95 Posted July 10, 2009 Author Share Posted July 10, 2009 Thanks! I will. Link to comment Share on other sites More sharing options...
motionman95 Posted July 10, 2009 Author Share Posted July 10, 2009 Cool! That just might solve my problem! Thanks! Link to comment Share on other sites More sharing options...
insignia96 Posted July 11, 2009 Share Posted July 11, 2009 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 Link to comment Share on other sites More sharing options...
motionman95 Posted July 11, 2009 Author Share Posted July 11, 2009 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now