![]() |
Filename instead of WinCap
I currently us game trainer studio to make my hacks ...but it uses WindCap to poke the addresses ...I want it to poke a Filename.... How can I implement this in the example code below??
Code:
; #########################################################################Any ideas?? Regards sawky |
There is a tut I did showing sheeps trainer skeleton.
It will show you how to load a specific file, and then obviously poke address/es |
Yeah...I looked at that ..I thought that changing
WindCap db 'Half-Life 2 DM',0 to FileName db 'hl2.exe',0 and changing Invoke TrainerEngine, NULL, Offset WindCap, 024000300h, Offset Button00000, 6 to Invoke TrainerEngine, NULL, Offset FileName, 024000300h, Offset Button00000, 6 would of done it ....but not to be!!lol is there anyway for it to look for multiple windows then..... as an example (I know this doesnt work) WindCap db 'Half-Life 2 DM' or 'Counter-Strike Source',0 thanx |
erm...
WindCap = Window Caption the code OBVIOUSLY uses FindWindow to do its work, checking the window caption, changing this to a filename would be utterly pointless.. if you're coding a trainer, then gettheprocessid from the window (or when you launch it using createprocess), then work from that... i get the feeling you don't really know what you're doing :) |
I didnt just change the window caption to a file name .... I looked at the skeleton example which uses
FileName db 'game.exe',0 where as I use WindCap db 'my game',0 and changed my code respectively but to no avail ....(as described above) My WindCap trainers work fine..... I just wanted to change to 'FileName' .... Not to worry If no-one knows how to do it.... Cheers sawky |
you mean you want to display the filename in the trainer or something? cos im lost now...
|
By the looks of things he wants his trainer to find the Process name of a game.
But he cant change his WindCap for Filename as the rest of the coding doesnt work that way of course. @sawky - you have to have similar as the skeleton to invoke loading the designated file and poking addresses. As said changing your WindCap for the Filename wont do anygood at all. You will have to have this somewhere in your coding invoke CreateProcess, ADDR FileName, NULL,NULL,NULL,NULL,\ NORMAL_PRIORITY_CLASS,NULL,NULL,ADDR StartUpInfo,ADDR hProcess (the \ just lets the compiler know to goto the next line to continue the sequence) Also setting the following under your .data? section StartUpInfo STARTUPINFO <> hProcess dd ? So when the game is loaded it sets the address of where the game has loaded into your memory etc properly. So you can later use WriteProcessMemory to write your data. Like so invoke WriteProcessMemory,hProcess,Address,addr bytestobewritten,numberofbytestowrite Would be just as easy to use the skeleton and change what you wanted it is easy enough to follow and change accordingly :) |
|
| All times are GMT -7. The time now is 05:53. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com