ThyElite Forums

ThyElite Forums (http://www.thyelite.com/forum/index.php)
-   Endorsed & Supported programs (http://www.thyelite.com/forum/forumdisplay.php?f=18)
-   -   YAWCC v1.6 (http://www.thyelite.com/forum/showthread.php?t=1310)

liljonx522x 08-05-2006 05:05 PM

i cant download WPE pro for some reason

Melonman 08-06-2006 12:57 AM

make sure your virus protection is off.

hotshot1 08-06-2006 07:09 AM

that is a sweet client thanks man peace i have ben looking for this for a weeks the sumo is the best

Sifter 08-07-2006 02:18 AM

Yeah... about those earlier posts, if you can, will you tell me how to do the status for just one of the prizes?
Also, how do you use the INI files and whatnot on the flooder? I just need to know for saving Text1... default name.

DefectiveProduct 08-07-2006 12:24 PM

To save Text1



Quote:

Private Sub WriteConfig
On Error GoTo error
Open "" & App.Path & "\CONFIGNAME.ini" For Output As #1
Print #1, "T=" & Text1.Text & ""
Close #1
Exit Sub

error:
MsgBox "An error occured while writing the config.", vbCritical, "ERROR"
End Sub
To read the config and get the content from it.


Quote:

Private Sub ReadConfig()
On Error GoTo error
If Dir("" & App.Path & "\CONFIGNAME.ini") = "" Then
Exit Sub
End If

LineNum = 0
Open "" & App.Path & "\CONFIGNAME.ini" For Input As #1
Do Until EOF(1)
LineNum = LineNum + 1
Line Input #1, ConfigLine

If ConfigLine Like "T=*" Then
Text1.Text = Right(ConfigLine, Len(ConfigLine) - 2)

Else
End If
Loop

Close #1
Exit Sub

error:
MsgBox "An error occured while reading the config.", vbCritical, "Error"
End Sub
To add a new line of text in your ini file, just insert this small code in the line that prints what you want the file to say.

Quote:

" & vbCrLf & "
So let's say you had three textboxes named Text1, Text2 and Text3.

Quote:

Print #1, "1=" & Text1.Text & vbCrLf & "2=" & Text2.Text & vbCrLf & "3=" & Text3.Text & vbCrLf & ""

To add the reading of another line in the config, add another one of these codes to your ReadConfig function.

Quote:

If ConfigLine Like "(whatever)=*" Then
(whatever).Text = Right(ConfigLine, Len(ConfigLine) - 2)
To write the config, just insert this code in a command button or some other function.

Quote:

WriteConfig
and to read it,

Quote:

ReadConfig
It's kind of complicated but if you just read everything over and look at what is written you can get the hang of it. I'm far too lazy to explain everything piece by piece, so you'll have to just try and figure it out. :|

Vis 08-07-2006 12:29 PM

lolpwnt

someone move this shit to endorsed

DefectiveProduct 08-07-2006 12:33 PM

Moved. :-*

Sifter 08-12-2006 11:27 AM

How do i make it so that on the Form_load event it will do the read config action? Because its not working for me...

DefectiveProduct 08-12-2006 01:35 PM

Private Sub Form_Load()
ReadConfig
End Sub



Just use the name of the sub in an another event to trigger that sub.

Sifter 08-12-2006 03:34 PM

But i had that, it doesnt work...


All times are GMT -6. The time now is 12:04 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.