Make a dll project in MSVC++ with no precompiled headers and put this into your main project. It will get cursor position on F7 and store it into a file
[php] #include <windows.h> #include <fstream> #include <string>
using namespace std;
int main()
{
fstream iSaveFile("iSaveFile.txt");
string xPos, yPos, iSave;
iSave = "";
POINT Pos;
while(1)
{
if(GetAsyncKeyState(VK_F7))
{
GetCursorPos(&Pos);
xPos = Pos.x;
yPos = Pos.y;
iSave = iSave + xPos + yPos + "\n";
}
iSaveFile << iSave;
Sleep(100);
}
}
[/php]
You must create iSaveFile.txt in the same folder as this dll is located... I tested and it works fine NP
Originally Posted by mwb1234
Make a dll project in MSVC++ with no precompiled headers and put this into your main project. It will get cursor position on F7 and store it into a file
[php] #include <windows.h> #include <fstream> #include <string>
using namespace std;
int main()
{
fstream iSaveFile("iSaveFile.txt");
string xPos, yPos, iSave;
iSave = "";
POINT Pos;
while(1)
{
if(GetAsyncKeyState(VK_F7))
{
GetCursorPos(&Pos);
xPos = Pos.x;
yPos = Pos.y;
iSave = iSave + xPos + yPos + "\n";
}
iSaveFile << iSave;
Sleep(100);
}
}
[/php]
You must create iSaveFile.txt in the same folder as this dll is located... I tested and it works fine NP
The program I made works, just not through CA. Thats the problem.
This works thru ca
Originally Posted by mwb1234
This works thru ca
The only difference in how the two act is how they display the coordinates. It's proboably something on my comp screwing it up and nothing with the code.
It might even just be Win7. The last time I used it was when I still had XP.
Tell me what coords u want and I may be able to get em
Originally Posted by mwb1234
Tell me what coords u want and I may be able to get em
Probable the quick join and back to lobby,
Originally Posted by ac1d_buRn
Probable the quick join and back to lobby,
It's ok. I still have XP installed on one partition, I'll just swap some jumpers and get in to XP.
That is interesting because I have the same thing in my hack and GetCursorPos() works just fine...
isnt there a way to hook without using GetAsyncKeyState? cuz it would make the programs less laggy if people used something else cuz GetAsyncKeyState is a resource hoggggg
Well good luck getting this solved
Originally Posted by cruizrisner
isnt there a way to hook without using GetAsyncKeyState? cuz it would make the programs less laggy if people used something else cuz GetAsyncKeyState is a resource hoggggg