Page 1 of 1

what code wii give me the time from the wii menu?

Posted: Wed Mar 31, 2010 6:47 pm
by brownie955msn
Can someone give me a code that will get the time from the wii menu

Re: what code wii give me the time from the wii menu?

Posted: Wed Mar 31, 2010 7:09 pm
by Izhido
#include "WiiUsers.h"
#include "TV.h"
#include "WiiUtils.h"

int main(int argc, char* argv[])
{
WiiUser brownie955msn;
brownie955msn.face(TV.connectedToWii().front());
brownie955msn.move(dirDown, unitPixels, 200);
brownie955msn.capture(locRelative, -50, -50, 100, 100);
std::string currentDateTime = WiiUtils::OCRScan(brownie955msn.captureBitmap(), typDateTime);
std::cout << currentDateTime;
return 0;
}

You might find the process is a little on the "manual" side, since you (the Wii user) will be given lots of directions, and asked a lot of things, during the process.
Enjoy! :)