Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;@Ahk2Exe-SetCompanyName VANHEARTNET LTD. INC.
- ;@Ahk2Exe-SetCopyright All rights reserved © VANHEARTNET
- ;@Ahk2Exe-Set FileDescription, Roblox Quick Login © VANHEARTNET
- ;@Ahk2Exe-Set FileVersion, 1.0.0.0
- ;@Ahk2Exe-SetInternalName Roblox Quick Login
- ;@Ahk2Exe-SetName Valorant
- ;@Ahk2Exe-SetOrigFileName Roblox Quick Login
- ;@Ahk2Exe-Set ProductName, Roblox Quick Login
- ;@Ahk2Exe-Set ProductVersion, 1.0.0.0
- ;@Ahk2Exe-Set Description, Roblox Quick Login
- ;@Ahk2Exe-Set Comments, Software Created by : VANHEARTNET
- ;@Ahk2Exe-Obey U_au, = "%A_IsUnicode%" ? 2 : 1 ; Script ANSI or Unicode?
- ;@Ahk2Exe-PostExec "BinMod.exe" "%A_WorkFileName%"
- ;@Ahk2Exe-Cont "%U_au%2.>AUTOHOTKEY SCRIPT<.01VANHEARTNET "
- ;@Ahk2Exe-SetMainIcon icon1.ico
- ;@Ahk2Exe-AddResource Icon1.ico, 160 ; Replaces 'H on blue'
- ;@Ahk2Exe-AddResource Icon1.ico, 206 ; Replaces 'S on green'
- ;@Ahk2Exe-AddResource Icon1.ico, 207 ; Replaces 'H on red'
- ;@Ahk2Exe-AddResource Icon1.ico, 208 ; Replaces 'S on red'
- #SingleInstance,Ignore
- ;#SingleInstance,Force
- #Persistent
- #NoEnv
- Menu,tray, NoStandard
- Menu, Tray, Tip, Roblox VANHEARTNET
- Menu, Tray, Add, Exit,Exit1
- SetWorkingDir, %A_ScriptDir%
- SetBatchLines, 20ms
- #MaxHotkeysPerInterval 99000000
- #HotkeyInterval 99000000
- #KeyHistory 0
- ListLines Off
- Process, Priority, , A
- SetKeyDelay, -1, -1
- SetMouseDelay, -1
- SetDefaultMouseSpeed, 0
- SetWinDelay, -1
- SetControlDelay, -1
- DetectHiddenWindows, On
- SetTitleMatchMode, 3
- SendMode Input
- #Include <Gdip_All>
- #Include <GdipHelper>
- pToken:=Gdip_Startup()
- if not A_IsAdmin
- {
- Run, *RunAs "%A_ScriptFullpath%"
- ExitApp
- }
- IfNotExist,%A_Temp%\reg
- {
- FileCreateDir,%A_Temp%\reg
- FileInstall,logo.png,%A_Temp%\reg\logo.png
- }
- IfNotExist,\\%A_ComputerName%\Users\%A_UserName%\Documents\RobloxEasyLogin
- {
- FileCreateDir,\\%A_ComputerName%\Users\%A_UserName%\Documents\RobloxEasyLogin
- FileCreateDir,\\%A_ComputerName%\Users\%A_UserName%\Documents\RobloxEasyLogin\Player
- IniWrite,\\%A_ComputerName%\Users\%A_UserName%\Documents\RobloxEasyLogin\Player,cfg.ini,Network,PATH
- }
- IfNotExist,cfg.ini
- IniWrite,\\%A_ComputerName%\Users\%A_UserName%\Documents\RobloxEasyLogin\Player,cfg.ini,Network,PATH
- else
- {
- IniRead,NPATH,cfg.ini,Network,PATH
- if(NPATH="0" || NPATH="" || NPATH="ERROR")
- {
- NPATH:="Player"
- IfNotExist,% NPATH
- FileCreateDir,% NPATH
- }
- }
- Gosub,Check_Updates
- Global HB_Button:=[]
- BG:="238BCF"
- Gui,1:Color,% BG
- Gui,1:Font,s16 Bold, Arial Black
- Gui,1:Add,Edit,x20 y20 w200 r1 Border Center vEdit1 gEdit1
- Gui,1:Add,Edit,x20 y+5 w200 r1 Border Center vEdit2 gEdit2 Password
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x:= 21 , y := 105 , w := 198 , h := 50 , Button_Color := "135DC2" , Button_Background_Color := BG , Text := "Login" , Font := "Arial" , Font_Size := 14 " Bold" , Font_Color_Top := BG , Font_Color_Bottom := "111111" , Window := "1" , Label := "Login" , Default_Button := 0 , Roundness:=5 ) )
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x:= 21 , y+=h+5 , w := 198 , h := 50 , Button_Color := "074128" , Button_Background_Color := BG , Text := "Register" , Font := "Arial" , Font_Size := 14 " Bold" , Font_Color_Top := BG , Font_Color_Bottom := "111111" , Window := "1" , Label := "Register" , Default_Button := 0 , Roundness:=5 ) )
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x:= 21 , y+=h+5 , w := 198 , h := 50 , Button_Color := "751A4F" , Button_Background_Color := BG , Text := "RESET Google" , Font := "Arial" , Font_Size := 14 " Bold" , Font_Color_Top := BG , Font_Color_Bottom := "111111" , Window := "1" , Label := "Reset" , Default_Button := 0 , Roundness:=5 ) )
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x:= 21 , y:=60 , w := 198 , h := 80 , Button_Color := "389434" , Button_Background_Color := BG , Text := "SAVE" , Font := "Arial" , Font_Size := 14 " Bold" , Font_Color_Top := BG , Font_Color_Bottom := "111111" , Window := "1" , Label := "SAVE" , Default_Button := 0 , Roundness:=8 ) )
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x:= 21 , y+=h+5 , w := 198 , h := 80 , Button_Color := "CD036E" , Button_Background_Color := BG , Text := "LOAD" , Font := "Arial" , Font_Size := 14 " Bold" , Font_Color_Top := BG , Font_Color_Bottom := "111111" , Window := "1" , Label := "LOAD" , Default_Button := 0 , Roundness:=8 ) )
- GuiControl,1:Hide,% HB_Button[4].hwnd
- GuiControl,1:Hide,% HB_Button[5].hwnd
- Gui,1:Add,Picture,x8 y280 w220 h50 BackgroundTrans vlogo ,%A_Temp%\reg\logo.png
- Gui,1:Show,w240 h350, Roblox
- SetTimer, HB_Button_Hover , 50
- SetTimer, logomove, 50
- return
- logomove:
- xx--
- GuiControl,1:move,logo,x%xx%
- if(xx="-240")
- xx:=241
- return
- SAVE:
- ;-----------------------------------------------------
- ; In the button label, add the focus grab line
- GuiControl , % HB_Button[ A_GuiControl ].Window ": Focus" , % HB_Button[ A_GuiControl ].Hwnd
- ; Add the button press function call and test
- if( ! HB_Button[ A_GuiControl ].Draw_Pressed() )
- return
- ;----------------------------------------------
- SoundBeep, 5000
- Gui,1:+Owndialogs
- IfNotExist,C:\Users\%A_UserName%\AppData\Local\Google
- {
- MsgBox, 262176, Error, Please Login your Roblox account in Googlechrome.
- return
- }
- MsgBox, 262180, Warning, Are you sure you want to save this information?`n`nNote:`nYour existing data and Information will be overwritten.
- IfMsgBox,Yes
- {
- FileDelete,%NPATH%\%Edit1%\data
- FileDelete,%NPATH%\%Edit1%\data2
- Sleep, 10
- FileCopy,C:\Users\%A_UserName%\AppData\Local\Google\Chrome\User Data\Default\Cookies,%NPATH%\%Edit1%\data,1
- FileCopy,C:\Users\%A_UserName%\AppData\Local\Google\Chrome\User Data\Default\Cookies-journal,%NPATH%\%Edit1%\data2,1
- MsgBox, 262208, Message, Success!!!`n`n-Thank You
- }
- return
- LOAD:
- ;-----------------------------------------------------
- ; In the button label, add the focus grab line
- GuiControl , % HB_Button[ A_GuiControl ].Window ": Focus" , % HB_Button[ A_GuiControl ].Hwnd
- ; Add the button press function call and test
- if( ! HB_Button[ A_GuiControl ].Draw_Pressed() )
- return
- ;----------------------------------------------
- SoundBeep, 5000
- Gui,1:+Owndialogs
- IfNotExist,C:\Users\%A_UserName%\AppData\Local\Google
- {
- MsgBox, 262176, Error, Please run Googlechrome First.
- return
- }
- FileDelete,C:\Users\%A_UserName%\AppData\Local\Google\Chrome\User Data\Default\Cookies
- FileDelete,C:\Users\%A_UserName%\AppData\Local\Google\Chrome\User Data\Default\Cookies-journal
- Loop 5
- Process,close,chrome.exe
- Sleep 20
- FileCopy,%NPATH%\%Edit1%\data,C:\Users\%A_UserName%\AppData\Local\Google\Chrome\User Data\Default\Cookies,1
- FileCopy,%NPATH%\%Edit1%\data2,C:\Users\%A_UserName%\AppData\Local\Google\Chrome\User Data\Default\Cookies-journal,1
- MsgBox, 262208, Message, Success!!!`n`n-Thank You
- return
- Login:
- ;-----------------------------------------------------
- ; In the button label, add the focus grab line
- GuiControl , % HB_Button[ A_GuiControl ].Window ": Focus" , % HB_Button[ A_GuiControl ].Hwnd
- ; Add the button press function call and test
- if( ! HB_Button[ A_GuiControl ].Draw_Pressed() )
- return
- ;----------------------------------------------
- SoundBeep, 5000
- Gui,1:+Owndialogs
- Gui,1:Submit,Nohide
- if (Edit1="") or (Edit2="")
- return
- IfNotExist,%NPATH%\%Edit1%
- {
- MsgBox, 262160, Error, Invalid Username or Password!
- GuiControl,1:,Edit1,
- GuiControl,1:,Edit2,
- return
- }
- else
- {
- IniRead,Pass,%NPATH%\%Edit1%\info.ini,Acc,Pass
- if(Edit2 not==Pass)
- {
- MsgBox, 262160, Error, Invalid Username or Password!
- GuiControl,1:,Edit1,
- GuiControl,1:,Edit2,
- return
- }
- }
- User:=True
- loop 3
- GuiControl,1:Hide,% HB_Button[A_Index].hwnd
- GuiControl,1:Hide,Edit1
- GuiControl,1:Hide,Edit2
- GuiControl,1:Show,% HB_Button[4].hwnd
- GuiControl,1:Show,% HB_Button[5].hwnd
- return
- Edit1:
- Gui,1:Submit,Nohide
- Gui,1:+OWndialogs
- if Edit1 contains \,`",/,`{,`},`%,`(,`),+,>,<,?,!,@,#,$,^,&,*,',|,:,;``
- {
- MsgBox, 262160, Error, Illegal Characters
- return
- }
- return
- Edit2:
- Gui,1:Submit,Nohide
- Gui,1:+OWndialogs
- if Edit2 contains \,`",/,`{,`},`%,`(,`),+,>,<,?,!,@,#,$,^,&,*,',|,:,;``
- {
- MsgBox, 262160, Error, Illegal Characters
- return
- }
- return
- Reset:
- ;-----------------------------------------------------
- ; In the button label, add the focus grab line
- GuiControl , % HB_Button[ A_GuiControl ].Window ": Focus" , % HB_Button[ A_GuiControl ].Hwnd
- ; Add the button press function call and test
- if( ! HB_Button[ A_GuiControl ].Draw_Pressed() )
- return
- ;----------------------------------------------
- SoundBeep, 5000
- loop 5
- Process,close,chrome.exe
- Sleep 1000
- IfExist,C:\Users\%A_UserName%\AppData\Local\Google
- FileRemoveDir,C:\Users\%A_UserName%\AppData\Local\Google,1
- ;~ Run, *RunAs cmd.exe /c ipconfig/Flushdns,,Hide
- ;~ MsgBox, % ComObjCreate("WScript.Shell").Exec("cmd.exe /c ipconfig/Flushdns").StdOut.ReadAll()
- Gui,1:+Owndialogs
- MsgBox, 262208, Message, Remove google cache Success!!!
- return
- Register:
- Gui,1:Hide
- Gui,2:Color,% BG
- Gui,2:Font,s16 Bold, Arial Black
- Gui,2:Add,Edit,x20 y20 w200 r1 Border Center vEdit3
- Gui,2:Add,Edit,x20 y+5 w200 r1 Border Center vEdit4 Password
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x:= 21 , y:= 120 , w := 198 , h := 50 , Button_Color := "022A06" , Button_Background_Color := BG , Text := "CONFIRM" , Font := "Arial" , Font_Size := 14 " Bold" , Font_Color_Top := BG , Font_Color_Bottom := "111111" , Window := "2" , Label := "CONFIRM" , Default_Button := 0 , Roundness:=5 ) )
- Gui,2:Show, w240 h180, Register
- return
- CONFIRM:
- ;-----------------------------------------------------
- ; In the button label, add the focus grab line
- GuiControl , % HB_Button[ A_GuiControl ].Window ": Focus" , % HB_Button[ A_GuiControl ].Hwnd
- ; Add the button press function call and test
- if( ! HB_Button[ A_GuiControl ].Draw_Pressed() )
- return
- ;----------------------------------------------
- SoundBeep, 5000
- Gui,2:Submit,Nohide
- Gui,2:+OWndialogs
- if Edit3 contains \,`",/,`{,`},`%,`(,`),+,>,<,?,!,@,#,$,^,&,*,',|,:,;``
- {
- MsgBox, 262160, Error, Illegal Characters
- GuiControl,2:,Edit3,
- GuiControl,2:,Edit4,
- return
- }
- Else if Edit4 contains \,`",/,`{,`},`%,`(,`),+,>,<,?,!,@,#,$,^,&,*,',|,:,;``
- {
- MsgBox, 262160, Error, Illegal Characters
- GuiControl,2:,Edit3,
- GuiControl,2:,Edit4,
- return
- }
- else if (Edit3="") or (Edit4="")
- return
- IfExist,%NPATH%\%Edit3%
- {
- MsgBox, 262160, Error, Username already Exist`, please select different one.
- return
- }
- FileCreateDir,%NPATH%\%Edit3%
- IniWrite,%Edit4%,%NPATH%\%Edit3%\info.ini,Acc,Pass
- GuiControl,2:,Edit3,
- GuiControl,2:,Edit4,
- Reload
- return
- Esc::
- Exit1:
- Guiclose:
- if(User=True)
- reload
- FileRemoveDir,%A_Temp%\reg,1
- GuiContextMenu:
- Gdip_Shutdown(pToken)
- ExitApp
- 2Guiclose:
- Reload
- return
- Check_Updates:
- ;~ =======================================CHECK VERSION=====================================================
- V=1.0.0.0
- MFlink=http://www.mediafire.com/file/88pnlnlyzio575x/Roblox_Portable_by_%25C2%25A9_VANHEARTNET.rar/file
- pastebin=https://pastebin.com/1mfHxPB6
- Ytt=https://www.youtube.com/watch?v=Coodor-yxv4
- ;~ ============================================================================================
- message=Roblox QLogin
- message1=`n`nThank You`n`n-VANHEARTNET
- message2=Roblox QLogin by © VANHEARTNET`n`nLatest version is now available and ready to download`nYou will redirect to a download link.`n`nThank You`n`n-VANHEARTNET
- URLDownloadToFile,%Ytt%,%A_Temp%\reg\Roblox QLogin version2.dat
- ;~ ============================================================================================
- URLDownloadToFile,%pastebin%,%A_Temp%\reg\Roblox QLogin version.dat
- if errorlevel=0
- {
- fileread,version,%A_Temp%\reg\Roblox QLogin version.dat
- IfNotInString,version,%V%
- {
- Loop,read,%A_Temp%\reg\Roblox QLogin version.dat
- {
- str := A_LoopReadLine
- s:=StrSplit(str,"version=")
- Loop,parse,A_LoopReadLine,`n
- {
- IfNotInString,str,version=
- continue
- else
- {
- rar:=StrSplit(s.2,"</div>")
- url1:=rar.1
- V2:=url1
- break 2
- }
- }
- }
- if(V2="")
- return
- MsgBox,262180, Roblox Portable by © VANHEARTNET, A new version is Available!`n`nDo you want to download?`t`t`nversion : %V2%,10
- IfMsgBox,Yes
- Run,%MFlink%
- }
- }
- return
- ;~ ==================================================================================================================
- ;-----------------------------------------------------------------
- ;Add the hover fuction to the bottom of your script (or go lib route if you know how to)
- HB_Button_Hover(){
- Static Index , Hover_On
- MouseGetPos,,,, ctrl , 2
- if( ! Hover_On && ctrl ){
- loop , % HB_Button.Length()
- if( ctrl = HB_Button[ A_Index ].hwnd )
- HB_Button[ A_Index ].Draw_Hover() , Index := A_Index , Hover_On := 1 , break
- }else if( Hover_On = 1 )
- if( ctrl != HB_Button[ Index ].Hwnd )
- HB_Button[ Index ].Draw_Default() , Hover_On := 0
- }
- ;-----------------------------------------------------------------
- ;-----------------------------------------------------------------
- ;Add the button class to the bottom of your script (or go lib route if you know how to)
- class HB_Flat_Rounded_Button_Type_1 {
- __New( x := 10 , y := 10 , w := 150 , h := 40 , Button_Color := "FF0000" , Button_Background_Color := "222222" , Text := "Button" , Font := "Arial" , Font_Size := 16 , Font_Color_Top := "000000" , Font_Color_Bottom := "FFFFFF" , Window := "1" , Label := "" , Default_Button := 1, Roundness:=5 ){
- This.Roundness:=Roundness
- This.Text_Color_Top := "0xFF" Font_Color_Top
- This.Text_Color_Bottom := "0xFF" Font_Color_Bottom
- This.Font := Font
- This.Font_Size := Font_Size
- This.Text := Text
- This.X := x
- This.Y := y
- This.W := w
- This.H := h
- This.Button_Background_Color := "0xFF" Button_Background_Color
- This.Button_Color := "0xFF" Button_Color
- This.Window := Window
- This.Label := Label
- This.Default_Button := Default_Button
- This.Create_Default_Bitmap()
- This.Create_Hover_Bitmap()
- This.Create_Pressed_Bitmap()
- This.Create_Trigger()
- sleep, 20
- This.Draw_Default()
- }
- Create_Trigger(){
- global
- num := HB_Button.Length()+1
- Gui , % This.Window ": Add" , Picture , % "x" This.X " y" This.Y " w" This.W " h" This.H " hwndHwnd v" Num " g" This.Label " 0xE"
- This.Number := Num , This.Hwnd := Hwnd
- }
- Create_Default_Bitmap(){
- ;Bitmap Created Using: HB Bitmap Maker
- pBitmap:=Gdip_CreateBitmap( This.W , This.H ) ;96x29
- G := Gdip_GraphicsFromImage( pBitmap )
- Gdip_SetSmoothingMode( G , 2 )
- Brush := Gdip_BrushCreateSolid( This.Button_Background_Color )
- Gdip_FillRectangle( G , Brush , -1 , -1 , This.W+2 , This.H+2 )
- Gdip_DeleteBrush( Brush )
- Brush := Gdip_CreateLineBrushFromRect( 0 , 0 , This.W , This.H , "0xFF61646A" , "0xFF2E2124" , 1 , 1 )
- Gdip_FillRoundedRectangle( G , Brush , 0 , 1 , This.W , This.H-3 , This.Roundness )
- Gdip_DeleteBrush( Brush )
- ;---------------------------------------------------
- if(This.Default_Button)
- Brush := Gdip_CreateLineBrushFromRect( 0 , 0 , This.W , This.H , "0xFF4C4F54" , "0xFF35373B" , 1 , 1 )
- else
- Brush := Gdip_CreateLineBrushFromRect( 0 , 0 , This.W , This.H , This.Button_Color , "0xFF35373B" , 1 , 1 )
- ;-------------------------------------------
- Gdip_FillRoundedRectangle( G , Brush , 1 , 2 , This.W-2 , This.H-5 , This.Roundness )
- Gdip_DeleteBrush( Brush )
- Pen := Gdip_CreatePen( "0xFF1A1C1F" , 1 )
- Gdip_DrawRoundedRectangle( G , Pen , 0 , 0 , This.W-1 , This.H-3 , This.Roundness )
- Gdip_DeletePen( Pen )
- Brush := Gdip_BrushCreateSolid( This.Text_Color_Bottom )
- Gdip_TextToGraphics( G , This.Text , "s" This.Font_Size " Center vCenter c" Brush " x1 y2 " , This.Font , This.W , This.H-1 )
- Gdip_DeleteBrush( Brush )
- Brush := Gdip_BrushCreateSolid( This.Text_Color_Top )
- Gdip_TextToGraphics( G , This.Text , "s" This.Font_Size " Center vCenter c" Brush " x0 y1 " , This.Font , This.W , This.H-1 )
- Gdip_DeleteBrush( Brush )
- Gdip_DeleteGraphics( G )
- This.Default_Bitmap := Gdip_CreateHBITMAPFromBitmap(pBitmap)
- Gdip_DisposeImage(pBitmap)
- }
- Create_Hover_Bitmap(){
- ;Bitmap Created Using: HB Bitmap Maker
- pBitmap:=Gdip_CreateBitmap( This.W , This.H ) ;96x29
- G := Gdip_GraphicsFromImage( pBitmap )
- Gdip_SetSmoothingMode( G , 2 )
- Brush := Gdip_BrushCreateSolid( This.Button_Background_Color )
- Gdip_FillRectangle( G , Brush , -1 , -1 , This.W+2 , This.H+2 )
- Gdip_DeleteBrush( Brush )
- Brush := Gdip_CreateLineBrushFromRect( 0 , 0 , This.W , This.H , "0xFF61646A" , "0xFF2E2124" , 1 , 1 )
- Gdip_FillRoundedRectangle( G , Brush , 0 , 1 , This.W , This.H-3 , This.Roundness )
- Gdip_DeleteBrush( Brush )
- ;---------------------------------------------------------------------------
- if(This.Default_Button)
- Brush := Gdip_CreateLineBrushFromRect( 0 , 0 , This.W , This.H , "0xFF55585D" , "0xFF3B3E41" , 1 , 1 )
- else
- Brush := Gdip_CreateLineBrushFromRect( 0 , 0 , This.W , This.H , "0x44A826A2" , "0xFF3B3E41" , 1 , 1 )
- ;----------------------------------------------------------------
- Gdip_FillRoundedRectangle( G , Brush , 1 , 2 , This.W-2 , This.H-5 , This.Roundness )
- Gdip_DeleteBrush( Brush )
- Pen := Gdip_CreatePen( "0xFF1A1C1F" , 1 )
- Gdip_DrawRoundedRectangle( G , Pen , 0 , 0 , This.W-1 , This.H-3 , This.Roundness )
- Gdip_DeletePen( Pen )
- Brush := Gdip_BrushCreateSolid( This.Text_Color_Bottom )
- Gdip_TextToGraphics( G , This.Text , "s" This.Font_Size " Center vCenter c" Brush " x1 y2" , This.Font , This.W , This.H-1 )
- Gdip_DeleteBrush( Brush )
- Brush := Gdip_BrushCreateSolid( This.Text_Color_Top )
- Gdip_TextToGraphics( G , This.Text , "s" This.Font_Size " Center vCenter c" Brush " x0 y1" , This.Font , This.W , This.H-1 )
- Gdip_DeleteBrush( Brush )
- Gdip_DeleteGraphics( G )
- This.Hover_Bitmap := Gdip_CreateHBITMAPFromBitmap(pBitmap)
- Gdip_DisposeImage(pBitmap)
- }
- Create_Pressed_Bitmap(){
- pBitmap:=Gdip_CreateBitmap( This.W , This.H )
- G := Gdip_GraphicsFromImage( pBitmap )
- Gdip_SetSmoothingMode( G , 2 )
- Brush := Gdip_BrushCreateSolid( This.Button_Background_Color )
- Gdip_FillRectangle( G , Brush , -1 , -1 , This.W+2 , This.H+2 )
- Gdip_DeleteBrush( Brush )
- Brush := Gdip_CreateLineBrushFromRect( 0 , 0 , This.W , This.H , "0xFF2A2C2E" , "0xFF45474E" , 1 , 1 )
- Gdip_FillRoundedRectangle( G , Brush , 0 , 1 , This.W , This.H-3 , This.Roundness )
- Gdip_DeleteBrush( Brush )
- Brush := Gdip_BrushCreateSolid( "0xFF2A2C2E" )
- Gdip_FillRoundedRectangle( G , Brush , 0 , 0 , This.W , This.H-8 , This.Roundness )
- Gdip_DeleteBrush( Brush )
- Brush := Gdip_BrushCreateSolid( "0xFF46474D" )
- Gdip_FillRoundedRectangle( G , Brush , 0 , 7 , This.W , This.H-8 , This.Roundness )
- Gdip_DeleteBrush( Brush )
- ;------------------------------------------------------------------
- if(This.Default_Button)
- Brush := Gdip_CreateLineBrushFromRect( 5 , 3 , This.W ,This.H-7 , "0xFF333639" , "0xFF43474B" , 1 , 1 )
- else
- Brush := Gdip_CreateLineBrushFromRect( 5 , 3 , This.W ,This.H-7 , "0xFF333639" , "0xFF0066aa" , 1 , 1 )
- ;-----------------------------------------------------------------------
- Gdip_FillRoundedRectangle( G , Brush , 1 , 2 , This.W-3 , This.H-6 , This.Roundness )
- Gdip_DeleteBrush( Brush )
- Pen := Gdip_CreatePen( "0xFF1A1C1F" , 1 )
- Gdip_DrawRoundedRectangle( G , Pen , 0 , 0 , This.W-1 , This.H-3 , This.Roundness )
- Gdip_DeletePen( Pen )
- Brush := Gdip_BrushCreateSolid( This.Text_Color_Bottom )
- Gdip_TextToGraphics( G , This.Text , "s" This.Font_Size " Center vCenter c" Brush " x1 y3" , This.Font , This.W , This.H-1 )
- Gdip_DeleteBrush( Brush )
- Brush := Gdip_BrushCreateSolid( This.Text_Color_Top )
- Gdip_TextToGraphics( G , This.Text , "s" This.Font_Size " Center vCenter c" Brush " x0 y2" , This.Font , This.W , This.H-1 )
- Gdip_DeleteBrush( Brush )
- Gdip_DeleteGraphics( G )
- This.Pressed_Bitmap := Gdip_CreateHBITMAPFromBitmap( pBitmap )
- Gdip_DisposeImage( pBitmap )
- }
- Draw_Default(){
- SetImage( This.Hwnd , This.Default_Bitmap )
- }
- Draw_Hover(){
- SetImage( This.Hwnd , This.Hover_Bitmap )
- }
- Draw_Pressed(){
- SetImage( This.Hwnd , This.Pressed_Bitmap )
- SetTimer , HB_Button_Hover , Off
- While( GetKeyState( "LButton" ) )
- sleep , 10
- SetTimer , HB_Button_Hover , On
- MouseGetPos,,,, ctrl , 2
- if( This.Hwnd != ctrl ){
- This.Draw_Default()
- return False
- }else {
- This.Draw_Hover()
- return true
- }
- }
- }
Add Comment
Please, Sign In to add comment