About Store Forum Documentation Contact



Post Reply 
WindowSendData
Author Message
kevindekever Offline
Member

Post: #1
WindowSendData
Code:
ptr hwnd=FindWindowExW(null,null,null, "XIVTIMEROVERLAY");
  
   File a;
   byte b=CMD_SHOW;  
  
   a.writeMem();
   a.putByte(b);
   a.pos(0);
    
   WindowSendData(&a, SIZE(a), hwnd);

Where is the problem? Try to send the overlay app commands, but recieving wrong value .

Code:
WindowSendData(&b, SIZE(b), hwnd);
works fine

a.left() for size also doesn't work

to receive the command i use
Code:
App.receive_data = rec;
Code:
void rec(CPtr data, Int size, Ptr hwnd_sender)
{
   WindowMsgBox("output", "Input");
  
   File a;
   a.readMem(data, size, null);
   byte cmd = a.getByte();
  
   switch(cmd)
   {
      case CMD_SHOW:
      {
         WindowMsgBox("output", "Show");  
        
      } break;
      case CMD_HIDE:
      {
         WindowMsgBox("output", "Hide");
      } break;
      
      default:
      {
         WindowMsgBox("output", S+cmd);
      }
   }  
}
(This post was last modified: 10-10-2015 09:35 PM by kevindekever.)
10-10-2015 09:12 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: WindowSendData
You're trying to send raw memory data of the File class object.
You need to do something like:
Memt<Byte> temp;
temp.setNum(file.left());
f.get(temp.data(), temp.elms());
..send..(temp.data(), temp.elms());
10-10-2015 09:53 PM
Find all posts by this user Quote this message in a reply
kevindekever Offline
Member

Post: #3
RE: WindowSendData
ty, works fine
(This post was last modified: 10-10-2015 10:03 PM by kevindekever.)
10-10-2015 09:53 PM
Find all posts by this user Quote this message in a reply
kevindekever Offline
Member

Post: #4
RE: WindowSendData
WindowSize(100, 100, true, App.hwnd());

1> Main.cpp
1>Main.obj : error LNK2019: Verweis auf nicht aufgel”stes externes Symbol ""void __cdecl EE::WindowSize(int,int,bool,void *)" (?WindowSize@EE@@YAXHH_NPEAX@Z)" in Funktion ""bool __cdecl Init(void)" (?Init@@YA_NXZ)".
1>1 - Basic App.exe : fatal error LNK1120: 1 nicht aufgel”ste Externe

WindowAlpha(255, App.hwnd());
no problems
10-11-2015 11:08 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #5
RE: WindowSendData
Hi, I've fixed that in the Beta source code branch recently, it will be available in next binary update soon.
10-12-2015 06:51 AM
Find all posts by this user Quote this message in a reply
kevindekever Offline
Member

Post: #6
RE: WindowSendData
ty
10-12-2015 10:21 AM
Find all posts by this user Quote this message in a reply
Post Reply