New Program - NC TOOL

Only the first section, and this is only for those who are intrested in the code itself. pretty simple program for setting up the RPOS colour ( i know the .ini isnt the right one. that will be set later )
- Code: Select all
Dim colour As String
Dim red As String
Dim blue As String
Dim green As String
Dim allcolour As String
Private Sub cmd_rposexit_Click()
frm_rpos.Visible = False
frm_main.Visible = True
End Sub
Private Sub cmd_rposreset_Click()
SHP_colour.BackColor = RGB(0, 0, 0)
HSB_Red.Value = 0
HSB_Green.Value = 0
HSB_Blue.Value = 0
End Sub
Private Sub cmd_write_Click()
Dim x As Long
Dim sSection As String
Dim sEntry As String
Dim sString As String
Dim sFileName As String
allcolour = red$ & " " & green$ & " " & blue$ & " " & 255
sSection$ = "DEFAULT"
sEntry$ = colour$
sString$ = allcolour$
sFileName$ = "c:\sample.ini"
x = WritePrivateProfileString(sSection$, sEntry$, sString$, sFileName$)
If x Then
MsgBox "Setting has been saved"
Else
MsgBox "Error saving setting"
End If
End Sub
Private Sub Form_Load()
frm_rpos.Top = 0
frm_rpos.Left = 0
End Sub
Private Sub HSB_Blue_Change()
SHP_colour.BackColor = RGB(HSB_Red.Value, HSB_Green.Value, HSB_Blue.Value)
red$ = HSB_Red.Value
green$ = HSB_Green.Value
blue$ = HSB_Blue.Value
End Sub
Private Sub HSB_Green_Change()
SHP_colour.BackColor = RGB(HSB_Red.Value, HSB_Green.Value, HSB_Blue.Value)
red$ = HSB_Red.Value
green$ = HSB_Green.Value
blue$ = HSB_Blue.Value
End Sub
Private Sub HSB_Red_Change()
SHP_colour.BackColor = RGB(HSB_Red.Value, HSB_Green.Value, HSB_Blue.Value)
red$ = HSB_Red.Value
green$ = HSB_Green.Value
blue$ = HSB_Blue.Value
End Sub
Private Sub opt_rpos_Click(Index As Integer)
Select Case Index
Case 0
colour$ = "Default"
Case 1
colour$ = "DefaultText"
Case 2
colour$ = "DefaultTextEffect"
Case 3
colour$ = "SysMessages"
Case 4
colour$ = "GameMessages"
Case 5
colour$ = "LocalChat"
Case 6
colour$ = "GlobalChat"
Case 7
colour$ = "TeamChat"
Case 8
colour$ = "DirectChat"
Case 9
colour$ = "Player"
Case 10
colour$ = "PlayerNoPK"
Case 11
colour$ = "CharSysWarning"
Case 12
colour$ = "CharSysBonus"
Case 13
colour$ = "CharSysCritical"
Case 14
colour$ = "ContextActive"
Case 15
colour$ = "ContextNoActive"
Case 16
colour$ = "ContextDisabled"
Case 17
colour$ = "HighlightText"
Case 18
colour$ = "HighlightBackground"
Case 19
colour$ = "Item"
Case 20
colour$ = "ItemDisabled"
Case 21
colour$ = "ItemNotUsable"
Case 22
colour$ = "GoodSoullight"
Case 23
colour$ = "NeutralSoullight"
Case 24
colour$ = "BadSoullight"
Case 25
colour$ = "Damage"
Case 26
colour$ = "Heal"
End Select
End Sub