tomashen Posted November 26, 2011 Share Posted November 26, 2011 (edited) um maybe this isnt the right place for this but since im asking this for autoit i tihnk it is right place my problem is that when i save my bmpmake baground pink....here is wat i get when i open it in guii get that pink outline around the character of an mmo game...(i just took a quick sample of this image im not making bots or anything!HONESTLY!)so any clues how to remove the pink around this dude? maybe there is a specific properties to save bmp.. ? bcz i had this image with the example script and it shows fine like thisi found the script here in forums...code is like thisexpandcollapse popupGlobal Const $WM_POPUP=0x80000000 Global Const $WS_EX_CONTROLPARENT=0x00010000 Global Const $WM_CTLCOLORDLG=0x0136 Func Set_BG($hWin,$Msg,$wParam,$lParam) Return $hBMP[0] EndFunc $BG=@ScriptDir&"\my.bmp" ;~ $BG=@ScriptDir&"\pen.bmp" ;~ $BG=@ScriptDir&"\fbi.bmp" $MSkin=@ScriptDir&"\MakeSkin.dll" $hWnd=GUICreate("SSkins",400,400,-1,-1,$WM_POPUP,$WS_EX_CONTROLPARENT) ;pen.bmp $Me=GUICtrlCreateButton("Click Me!",25,295,70,30) GUICtrlSetFont(-1,10,800,0,"Arial") $Exit=GUICtrlCreateButton("E x i t",230,300,55,25,1) GUICtrlSetFont(-1,12,800,0,"Arial") ;~ $hTestButton = GUICtrlCreateButton("Next BMP", 140, 50, 70, 30) ;kkitty.bmp Set Width to 452 on GUICreate ;$Exit=GUICtrlCreateButton("E x i t",222,284,55,25,1) ;GUICtrlSetFont(-1,12,800,0,"Arial") ;$Me=10 ;fbi.bmp ;$Me=GUICtrlCreateButton("Click Me!",50,368,70,25) ;GUICtrlSetFont(-1,10,800,0,"Arial") ;$Exit=GUICtrlCreateButton("E x i t",225,368,55,25,1) ;GUICtrlSetFont(-1,12,800,0,"Arial") ;~ SplashTextOn("","Making Skin......",300,100,-1,-1,33,"Arial",24,800) $hBMP=DllCall($MSkin,"hwnd","Make_Skin","hwnd",$hWnd,"str",$BG) ;~ SplashOff() GUIRegisterMsg($WM_CTLCOLORDLG,"Set_BG") GUISetState() While True Switch GUIGetMsg() Case -3,$Exit Exit Case $Me MsgBox(0,"Clicked Me","Hi, From Simple Skins",2) EndSwitch WEndi would appreciate any help thnx!! I DO NOT TAKE ANY CREDITS FOR THE SCRIPT !!! Edited November 26, 2011 by tomashen Proud of AutoIt Proud of MySelf :) Link to comment Share on other sites More sharing options...
VeryGary Posted November 27, 2011 Share Posted November 27, 2011 The problem is with your image editor, not your code. If you look very closely at the generated image:you will see there are many shades of pink, none of which match the color used to flag transparency. Link to comment Share on other sites More sharing options...
edena Posted November 28, 2011 Share Posted November 28, 2011 Yep!, I agree with VeryGary, You should be using Photoshop or other image editing software to do this. 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