Jump to content
Bixby Sayz

How is ImageArea and InputArea populated?

Recommended Posts

When you set a new client, where does SCAR get this information from? Does it poll the window for it?

 

The reason I ask is when using the SMART client it reports the correct ImageArea information, but reports incorrect InputArea information, making it impossible to figure out where the SMART window resides on the desktop.

 

Off topic: Did the forums go down for a bit? Couldn't get on for a few minutes, and Down Or Just Me reported it down as well.

Link to comment
Share on other sites

Each TSCARClient subclass implements this stuff separately. So the boxes are pulled straight from the SMART wrapper library. How is the InputArea incorrect? This does not represent the position of the window on the desktop, this is only true for TSCARWindowClient, as a TSCARClient subclass doesn't necessarily handle a visible window, or even a window at all, like TSCARBitmapClient.

 

And yes, I had to reboot the server.

Link to comment
Share on other sites

Hmm. I'll have to take a different approach then. Since I've always been dealing with WindowClient so far InputArea has always corresponded to the ImageArea relative to the Desktop. Which enables me to grab a bitmap from the desktop using those coords.

 

With SMART ImageArea and InputArea are set to the same thing, which completely pooches that idea.

Link to comment
Share on other sites

Or just use OSI, and do

 

a := FindWindowEx('SMART', etc. etc.

b := TSCARWindowClient.Create(a)

The problem is finding the correct SMART, which I have thanks to Freddy's suggestion. Now if only I could figure out a way to force SMART to the front without resorting to the windows api. Throws an access error when you call Activate().
Link to comment
Share on other sites

ActivateWindow function...
For some reason thought that function was removed. Getting senile.

 

Now to figure out why activate kills the RS client (the standalone client). And all of this because I originally was dissatisfied with SMART not finding DTMs properly. I get sidetracked waaaaaaaaaaaay too easily.

Edited by Bixby Sayz
Link to comment
Share on other sites

For some reason thought that function was removed. Getting senile.

 

Now to figure out why activate kills the RS client (the standalone client). And all of this because I originally was dissatisfied with SMART not finding DTMs properly. I get sidetracked waaaaaaaaaaaay too easily.

 

If try GetOuterWindow because calling ActivateWindow.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...