Xojo Conferences
XDCMay2019MiamiUSA

Re: Tracking an External Apps Position (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: No cross-platform built-in preferences class ?
Next thread: Re: ConsoleApp and ServiceApp


Re: ConsoleApp and ServiceApp   -   Rubber Chicken Software Co.
  Re: Tracking an External Apps Position   -   Steve Garman
   Re: Tracking an External Apps Position   -   Lennox Jacob
    Re: Tracking an External Apps Position   -   Michael Diehr
    Tracking an External Apps Position   -   Rubber Chicken Software Co.
     ICPSocket with Separate Apps   -   Rubber Chicken Software Co.

Re: Tracking an External Apps Position
Date: 01.08.09 08:33 (Sat, 1 Aug 2009 08:33:32 +0100)
From: Steve Garman
> I want my app to always place itself right next to another app (that
> I didn't write), so when the person moves that app's Window around,
> my app automatically moves with it. Kind of like it's part of the app.

I don't know a cross-platform way of doing this.

On windows you should be able to snoop on the other app's message queue
using SetWindowsHookEx

I suspect OS X offers more friendly options if the other app is scriptable.

Re: Tracking an External Apps Position
Date: 01.08.09 14:58 (Sat, 1 Aug 2009 06:58:14 -0700 (PDT))
From: Lennox Jacob
What about using a Folder Action script tagging the folder you want to track and moving your app appropriately ...

http://developer.apple.com/documentation/applescript/Conceptual/ApplescriptLangGuide/reference/ASLR_folder_actions.html

Folder Actions is a feature of Mac OS X that lets you associate AppleScript scripts with folders. A Folder Action script is executed when the folder to which it is attached is opened or closed, moved or resized, or has items added or removed. The script provides a handler that matches the appropriate format for the action ...

Lennox

--- On Sat, 8/1/09, Steve Garman <<email address removed>> wrote:

From: Steve Garman <<email address removed>>
Subject: Re: Tracking an External Apps Position
To: "REALbasic NUG" <<email address removed>>
Date: Saturday, August 1, 2009, 12:33 AM

> I want my app to always place itself right next to another app (that
> I didn't write), so when the person moves that app's Window around,
> my app automatically moves with it. Kind of like it's part of the app.

I don't know a cross-platform way of doing this.

On windows you should be able to snoop on the other app's message queue
using SetWindowsHookEx

I suspect OS X offers more friendly options if the other app is scriptable.

-

Re: Tracking an External Apps Position
Date: 01.08.09 17:50 (Sat, 1 Aug 2009 09:50:36 -0700)
From: Michael Diehr
For security reasons, apps can't easily get info about other apps on
OS X. However, some info about another app's windows (such as size,
name) can be determined:

http://www.dc-studios.net/blog/?p0

and

http://developer.apple.com/documentation/Carbon/Reference/CGWindow_Reference/Reference/Functions.html

On Aug 1, 2009, at 6:58 AM, Lennox Jacob wrote:

> What about using a Folder Action script tagging the folder you want
> to track and moving your app appropriately ...
>
> http://developer.apple.com/documentation/applescript/Conceptual/ApplescriptLangGuide/reference/ASLR_folder_actions.html
>
> Folder Actions is a feature of Mac OS X that lets you associate
> AppleScript scripts with folders. A Folder Action script is executed
> when the folder to which it is attached is opened or closed, moved
> or resized, or has items added or removed. The script provides a
> handler that matches the appropriate format for the action ...
>
> Lennox
>
> --- On Sat, 8/1/09, Steve Garman <<email address removed>> wrote:
>
> From: Steve Garman <<email address removed>>
> Subject: Re: Tracking an External Apps Position
> To: "REALbasic NUG" <<email address removed>>
> Date: Saturday, August 1, 2009, 12:33 AM
>
>> I want my app to always place itself right next to another app (that
>> I didn't write), so when the person moves that app's Window around,
>> my app automatically moves with it. Kind of like it's part of the
>> app.
>
> I don't know a cross-platform way of doing this.
>
> On windows you should be able to snoop on the other app's message
> queue
> using SetWindowsHookEx
>
> I suspect OS X offers more friendly options if the other app is
> scriptable.
>
> --
> Steve Garman
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Tracking an External Apps Position
Date: 31.07.09 17:45 (Fri, 31 Jul 2009 11:45:17 -0500)
From: Rubber Chicken Software Co.
I researched this a bit but I couldn't come to any good conclusion on
a good strategy on how to accomplish this.

I want my app to always place itself right next to another app (that
I didn't write), so when the person moves that app's Window around,
my app automatically moves with it. Kind of like it's part of the app.

What's a good strategy on accomplishing this? I know I need my app to
a) find the window and b) track the positional events.

Either Mac or Windows strategies I would need; this needs to be cross-platform.

* * * * * * * * * * * * * * * * * * * * * * * * * * *
| Garth Hjelte |
| Customer Service Representative, President |
| Chicken Systems, Inc, Rubber Chicken Software Co. |
| 714 5th Street SE |
| Willmar, MN 56201 USA |
| |
| 800-8-PRO-EPS Toll Free Order Line (US Only) |
| 320-235-9798 Tech Support, Sampler Questions |
| International Line |
| 360-838-7689 Fax |
| Product Sales: <email address removed> |
| Product Support: <email address removed> |
| Sampler Q+A: <email address removed> |
| Web Page: www.chickensys.com |
* * * * * * * * * * * * * * * * * * * * * * * * * * *

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>