Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
veliusiidx authored Oct 28, 2023
1 parent 0a23ae4 commit 7ffd084
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions WMIX-Wide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ DWORD64 GetProcId(const wchar_t*);
int main()
{
cout << "IIDX W-MIX Wide positioner By VELIUS" << endl;
cout << "Go back to CastHour now. Make sure you're in the song select" << endl;
HWND hwnd = FindWindowA(NULL, "beatmania IIDX 29 CastHour main");
cout << "Go back to Resident now. Make sure you're in the song select" << endl;
HWND hwnd = FindWindowA(NULL, "beatmania IIDX 30 RESIDENT main");
HWND foreground = GetForegroundWindow();
if (hwnd == NULL)
{
cout << "Cannot find window. Make sure CH has been started." << endl;
cout << "Cannot find window. Make sure Resident has been started." << endl;
Sleep(3000);
exit(-1);
}
else
{
DWORD64 procID = GetProcId(L"spice64.exe");
//DWORD64 procID = GetProcId(L"launcher.exe");
//DWORD64 procID = GetProcId(L"spice64.exe");
DWORD64 procID = GetProcId(L"launcher.exe");

if (procID == NULL) {
cout << "Cannot obtain process. Make sure you're using spice64 or BTOOLS" << endl;
Expand All @@ -47,8 +47,8 @@ int main()
unsigned int gameplayread;
unsigned int resultscreenread;
//DWORD64 gameplayaddress = Base + 0xB6AE6C;
DWORD64 gameplayaddress = Base + 0xA08AD4;
DWORD64 resultscreenaddress = Base + 0x2B46B14;
DWORD64 gameplayaddress = Base + 0x6D6CFE4;
DWORD64 resultscreenaddress = Base + 0x2F9A274;
int gameplayflag = 0;
RECT rect;
GetWindowRect(hwnd, &rect);
Expand All @@ -72,10 +72,10 @@ int main()
ReadProcessMemory(handle, (BYTE*)resultscreenaddress, &resultscreenread, sizeof(resultscreenread), 0);

//cout << gameplayread << endl;
if (gameplayread == 640 && gameplayflag == 0)
if (gameplayread == 800 && gameplayflag == 0)
{
cout << "Trying to SET POSITION" << endl;
SetWindowPos(hwnd, 0, rect.left - 240, rect.top - 200, 2400, 1350, SWP_SHOWWINDOW);
SetWindowPos(hwnd, 0, rect.left, rect.top - 200, 2400, 1350, SWP_SHOWWINDOW);
gameplayflag = 1;
}
//cout << resultscreenread << endl;
Expand All @@ -95,7 +95,7 @@ int main()
}
}

if (gameplayread == 1280)
if (gameplayread == 1920)
{
SetWindowPos(hwnd, 0, rect.left, rect.top, 1920, 1080, SWP_SHOWWINDOW);
gameplayflag = 0;
Expand Down

0 comments on commit 7ffd084

Please sign in to comment.