i was working on some plugins, but now i am working with something really interesting, there is a way to use more than 8 custom chars, you can simply multiplex them by time, the logic is:
turn on set 1->turn off set 1 and turn on set 2 -> turn off set 2 and turn on set 1 ->....
the plugin is done, but the only and major problem is speed, i need like 25-30 screen updates per second and i can't get them, maybe to get more speed it should be included in the core of the program, or something that i don't know, my code is written in VB.NET 2008
here is the source code:
Code: Select all
Dim mom As Boolean
Dim a, b, c, d As Boolean
Public Function function1(ByVal param1 As String, ByVal param2 As String) As String
start:
If mom = True Then
If param1 = 1 And a = False Then
a = True
Return "$CustomChar(8,14,27,10,27,10,27,14,0)$Chr(136)"
End If
If param1 = 2 And b = False Then
b = True
Return ""
End If
If a = True And b = True Then
mom = False
GoTo reset
End If
Else
If param1 = 1 And c = False Then
c = True
Return ""
End If
If param1 = 2 And d = False Then
d = True
Return "$CustomChar(8,14,10,14,0,0,0,0,0)$Chr(136)"
End If
If c = True And d = True Then
mom = True
GoTo reset
End If
End If
reset:
a = False
b = False
c = False
d = False
GoTo start
End Function
$dll(name,1,1,) <--Set1
$dll(name,1,2,) <--Set2
now there are 2 custom chars defined directly in the code for testing, but the idea is to send them to the plugin.
sorry for my english
bye