wunder Posted April 27, 2012 Posted April 27, 2012 Hi there I have down loaded this example here but I do not remember were ....does any body know how to do the buttons in masm like the person did here ...I have looked at all of Ufo-Pu55y's sources but I can not get any to work with this button...not sure of the logic behind the spacing in the images thereWin uPPP.zip
Ufo-Pu55y Posted April 28, 2012 Posted April 28, 2012 It's a 3 state button image, so simply divide by 3 and there you go?Best is to attach your failing source..
wunder Posted April 28, 2012 Author Posted April 28, 2012 Thank you for the reply....my apologizes All I did was take the exit.png from the above example and tried to sub it in your keygen template (tried it with the PNG #1 template too)In theory it should work ...but the spacing between the button images on the strip are different than on the exit.png and I have no idea how to control that.... also I can not seem to move the button around .....program crashesI did not see a reason to copy your code and post a failing source ...it would be the same thing so.....If you sub the exit button with the exit.png from the above you will see what I am talking aboutI have a different way I do buttons ( I use three images) ...but I wanted to try a strip like in the above example ....So I can get that "glow" around the button when it is clickedI wish the author of the above example included a sourceThank you
wunder Posted April 28, 2012 Author Posted April 28, 2012 I found the original post http://forum.tuts4you.com/topic/25362-windows-7-skins-for-uppp/page__hl__%2Bwin+%2Buppp.zip
Ufo-Pu55y Posted April 28, 2012 Posted April 28, 2012 author of the above example included a sourceI feel I like that way talking about a 3rd person.. here we go:The author asked you to attach your source.That way he can help you much faster.Btw, there's no such extra space in the images.Every single bit gets displayed in the end.
wunder Posted April 28, 2012 Author Posted April 28, 2012 I am confused by your answer a bitLOL I meant the author of the Win uPPP.zip attachment that I uploaded as the example .....I wished they had the source with it ...I used res hacker to look at the rsrc inside that example ...and I think that he used a patch maker engine to make that ....but PeID shows MASM/TASM ????do you want me to make a source and post it ? see were it went wrong ... like I said all I did was sub the image into your keygen and it shows half an image ....I can make a source and upload it ...i am going to be indisposed for a while so it will be in 7 -8 days
Ufo-Pu55y Posted April 28, 2012 Posted April 28, 2012 I'm the author of both and I was just kidding.You say you simply placed the image into the source for another template.I'm sure you adjusted the hardcoded image sizes in the source?
wunder Posted April 28, 2012 Author Posted April 28, 2012 (edited) yes I did ...that is what fails ....it shows half images with a space in between but I apologize I usually do Include a source with all my posts ... I am stretching my self to thin with all my MASM projects .... I find that I favor coding to cracking so I tend to lean more towards coding ..... I just got lazy and did a substitute and an edit with your template.... Got hell for posting others work Edited May 12, 2012 by wunder
Ufo-Pu55y Posted April 28, 2012 Posted April 28, 2012 (edited) yes I did ...that is what fails ....it shows half images with a space in between But you didn't correct it everywhere, that's why. It's not enough changing the values for the AlphaBlend calls. For real hardcore effects coding check out stuff from the god of maths & effects coding: ftp://ftp.scene.org/pub/parties/2007/numerica07/intro/eqx_-_frameskool_-_bp2007_64k_invit.zip Nevertheless qWord does a better job since he's sharing interesting code and helping others out Edited April 28, 2012 by Ufo-Pu55y
wunder Posted April 28, 2012 Author Posted April 28, 2012 I am going to defiantly try to correct it all ...and try again ....if there are nay key places to correct that you want to remind me about that would be great ...I will have a go at it .....you know C so this might be of use to you .... in the key gen about ( left arrow right arrow ...Ctrl to fire ) I wish this was in MAMS ..... although there is an open MASM pacman game so I might to to convert same dayforumcrack-spaceship-template.zip
Ufo-Pu55y Posted April 28, 2012 Posted April 28, 2012 iirc only in the few instructions right before theAlphaBlend calls you have to do the right thing.Yep, I knew that keygen about box. It's my fav.. jB rulez!
wunder Posted April 28, 2012 Author Posted April 28, 2012 there are some cool once in MASM examples Tettris is fun... but they are 16bit and I have not figured out how to BIt Bit the graphics onto the scrteen for 32win ...I think it would be something like your code walker keygen thoughthat just gave me an idea ...add that pacman game to a keygen2KTETRIS.ZIPMatrix16BitMASM.zipasmpacman.zip
wunder Posted May 7, 2012 Author Posted May 7, 2012 I am back....Well I had some time to look at it and I still can not get this to work ...all I want is to be able to do the buttons ...it seems that your source uses ws_ex_layered dialog ...and the patcher is dialog based ....I want to use the buttons on a dialog based window .....anyways I decompiled your keygen source and used that ..... and I can not get the buttons to work .....Also seems that the patcher resources are not upside down I want to do it like thatcan you help?ButtonTest.zip
Ufo-Pu55y Posted May 8, 2012 Posted May 8, 2012 (edited) and I can not get the buttons to work ....1) For instance if the size of your exit button is 46 x 69, then the sizeconstants should be 46 x 69/3 ==> 46 x 23.. why do you use 42 x 22 ???2) You didn't correct the size constants in the WM_MOUSEMOVE handlerAlso seems that the patcher resources are not upside down I want to do it like thatSimply flip them vertically in memory after loading them.You should be able to do that.It's not just like inverting the byte array.It's more like this:-line1 to bottom-0-line2 to bottom-1-... Edited May 8, 2012 by Ufo-Pu55y
wunder Posted May 9, 2012 Author Posted May 9, 2012 46x23 crashes for me ...I can not seem to use odd numbers ... ??? and I thought I did correct the size constants in the WM_MOUSEMOVE handler.....that is why I use Button1_Left, 2, 3 so Button1_Left,Button2_Left,Button3_Left......maybe I do not understand how to correct ......how do you correct .....?Also I am going to try to use a dialog base rect ...I have the algo at home that I have used on couple starfields which get the system metrics of the user rect ...soFrame_Size_X equ 403Frame_Size_Y equ 287can beFrame_Size_X dd ?Frame_Size_Y dd ?can you please show me a snip it of the corrected constants in the WM_MOUSEMOVE handler......?Thank you for your time
wunder Posted May 16, 2012 Author Posted May 16, 2012 1) For instance if the size of your exit button is 46 x 69, then the sizeconstants should be 46 x 69/3 ==> 46 x 23.. why do you use 42 x 22 ???2) You didn't correct the size constants in the WM_MOUSEMOVE handlerSimply flip them vertically in memory after loading them.You should be able to do that.It's not just like inverting the byte array.It's more like this:-line1 to bottom-0-line2 to bottom-1-...That did not work well it all ..after flipping the image in memory the button order is reversed .....the over is now the up ... the pressed is the up and the up is the pressed ......you have no idea how many things and times I tried to do that opaque effect in the center while the rest of the window is transparent .... can you PLEASE tell me how to do that ?I have tried every thing I can think offThank you
Ufo-Pu55y Posted May 16, 2012 Posted May 16, 2012 Hold on lol.. but it will take some days, since I'm quite busy atm.
wunder Posted May 17, 2012 Author Posted May 17, 2012 Hold on lol.. but it will take some days, since I'm quite busy atm.Thank you
wunder Posted June 2, 2012 Author Posted June 2, 2012 This has been driving me nuts ...all I want to know is how to make the opaque region and the rest transparent using masm I have been still at this ...is it 2 windows ? a static? regions? what ? aaaaaahhhhhhhh
Ufo-Pu55y Posted June 3, 2012 Posted June 3, 2012 (edited) There's no use of "regions" - the used technique is called "alpha blending",and it is done via a very speedy routine written by bitRake. I'm using it in allthe posted PNG template sources on this board.It requires 32 bit PNGs: 8 bit red, 8 bit green, 8 bit blue and 8 bit alpha.It's the alpha value for each pixel which decides whether you see the pixelin the end or not. You have to read about it if you want to stop it driving you nuts.Background (desktop), frame, buttons, etc. - they all got mixed (blended) together.No such cutting there as if using scissors.EDIT/And maybe take a look at this one:http://www.madwizard...projects/pnglibThe most important one was a "pngstuff.zip" package by "Qweerdy".You could still find it on Masm32 forum, but the board got ****edup some days ago (server moved + reset), and I had no luckaccessing stuff on the old board. Edited June 3, 2012 by Ufo-Pu55y
ragdog Posted June 3, 2012 Posted June 3, 2012 (edited) Hutch has change the server and all forum attached zip filesbackup to a serverApache directory listing for 2005 archive/>http://www.masmforum.com/archive2005Apache directory listing for 2012 archive/>http://www.masmforum.com/archive2012/Png Skin from Qweerdy can you download hereppa.ziphttp://forum.sources...563&attach_id=0pngskin.ziphttp://forum.sources...564&attach_id=0pngskin3.ziphttp://forum.sources...567&attach_id=0pngskin4.ziphttp://forum.sources...568&attach_id=0scrollblend.ziphttp://forum.sources...569&attach_id=0PngStuff.zip/>http://www.masmforum.com/archive2012/396_PNGStuff.zipGreets, Edited June 3, 2012 by ragdog 1
wunder Posted June 3, 2012 Author Posted June 3, 2012 There's no use of "regions" - the used technique is called "alpha blending",and it is done via a very speedy routine written by bitRake. I'm using it in allthe posted PNG template sources on this board.It requires 32 bit PNGs: 8 bit red, 8 bit green, 8 bit blue and 8 bit alpha.It's the alpha value for each pixel which decides whether you see the pixelin the end or not. You have to read about it if you want to stop it driving you nuts.Background (desktop), frame, buttons, etc. - they all got mixed (blended) together.No such cutting there as if using scissors.EDIT/And maybe take a look at this one:http://www.madwizard...projects/pnglibThe most important one was a "pngstuff.zip" package by "Qweerdy".You could still find it on Masm32 forum, but the board got ****edup some days ago (server moved + reset), and I had no luckaccessing stuff on the old board.Thank you !!! Ufo-Pu55yAll I am trying to do is achieve the same look as the Winupp patcher .... every time I end up with a region that is see through like a glass hole not transparent .... but I will give it another go ragdog posted this example that might helphttp://forum.sources...568&attach_id=0On the Masm forum this was suggested to me http://www.mvps.org/...tutorial.html GDI Tutorial 4 - DIBsthat is the last tut ...looks like that would do it but it is in Cby the way did you not get a bulk email from the masm forum with the new web site ?here it is http://masm32.com/bo...rd/index.php?��that should get you in no problem
wunder Posted June 3, 2012 Author Posted June 3, 2012 Hutch has change the server and all forum attached zip filesbackup to a serverApache directory listing for 2005 archivehttp://www.masmforum.com/archive2005Apache directory listing for 2012 archivehttp://www.masmforum.com/archive2012/Png Skin from Qweerdy can you download hereppa.ziphttp://forum.sources...563&attach_id=0pngskin.ziphttp://forum.sources...564&attach_id=0pngskin3.ziphttp://forum.sources...567&attach_id=0pngskin4.ziphttp://forum.sources...568&attach_id=0scrollblend.ziphttp://forum.sources...569&attach_id=0PngStuff.ziphttp://www.masmforum...96_PNGStuff.zipGreets,thanks ragdog I think pngskin4.zip does what I want ...I will look at it tonight when I get homethank you again !!!
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