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, Portable Roblox Tool © VANHEARTNET
- ;@Ahk2Exe-Set FileVersion, 1.0.0.1
- ;@Ahk2Exe-SetInternalName Roblox Portable Tool
- ;@Ahk2Exe-SetName Portable Roblox
- ;@Ahk2Exe-SetOrigFileName Portable Roblox Tool
- ;@Ahk2Exe-Set ProductName, Portable Roblox Tool
- ;@Ahk2Exe-Set ProductVersion, 1.0.0.1
- ;@Ahk2Exe-Set Description, Portable Roblox Tool
- ;@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,Force
- #Persistent
- #NoEnv
- Menu,tray, NoStandard
- ;~ Menu, Tray, Tip, PORTABLE VALORANT
- 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>
- if not A_IsAdmin
- Run, *RunAs "%A_ScriptFullpath%"
- pToken:=Gdip_Startup()
- ;Create a empty array called HB_Button
- global HB_Button:=[]
- IfExist,url.ini
- {
- IniRead,BR,url.ini,Protocol,browser
- if(BR=0)
- BR:="None"
- }
- else
- BR:="None"
- CC:="ff4da6"
- Gui,1:+AlwaysOntop
- Gui,1:Color,360320,999999
- IfNotExist,%A_MyDocuments%\Panalo.mp3
- FileInstall,Panalo.mp3,%A_MyDocuments%\Panalo.mp3
- Gui,1:Font,s8 Bold cFFFF00, Arial Black
- Gui,1:Add,Text,x20 y0 w270 Center,- V - A - N - H - E - A - R - T - N - E - T -
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x:=10 , y := 20 , w := 140 , h := 40 , Button_Color := "865ABB" , Button_Background_Color := "360320" , Text := "Remove Roblox" , Font := "Arial" , Font_Size := 12 " Bold" , Font_Color_Top := CC , Font_Color_Bottom := "111111" , Window := "1" , Label := "Test_Button_Press" , Default_Button := 1 , Roundness:=5 ) )
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x+=w+10 , y := 20 , w := 140 , h := 40 , Button_Color := "865ABB" , Button_Background_Color := "360320" , Text := "Desktop Shortcut" , Font := "Arial" , Font_Size := 12 " Bold" , Font_Color_Top := CC , Font_Color_Bottom := "111111" , Window := "1" , Label := "Create_Shortcut" , Default_Button := 1 , Roundness:=5 ) )
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x:=10 , y +=h+5 , w := 140 , h := 40 , Button_Color := "865ABB" , Button_Background_Color := "360320" , Text := "Create MKLink" , Font := "Arial" , Font_Size := 12 " Bold" , Font_Color_Top := CC , Font_Color_Bottom := "111111" , Window := "1" , Label := "Create_MKLink" , Default_Button := 1 , Roundness:=5 ) )
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x+=w+10 , y:=y , w := 140 , h := 40 , Button_Color := "865ABB" , Button_Background_Color := "360320" , Text := "Delete MKLink" , Font := "Arial" , Font_Size := 12 " Bold" , Font_Color_Top := CC , Font_Color_Bottom := "111111" , Window := "1" , Label := "Delete_MKLink" , Default_Button := 1 , Roundness:=5 ) )
- Gui,1:Font,
- Gui,1:Font,s8 Bold c888888, Arial Black
- Gui,1:Add,Text,x70 y120 Center, URL Protocol AppData Method:
- Gui,1:Font,s8 Bold c00FFFF, Arial Black
- Gui,1:Add,Text,x71 y121 Center, URL Protocol AppData Method:
- Gui,1:Font,
- Gui,1:Font,s15 Bold c000000, Calibri
- Gui,1:Add,Edit,x20 y+10 w270 r1 Center vEdit1,%BR%
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x:=10 , y:=185 , w := 140 , h := 40 , Button_Color := "865ABB" , Button_Background_Color := "360320" , Text := "Save" , Font := "Arial" , Font_Size := 12 " Bold" , Font_Color_Top := "00FF00" , Font_Color_Bottom := "111111" , Window := "1" , Label := "Save" , Default_Button := 1 , Roundness:=5 ) )
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x+=w+10 , y:=185 , w := 140 , h := 40 , Button_Color := "865ABB" , Button_Background_Color := "360320" , Text := "Delete Appdata" , Font := "Arial" , Font_Size := 12 " Bold" , Font_Color_Top := "FF0000" , Font_Color_Bottom := "111111" , Window := "1" , Label := "Delete_App" , Default_Button := 1 , Roundness:=5 ) )
- HB_Button.Push( New HB_Flat_Rounded_Button_Type_1( x:=10 , y+=h+5 , w := 290 , h := 50 , Button_Color := "865ABB" , Button_Background_Color := "360320" , Text := "Launch Roblox" , Font := "Arial" , Font_Size := 12 " Bold" , Font_Color_Top := "ffccff" , Font_Color_Bottom := "111111" , Window := "1" , Label := "Launch_Roblox" , Default_Button := 1 , Roundness:=5 ) )
- Gui,1:Font,
- Gui,1:Font,s10 Bold cff0000, Times New Roman
- Gui,1:Add,Text,x20 y280 w270 Center vText1, Panalo - Ez Mil
- GuiControl ,1:Focus , Text1
- Gui,1:Show,w310 h300,Roblox Portable Tool
- IfNotExist, Roblox Portable by © VANHEARTNET.exe
- {
- MsgBox,Error,Please Move to Roblox Portable Folder. `n`n-VANHEARTNET
- ExitApp
- }
- SetTimer, HB_Button_Hover , 50
- SetTimer,PlayMusic, 100
- Loop
- {
- SoundPlay,%A_MyDocuments%\Panalo.mp3,1
- sleep,5000
- }
- return
- Delete_App:
- ;-----------------------------------------------------
- ; 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:Submit,Nohide
- FileRemoveDir,C:\Users\%A_UserName%\AppData\Local\%Edit1%,1
- MsgBox,262208,Message,Delete Complete!
- 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:Submit,Nohide
- Gui,1:+Owndialogs
- if (Edit1="") or (Edit1=0)
- {
- IniWrite,0,url.ini,Protocol,browser
- return
- }
- else if(Edit1="None")
- {
- IniWrite,0,url.ini,Protocol,browser
- return
- }
- IfExist, Appdata\%Edit1%
- {
- FileRemoveDir,C:\Users\%A_UserName%\AppData\Local\%Edit1%,1
- Run, *RunAs cmd.exe /c mklink /d "C:\Users\%A_UserName%\AppData\Local\%Edit1%" "`%CD`%\Appdata\%Edit1%",,Hide
- }
- else
- return
- IniWrite,%Edit1%,url.ini,Protocol,browser
- MsgBox,262208,Message,Complete!
- return
- Launch_Roblox:
- ;-----------------------------------------------------
- ; 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
- IfNotExist, Roblox Portable by © VANHEARTNET.exe
- {
- MsgBox,Error,Please Move to Roblox Portable Folder. `n`n-VANHEARTNET
- ExitApp
- }
- else
- Run, *RunAs cmd.exe /c "Roblox Portable by © VANHEARTNET.exe",,Hide
- return
- PlayMusic:
- TX--
- GuiControl,1:Move,Text1,x%TX%
- if(TX="-180")
- {
- TX:=310
- GuiControl,1:Move,Text1,x%TX%
- }
- Return
- GuiClose:
- Esc::
- Exit1:
- FileDelete,%A_MyDocuments%\Panalo.mp3
- ExitApp
- Create_Shortcut:
- ;-----------------------------------------------------
- ; 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
- StringReplace,FullPath,A_ScriptFullPath,%A_ScriptName%,Roblox Portable by © VANHEARTNET.exe,All
- FileCreateShortcut,%FullPath%,%A_Desktop%\Roblox.lnk,%FullPath%,
- return
- Delete_MKLink:
- ;-----------------------------------------------------
- ; 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
- FileRemoveDir,C:\Program Files (x86)\Roblox,1
- FileRemoveDir,C:\ProgramData\Roblox,1
- FileRemoveDir,C:\Users\%A_UserName%\AppData\Local\Roblox,1
- Gui,1:+Owndialogs
- MsgBox, 262208, Success, Roblox Folder in System has been Deleted!
- return
- Create_MKLink:
- ;-----------------------------------------------------
- ; 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
- Run, *RunAs cmd.exe /c mklink /d "C:\Program Files (x86)\Roblox" "`%CD`%\Roblox" && mklink /d "C:\ProgramData\Roblox" "`%CD`%\Programdata\Roblox" && mklink /d "C:\Users\%A_UserName%\AppData\Local\Roblox" "`%CD`%\AppData\Roblox",,Hide
- Gui,1:+Owndialogs
- MsgBox, 262208, Message, MKLink Success!!! `n`n-Thank You...
- return
- Test_Button_Press:
- ;-----------------------------------------------------
- ; 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
- FileRemoveDir,C:\Program Files (x86)\Roblox,1
- FileRemoveDir,C:\ProgramData\Roblox,1
- FileRemoveDir,C:\Users\%A_UserName%\AppData\Local\Roblox,1
- FileRemoveDir, %A_Temp%\reg,1
- IfExist,C:\Users\%A_UserName%\Desktop\Roblox Studio.lnk
- FileDelete,C:\Users\%A_UserName%\Desktop\Roblox Studio.lnk
- else IfExist,C:\Users\%A_UserName%\Desktop\Roblox Player.lnk
- FileDelete,C:\Users\%A_UserName%\Desktop\Roblox Player.lnk
- IfExist,url.ini
- FileDelete,url.ini
- RegN:=0
- Loop, 3
- {
- RegN++
- If (RegN=1)
- SetRegView, 32
- if (RegN=2)
- SetRegView,64
- if(RegN=3){
- SetRegView,Default
- RegN:=0
- }
- RegDelete,HKLM,Software\ROBLOX Corporation,
- RegDelete,HKLM,SOFTWARE\ROBLOX Corporation,
- RegDelete,HKLM,SOFTWARE\Wow6432Node\ROBLOX Corporation,
- RegDelete,HKEY_CLASSES_ROOT,Roblox.Place,
- RegDelete,HKEY_CLASSES_ROOT,roblox-player,
- RegDelete,HKEY_CLASSES_ROOT,roblox-studio,
- Sleep, 100
- }
- Gui,1:+Owndialogs
- MsgBox, 262208, Success, Roblox Folder in System has been Deleted!`nRoblox Registry has been Deleted!`nRoblox Portable Settings has been Reset!
- 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
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment