Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 20:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



c++ auto refresh/reload

Discussion on c++ auto refresh/reload within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2010
Posts: 28
Received Thanks: 0
c++ auto refresh/reload

How i can auto refresh screen?
this code system("CLS"); clear screen and how i can load screen?
or how i can reload offset rezultat?
wongerlt is offline  
Old 01/23/2011, 19:38   #2
 
xNopex's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 827
Received Thanks: 471
I don't understand your question... After you have cleared the console output by using system("cls"), which is btw not a very clever idea, you can simply write again on the console by using 'cout' or a winapi function.
xNopex is offline  
Old 01/23/2011, 19:45   #3
 
elite*gold: 0
Join Date: Jan 2010
Posts: 28
Received Thanks: 0
me program:
Quote:
#include <windows.h>
#include <iostream>




int main()
{

SetConsoleTitle ("BOT");


HWND hWnd;
DWORD processId;
HANDLE hProcess;
hWnd = FindWindow("Solitaire", 0);

if (!hWnd)
{
std::cout << "Programa Isjungta" << std::endl;
} else {
GetWindowThreadProcessId(hWnd, &processId);

hProcess = OpenProcess(PROCESS_ALL_ACCESS, false, processId);

int taskai;

ReadProcessMemory(hProcess, (LPVOID)0x000AA768, &taskai, 4, 0);

std::cout << "Score: " << taskai << std::endl;
if (taskai == 0)
{
std::cout << "Score: " << taskai << std::endl;

}
}
system("pause");

return 0;
}
this show
score:
and if score 0 show again score
now i nee re-load offset , because i need recheck if(taskai == 0)
maybe can make simple example how refresh?
wongerlt is offline  
Old 01/23/2011, 20:45   #4
 
elite*gold: 0
Join Date: Apr 2006
Posts: 6,597
Received Thanks: 1,830
maybe you just should grab a good book / tutorial before you start copy and paste other people's code.
Medix is offline  
Old 01/24/2011, 16:25   #5
 
xNopex's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 827
Received Thanks: 471
Your English sucks... Maybe this will help you:
xNopex is offline  
Reply


Similar Threads Similar Threads
~~~Awesome-O Refresh~~~
02/23/2010 - Diablo 2 - 22 Replies
Gibts eigentlich ein Programm, dass Awesome-o automatisch nach z.B. 5min. neustartet. :confused: Aber ich mein damit nicht, dass es das Spiel verlässt, sondern Diablo komplett neustartet, weil bei mir oft die Meldung:(Keine Rückmeldung) kommt. Wenn ich den Bot über die Nacht laufen lies, hat er manchmal nur 10 runs gemacht :mad:, weil er wie gefroreren is und nicht mal neustartet, er macht gar nix.... Danke im Vorraus :handsdown:
[PHP/SQL] Auto refresh
03/25/2009 - Web Development - 0 Replies
Hallo, ich mache z.Z ein eigenes Browsergame. Der Fall um den ich mir von Anfang an schon Gedanken gemacht hab ist nun eingetroffen. Beispiel: Produktion 5/std Rohstofffeld wird ausgebaut(erhöht die produktion um 10/std wenn fetig)... Bis jetzt hab ich es so aufgebaut das die momentane Zeit+Bauzeit gemerkt wird und dann einfach ne if Abfrage wenn die aktuelle Zeit>=Bauzeit dann soll das Feld halt eingetragen werden und die Produktion +10... Das Problem an der Sache kann man sich ja...



All times are GMT +1. The time now is 20:36.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.