Image Image Image




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Getting the chat from iPoker
PostPosted: Sat Oct 27, 2012 10:19 pm 
Offline
New member
User avatar

Posts: 2
Favourite Bot: The one I'm making
Hey, I'm new to this and I'm trying to get information in the iPoker chat box (playing on Poker770). I'm using C++ with the code below. It seems to have worked for some other people but I can't get past the if ( SUCCEEDED(hr) )

I get no errors, it just doesn't work. The chat box is a child window with the class "Internet Explorer_Server" and I have confirmed this with Spy++. Any ideas on how I can get it to work?

Code:
char wndowclass[500];

if (GetClassName(hwnd, wndowclass, 500)==0)
   return TRUE;

string strTemp(wndowclass);
if (strTemp==string("Internet Explorer_Server"))
{
   CoInitialize(NULL);
   HINSTANCE hInst = ::LoadLibrary(_T("OLEACC.DLL"));
   string strTemp;
   CComPtr<IHTMLDocument2> spDoc;
   LRESULT lRes;

   strTemp = "";
   UINT nMsg = ::RegisterWindowMessage(_T("WM_HTML_GETOBJECT"));
   ::SendMessageTimeout(hwnd, nMsg, 0L, 0L, SMTO_ABORTIFHUNG, 1000, (DWORD*)&lRes);

   LPFNOBJECTFROMLRESULT pfObjectFromLresult = (LPFNOBJECTFROMLRESULT)::GetProcAddress(hInst, _T("ObjectFromLresult"));
   if ( pfObjectFromLresult != NULL )
   {
      HRESULT hr;
      hr = (*pfObjectFromLresult)( lRes, IID_IHTMLDocument2, 0, (void**)&spDoc );
      if ( SUCCEEDED(hr) )
      {
         CComPtr<IHTMLElement> pHTMLElement;
         hr=spDoc->get_body(&pHTMLElement);
         BSTR bstrText;
         pHTMLElement->get_innerText(&bstrText);
         strTemp=(char *)_bstr_t(bstrText);

         cout << "TEXT: " << strTemp.c_str() << endl;
      }
      else cout << "FAIL";
   }
   ::FreeLibrary( hInst );
}


Top
 Profile E-mail  
 
 Post subject: Re: Getting the chat from iPoker
PostPosted: Thu Nov 08, 2012 2:11 pm 
Offline
New member
User avatar

Posts: 2
Favourite Bot: The one I'm making
Bump. Still interested in this. Nobody knows how to get the iPoker chat?


Top
 Profile E-mail  
 
 Post subject: Re: Getting the chat from iPoker
PostPosted: Tue Jan 15, 2013 11:25 pm 
Online
Junior member
User avatar

Posts: 35
Favourite Bot: Working on it...
Unfortunately I can't help you, but have you considered it may be a security feature?
Are you sure it's possible to get the text from the chatbox? I've heard on several sites they try to prevent this from happening by blocking some of the known methods.

Good luck!


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: Google and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: