help with code(something wrong with it)

Posts 16–30 of 32 · Page 2 of 3
text isnt sowing for me

Imports System.Drawing

Public Class Form1
Private Declare Function GPSL_SetTextLineData Lib "lala.dll" (ByVal wTextPosX As Short, ByVal wTextPosY As Short, ByVal LPCTSTR As String, ByVal dwTextColor As Integer, _
ByVal bBlackBackground As Boolean, ByVal cSize As Byte, ByVal bTextBold As Boolean, ByVal cFontFamily As Byte) As Boolean
Private Declare Function GPSL_ShowText Lib "lala.dll" (ByVal bShowIt As Boolean) As Boolean




Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

Dim Text1 As String = Nothing
Text1 = "[Mpgh.net]Ownz you!"
GPSL_SetTextLineData(1064, 5, Text1, Color.FromArgb(255, 255, 0, 0).ToArgb, True, 20, True, 0)
GPSL_ShowText(True)

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
End Sub
End Class
[php]GPSL_SetTextLineData(1064, 5, Text1, Color.FromArgb(255, 255, 0, 0).ToArgb, True, 20, True, 0)[/php]

1064,5 are your x and y coordinates. Is your resolution even set that high? If not, I'd suggest adjusting those to something like 500,500 just to test.
Or, 1,1 to make sure xD
Hmmm.. Lemme go try
i treied 500,500 and 0,0 nothing
Try creating a new thread and putting the drawing function in an infinite loop, as far as I know, that's how DirectX normally works.
loop? i dont know about that
Quote Originally Posted by tremaster View Post
loop? i dont know about that
This is how you create a seperate background thread:

[php]Dim NewThread As New Threading.Thread(AddressOf DrawingFunction)
NewThread.Start()[/php]And this is how you normally do an infinite loop:
[php]
Sub DrawingFunction()

While True
'Code for drawing function...
End While

End Sub[/php]And don't forget to include this line of Form's load event:

[php]
'Not necessary if you don't access the form's controls directly...
Me.CheckForIllegalCrossThreadCalls = False [/php]


And ffs, if you don't know how to do loops, stop thinking about making such programs...

Damn, this nigga is so unrealistic !!
Then you shouldn't be trying to render text over games yet.
wait im sopposed to make this over a game?
Quote Originally Posted by tremaster View Post
wait im sopposed to make this over a game?
Judging by this:
This is a tutorial for basic D3D funtions in DirectX full screen processes. Just simple things for displaying FPS, Text and pictures.
NOTICE: You need the Hooking library (*.dll) in your program folder!
I would assume it's to render text over full screen games or processes.
-_- fail fail fail -_-

If youre trying to make text on a form.




USE A GODDAMN LABEL XD
do i have to loop it did it work for you withought looping

im going to sleep ill finish tomorow
Quote Originally Posted by tremaster View Post
do i have to loop it did it work for you withought looping

im going to sleep ill finish tomorow
Nigga Plz, plz learn the basics first ...

+

Thank God you are going to sleep :\
Gotta agree with above^^

Basics first, then harder stuff.

If we could jump directly to hard stuff everyone would be a programmer.
Quote Originally Posted by Lolland View Post
Gotta agree with above^^

Basics first, then harder stuff.

If we could jump directly to hard stuff everyone would be a programmer.
This Niggas ^^ /
Posts 16–30 of 32 · Page 2 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?