Read A Games Log File As It Is Running?
Sep 9, 2011
I'm trying to read a log file for a game so I can extract certant info from it and track my stats as the game is running, but I keep getting access denied error for the log file. I would also like to have the log read only after it has been changed but the event handler never fires. I'm assuming it has to do with the access error. Can someone give me an example of how to watch a text file that's in use by another program and read it after it changes. The code I have works if I open the file in notpad, change it then save it but not when the game is running. I did it once before for the same game but lost my code and there are other programs that parse the log file so I know it can be done.
View 1 Replies
ADVERTISEMENT
Apr 22, 2012
I am trying to create a sort of 'personal code library' in visual studio 2010 where the form displays a list box of certain project files in vb that I have made in the past and when selected, a button can be pressed that launches the .exe files of those visual basic program project files or displays the source code (.vb file)
[Code]...
View 1 Replies
Apr 27, 2009
Is it possible to read, write to a text file in resources whilst the program is running. If this is possible then can someone show me how it's done.
View 8 Replies
Aug 4, 2011
My question is : How do I find out what processes/information are contained inside System .dll files ?
I recently wrote a games program which used the file "Cards.dll" in which was stored a full deck of cards. That was exactly what I wanted. I discovered the existance of this file by chance from a friend and would like to get a list of the contents and functionality of all the other .dll files.
View 3 Replies
Mar 11, 2010
I have a txt file that I need to read into a listview, but I need to read from a specific line in that file. Below is a sample of the txt file to read,
6400,3200,2,95.5,84,76.6,0
1,2,-20,15,0,0,0,"NO",0,0
TOTAL GPM= 6400 HWT= 95.5 CWT= 84.0 IWBT= 76.6 ALTITUDE= 0
CODE]...
View 1 Replies
Jun 2, 2010
I've created a new ASP.NET Dynamic Data website and have used LINQ-to-SQL for the framework. I start up the application and it displays my tables fine and I can browse them - but it doesn't give me any create/update/delete abilities - all I can do is read? I didn't change anything from the defaults - what gives?
View 1 Replies
Apr 13, 2010
Is there a way to call a running application (my own) and read properties from it? In this case read and get a collection of objects and put it into a similar collection.
View 4 Replies
Apr 13, 2009
I am creating a simple button based rpg and was wondering if someone could help me with 3 things how to hold information within the game until the player save's the game, Saving the game, and Loading the game.I want the saved games to be saved onto a encryted file like .db or .dat file..
View 3 Replies
May 7, 2009
I am trying to write a Windows Script that will allow me to monitor the following: That 2 x seperate but specific processes within Component Services "Running Processes" list are currently running and have not reset within the past hour. If I already know the PID, then I can retrieve the CreationDate (I assume which I can use to check for restarts? or is this the actual process creation/installation date) for each specific process, however if a restart occurs the PID will change and my script needs to know what the new PID is without me telling it!
[Code]...
View 2 Replies
Oct 24, 2009
I have created a program that saves the co-ordinates of the users mouse and saves it to a text file to be used as an auto clicker.
View 2 Replies
Dec 15, 2009
I'm using vb.net 1.1 to develop the program. I got text files that contain test result from a machine, like below.
T1 1.24535 2.56335 2.43253 1.24538 2.55619 4.35243
T2 1.42542 1.63728 3.57295 4.59275 1.57320 2.72057
T3 5.12857 2.45375 6.38593 2.58375 3.57259 3.57204
I need to check the test result with the data from database, to find out which test result is failed. If there is a fail test result, I will show an alert to the operator and stop the checking process. Until the operator close the alert, then the checking process will continue from the last read point.
View 2 Replies
Sep 21, 2011
I have a number of word documents I am converting. Everything is going great until I get a file that is read only. In this case I get a Save As prompt.
Is there any way to open the file in read/write format? I should have admin privileges so access isn't an issue.
I'm using VB.net to open the files. More specifically
doc = word.Documents.Open(path, Type.Missing, False, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing)
View 2 Replies
Feb 27, 2012
Reading a .txt file in VB.net. My file path is C:UsersMyLilMulePepeDocumentsVisual Studio 2008Projectscurtain_calls.txt.
This is my line of Dim LoanOptionsFile As String = "C:UsersMyLilMulePepeDocumentsVisual Studio 2008Projectscurtain_calls.txt"
I can read the file when I run the program, but how do I write the file path so that someone else can download my program and file and read the file on their system?
View 3 Replies
Oct 3, 2009
I'm trying to make a program that can read .mp3 data (Such as Artist, Album, Year, Track number, etc), but I need to be able to do two things that I have no clue how to do:
1. Read starting from a specified string (E.G, On one line it states: [code]
2. Read until a specified string (E.G, On the previously stated line,I need to read starting from what I said, up until.
View 8 Replies
Feb 13, 2012
I have been looking for like 3 hours trying to find a dll or anything to make a simple cards game, but everything I find is oriented to C.
In this page A FreeCell game using Cards.dll - CodeProject� they talk about just what I want, but I cannot make it work in Visual Studio 2008 using Visual Basic.net, I don�t know if that has anything to do with the Vista OS I am using.
In the page I mention the author says "There are many good articles on the net on how to use the Cards dynamic link library" and I am sure the good articles are there, but my good luck has make me looping around the same nonsense results so I end up with nothing after 3 hours search.
The game I want to make is just something for a project we must do in class, how to start making a cards game fast and simple. If someone knows about a cards dll that works fine with vbnet, that someone would be my new hero.
View 2 Replies
Aug 15, 2009
i'm just wondering if someone can help me make a game in visual basic 2008? can i get some exact code on how to make it.
View 6 Replies
Jan 10, 2010
the thing is that i am creating a little launcher shell that will start on a lan-party computer full with games.all the things i am doing with it is for my own use only and will not be used for harmfull stuff. in the other topic i got the intention that they thought i was a cracker of hacker or something.im am just creating a launcher app that launches my games without the use of explorer.exe to be loaded with windows.i have done several things to try to load a game when i press a button but they always crash. when i start the games normally there is no problem.first i thought it needed the use of explorer.exe but when i tested my app with explorer.exe running i got the same result. so i think its my app that is causing the problem.
i have used this:
Process.Start("C:\Program Files (x86)\EA GAMES\Battlefield 2\BF2.exe")
and this:
Dim startInfo As System.Diagnostics.ProcessStartInfo
Dim pStart As New System.Diagnostics.Process
startInfo = New System.Diagnostics.ProcessStartInfo("C:\Program Files (x86)\Ubisoft\Related Designs\ANNO 1404\Anno4.exe")
[code].....
as for the people who replied in the other topic. the register files you have seen in my code was for activating the GameShell.exe to run as shell instead of the explorer.exe for the current user and for all users and to restore it to explorer.exe.
View 5 Replies
Mar 31, 2010
i have a question regarding how to developed a multiplayer games using VB. i am a student and beginner on VB world.i managed to create a simple Sudoku game using VB knowledge from the internet and some books.I am fan of Sudoku games published in newspaper everyday.but now i really interested on how to develop the multi-player version using the same coding. is it possible?
i tried to write a script on developed tic-tac-toe for multi-player based from a book using VB6 for an example but got many errors. how to develop a simple multiplayer for Sudoku? i'm using VB 2008 Express Edition.
View 1 Replies
May 2, 2012
Like fraps, that Draw"FPS"usuallyyellow,andredWhen filming.[url]...
View 1 Replies
Mar 25, 2010
Now my question is, is it possible to use Hotkeys and ScreenCapture in a Fullscreen game?If so, how?What im acutaly trying to do is a program to take a screenshot ingame (for some reason, this game doesnt have an option to take screenshots ingame.. Bad Company 2)
View 7 Replies
Jul 13, 2009
I am trying to make a two player game.Each player is able to move left and right, aim up and down, jump, and shoot.On some occasions when a number of keys are being pressed at once, some other keys wont register.For example, you can hold a key down to keep moving left, keep holding a key down to aim up(changing the angle), keep holding a key down to keep jumping, keep holding a key down to keep shooting. and there are TWO players at the same time:if both players are shooting, only one can aim down(press key to change angle). but it is fine if both trying to aim up ? Can the keyboard not handle too many keys at once?
View 1 Replies
Jul 27, 2010
There's a game that I play, that can be modded. I create mods for it. But some people do not know how to apply the mods by themselves, and just explaining to one person takes about an hour alone.So what I'm wanting to do:Create a program that can add - remove - detect what mods are being used.We'll use'C:GameAddon' For an example target.What I'm wanting:Check Boxes that automatically check when the mod is already in the 'C:GameAddon' folder when the program starts up.and UnCheck'd if the addon isn't in there.
View 1 Replies
Aug 16, 2009
Put some advanced Games on Form?
View 3 Replies
Nov 8, 2010
I am trying to download a file off my web server (easy) but the file its downloading is the updated version of the file running. I finally was able to program my automatic update software the program simply downloads a .txt file from my web server, reads it, and if the the version = (new version here) then download. If not, then go to another form. The problem I am getting though, is when the version is outdated, the file will go to download the new .exe and it gets and error saying "File already exists"
[Code]...
View 1 Replies
Jan 24, 2012
I am trying to build a simple AutoUpdate application using VB.NET. It was quite simple. That is, I put the newest ZIP file in my hosting site, and then download it using WebClient.DownloadFileAsync. After it get downloaded, I extract it using [URL]
But each time I run the unzip.exe using Process.start, Windows 7 always show Open File Security.
Is it possible for VB.NET to bypass such security restriction?
Btw, this is my code of using WebClient.DownloadFileAsync, in case any one google about it and landed on this page :
Public Class AutoUpdate
Dim installationFolder As String = "C:Program Filesxyzabc"
Dim updateFileNameTarget As String
Private Sub btnStartUpdte_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStartUpdte.Click
[Code]...
View 1 Replies
Apr 19, 2011
How does xFire place itself inside of games?
View 1 Replies
May 15, 2011
I am looking to write my own media library and was wondering are there any free .Net APIs out there to identify a product based on a given barcode? As a secondary point are there .Net APIs to return cover art for books, CD, games etc based on a barcode.
View 3 Replies
Jan 17, 2012
How to Create Video Games in VB.Net
I realize that this is a very popular subject, especially amongst budding developers. The drive to create games may be the reason you started working with Visual Basic in the first place. After stepping through a few samples and getting the hang of working with user controls on a form, it may be very tempting to start to throw some PictureBoxes and a Timer on a Form and start to implement some game logic. Seems easy enough, right?
To some extent, this is a true statement.You could start to do this and it would be easy enough at first. But when you begin to try to calculate collision and animate or rotate your sprites, you may start to run into some difficulty. And attempts to circumvent the problems often lead to even worse issues.This can cause an endless spiral of misery which could leave you thinking VB just isnt meant to make games!
The initial problem that most people face is the desire to use a PictureBox (or any other control) as the logical Sprite container for the elements in the game. It makes sense since the control appears to provide a lot of the required functionality already and its easy to extend it with more properties as needed.
The issue though is that Windows Forms Controls are designed to be drawn statically that is, they arent meant to move around in real-time. You can of course move them at run-time, but this is normally an on-demand operation (something which occurs because the user just took an action like clicking a button or menu item). Attempting to move controls in real-time puts a heavy strain on your application and can cause poor performance quickly.[code]....
View 1 Replies
May 2, 2009
I'm trying to draw directly on my screen using these code and API's[code]...
View 2 Replies
Nov 26, 2009
I am writing a application where i need to know which games are installed on a system.I have 3 ways by which i think i can detect the games
1: Scan specific parts of registry and look for key names that match with a List of Publishers. The list is manually maintained.
2: Scan the hard disk for and do same as in step 1
3: run the program in background and check for programs in memory that use a large portion of memory(which games always do) and if they use Direct X ( Which all games do except for some) then its a game.
Now i have been thinking about it and first and second method seems to be in need of a updated database ie list of publishers to make out if a particular program is game.
View 1 Replies