Forum: Poser Python Scripting


Subject: Calling ADP (or anyone else that can help) : re UDPServer

mathman opened this issue on May 03, 2009 · 22 posts


yarp posted Tue, 05 May 2009 at 3:41 AM

Thanks for the code I will give it a try this morning.
The hotkey stuff is only working with P7 (there was no script menu in P6).

I was aware of the technic you describe above, but I hadn't give it a try. I was looking for an internal solution by trying to communicate directly with Poser Python dll.
But I have done nothing so far, so I should better stop thinking about reinventing the wheel.

Just a suggestion, you could replace the first sleep with a while loop. Something like:

nTicksOld = GetTickCount();
do {
  if (GetForeGroundWindow()==poserHandle)
     break;
  nTicks = GetTickCount();
} while (nTicks-nTicksOld<100);

But Vista is a real pain and the only solution for the other sleep is to get rid of it ;)

Yarp - author of P3DO Organizer for Poser