Jump to content

I Don't Get It


Recommended Posts

well you see larry made a nice script and i don't get something, well see this picture i uploaded right, it has a purple liner, but if you change it it's not invisable no more, ok example take larry's dll the picutre and this script, and put it in to a New Folder

#include <GUIConstants.au3>
$gui = GUICreate("",233,362,-1,-1,$WS_POPUP)
GUICtrlCreatePic(".\gui_skin.bmp",0,0,233,362)

$a = DLLCall(".\BMP2RGN.dll","int","BMP2RGN", _
            "str",".\gui_skin.bmp", _
            "int",255, _
            "int",0, _
            "int",255)

SetWindowRgn($gui, $a[0])

GUISetState()
Sleep(2000)

Func SetWindowRgn($h_win, $rgn)
    DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "long", $rgn, "int", 1)
EndFunc

now before you start the script, look at the picutre there's like a purple liner, now run the script the purple is invisable, now if you edit the picture in paint, change the purple to say, red, run the script it's not invisabl any more, but in this script i don't see it saying look for purple. :)

Edited by Vicks
[s]Autoit[/s]
Link to comment
Share on other sites

This part

$a = DLLCall(".\BMP2RGN.dll","int","BMP2RGN", _

"str",".\gui_skin.bmp", _

"int",255, _

"int",0, _

"int",255)

is

$a = DLLCall(".\BMP2RGN.dll","int","BMP2RGN", _

"str",".\gui_skin.bmp", _

"int",Red, _

"int",Green, _

"int",Blue)

ie

255,0,255 = Purple


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

$a = DLLCall(".\BMP2RGN.dll","int","BMP2RGN", _
            "str",".\gui_skin.bmp", _
            "int",255, _;<<<<<< red
            "int",0, _   ;<<<<<< green
            "int",255)  ;<<<<<< blue

255,0,255

red,green,blue

255 red and 255 blue, makes a purple color

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

yeah, he'd pm'd me with this one, and i'd told him the same thing... sorry if i didn't say it clearly enough...

Well he now has three explanations, perhaps he will get it now. :)


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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...