Box Grandmaster Cheater
Reputation: 0
Joined: 16 Oct 2007 Posts: 541
|
Posted: Wed Dec 12, 2007 8:38 am Post subject: hey i need a awser please |
|
|
hello, if anyone knows how to make a text box so when you click a command buton it will insert the text inside of it into a text file please give meh the code ill give +rep to frist person to helps me
bumbsdfdkfiogomjhiofmhojihnmetpojhimetjng
_________________
| zurkei wrote: | | Wow box your a real dick, I can't believe I actually thought that you were telling the truth... |
Fact: no one tells the truth on cheat engine fourms
Last edited by Box on Thu Jan 03, 2008 10:11 am; edited 1 time in total |
|
r34lZ How do I cheat?
Reputation: 0
Joined: 12 Dec 2007 Posts: 4
|
Posted: Wed Dec 12, 2007 9:16 am Post subject: |
|
|
Do you mean code in VB?
6 ... .NET?
C?
VB6:
| Code: | Private Sub Command1_Click()
On Error Resume Next
Dim a as Byte
a = FreeFile()
Open "C:\b.txt" For Append As #a
Print #a, TextBox1.Text
Close #a
End Sub |
.NET:
| Code: | Private Sub Button1_Click(ByVal sender as ...)
System.IO.File.WriteAllText("C:\b.txt", TextBox1.Text)
End Sub |
C:
| Code: | LRESULTCALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
switch(msg) {
case WM_COMMAND:
if(wParam == IDC_BUTTON) { /*not sure, if it's w- or lParam*/
char a[512];
FILE *fp = fopen("C:\\b.txt", "w");
GetDlgItemText(hWnd, IDC_TEXTBOX, a, sizeof(a) - 1);
fprintf(fp, "%s", a);
fclose(fp);
}
}
return DefWindowProc(hWnd, msg, wParam, lParam);
} |
|
|