09-22-2013 07:54 AM
Hello,
I want want to read values like speed and such from a racing game and use it to set hydraulic's which move a chair in which you sit.
How can I read these from labview, some sort of peek poke commands.
Is this possible with labview?
gr
09-22-2013 10:47 AM
There's nothing inbuilt in LabVIEW, but Windows does provide a method. Here are a list of dlls and the associated functions that may be of interest. You will need to read the documentation on them. Basically what you want to do is a 'ReadProcessMemory'. Figuring out the right place to peek is more hassle, however. If you don't have a clue how, find 'Memory Hacking Software (MHS)' by L Spiro which is free. You can use this to pretty easily (instructions included) search for variable addresses, which you could then use to access the variable from you LabVIEW program. Unfortunately, this relative address may change each time the game is run, in which case it's either repeat the games with MHS or figure out how to work out the address from your program (more complicated).
"user32.dll"
FindWindowA
GetWindowThreadProcessId
GetClassNameA
"Kernel32.dll"
OpenProcess
ReadProcessMemory
WriteProcessMemory
CloseHandle
GetLastError
CreateToolhelp32Snapshot
Process32First
Process32Next
09-23-2013 12:28 AM - edited 09-23-2013 12:28 AM
Hi ToeCutter,
thnx for the reply.
I once used a simpel cheat program which also did about the same thing.
I will have a look at the software from L. Spiro.
gr,
09-23-2013 04:24 AM
No need- the L Spiro stuff is just the same kind of thing. As long as your cheat program gives you the memory address of the variable that's all you need.
The only stretch requirement is for a camera you can't just use something that searches a specific value (like lives)- you need one capable of filtering by 'value increase' and 'value decrease' where the value is say the pitch of the camera- but obviously you don't know the exact value.