Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 02:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



how make script visual basic to edit text per space

Discussion on how make script visual basic to edit text per space within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
sutansah's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 118
Received Thanks: 48
how make script visual basic to edit text per space

hmmm....if anyone know how to make VB script to edit text by space in visual basic?...
this simple text...write in notepad++
Code:
12907|a|20|44|1|5925|0|0|0|0|0|0|0|0|0|0|0|18|0|1|9|5|0|5|2|5|0|0|0|0|1|10|3|0|0|15400|7700|0|1|0|1|0|0|8|0|39|4|0|0|0|0|0|0|0|0|0|0|0|0|0.000000|0|0.000000|0|0.000000|0|0.000000|0|0.000000|0|0.000000|3|511|210|2866|301|0|0|0|0|0|0|0|0|0|a|
i want to make program so i can edit text by space....for example in up there i want edit text in space what writen 20...i want to edit 20 to 21 with visual basic script...so if that script can edit text by space i want to edit 5925 and another space too...

im make script that..but cant work...this my scipt for example i make...
Code:
Const ForReading=1
Const ForWriting=2
Set objFSO = CreateObject(“Scripting.FileSystemObject”)
folder = “c:\rn\”
filePath = folder & “file.txt”
Set myFile = objFSO.OpenTextFile(filePath, ForReading, True)
Set myTemp= objFSO.OpenTextFile(filePath & “.txt”, ForWriting, True)

Do While not myFile.AtendofStream

myLine1 = myFile.ReadLine
myLine2 = myFile.ReadLine

If InStr(myLine1, “Birthday”) Then
myLine1 = “|Birthday=”
end if

If InStr(myLine2, “place”) Then
myLine2 = “|place=”
end if

myTemp.WriteLine myLine1
myTemp.WriteLine myLine2

loop

myFile.Close
myTemp.Close

results in….

VBScript runtime error: Input past end of file
anyone can help me to fix that?....please...
sutansah is offline  
Old 03/23/2012, 11:16   #2
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
regex is the thing you are looking for.
MoepMeep is offline  
Reply


Similar Threads Similar Threads
[Release] how to edit the text and make your Client very customized
06/11/2012 - Rappelz Private Server - 20 Replies
Hello guys in this Thread i will teach you how to edit the text strings in the game and make it customized what you need is the Resource file in the attachment and a good Hex editing software you can edit the text , change it's color , change the size guide : http://i39.tinypic.com/nnp4pj.jpg
[Guide]How to make a WebBrowser in Visual Basic
12/03/2011 - Off Topic - 4 Replies
Hey Guys - mods pls move or close if in wrong place :) This is my guide on how to make a web browser in visual basic: http://www.youtube.com/watch?v=Rsv0NSgGzs0&fe ature=feedu
Visual Basic AutoStart-Script Virus Problem
10/22/2011 - Main - 3 Replies
Hey, erstmal sorry wegen dem "doofen" Titel, mir fiel nichts besseres ein :P. Also mein Problem: Ich programmiere mit Visual Basic momentan ein Programm. Nun kann der unter den Optionen auswählen ob das Programm Automatisch beim anschalten des Pc´s gestartet werden soll.
Visual Basic Text in bestimmtes Fenster senden
05/09/2011 - .NET Languages - 8 Replies
Hallo, Ich bin grade dabei ein Programm zu scripten was z.b. eine textbox enthält und ein button und wenn man auf den butten drückt soll der text aus der textbox in ein betsimmtes fenter gesendet werden das man irgentwo angeben muss... Also eig alles wie bei einem Spammer (ganz einfach) Aber wie bekomme ich hin das Visual basic etwas sofort wenn man auf ein button klickt ein Text in ein anderes Fenster Sendet ??? Bitte hilft mir^^
Visual Basic - Text in "irgendwas" codieren ??
05/05/2011 - .NET Languages - 3 Replies
Hey leutz ich wollte mich mal ein kleinen Codierer Bauen und wollte das bei A er es in 00001 und B in 00100 codiert workt auch nur er erkennt die bustaben nichtmal sobal es zsm ist AB ... nur wenn ich direkt das wort in VB speicher als string erkennt er es , ich bräuchte hilfe da ich will das er aus jeden bustaben eine zahl macht und das auch erkennt wenn ich zb " hallo " schreibe... bsp 01000 00001 010100 010100 010000... und logisch weise auch die back funktion das er aus "01000 00001...



All times are GMT +1. The time now is 02:16.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.