|
AW Facing Direction (Sdk)
AW Facing Direction // Sdk
Apr 26, 2002, 4:38pm
Hello folks,
Im currently making a AW Compass for using in events and such,
however I have encountered a problem. For the direction the browser is
facing, im currently using various split and string functions from the AW
title bar to get a N, NE, E value etc and using it for the program, but its
a little unacturate, especially when tracking from about 4 miles. Does
anyone know a way to get the exact header please so i can make it allot
smoother?
Its VB6 :)
- Mark
Apr 26, 2002, 6:12pm
Not sure if I got this right but you can get the direction the browser is facing by loging in an instance within 200m from the avatar and get AW_AVATAR_YAW within AW_EVENT_AVATAR_CHANGE. Title bar is not and was never meant to be precise but you can get the title with a call to EnumWindows and then checking the return value of GetClassNameA (both in user32.dll) for each window handle looking for a string containing "Active Worlds -" in the callback function...kinda clumsy but works. Remember that if the user does not use the default message file you'll be in serious trouble if you search for hardcoded strings like "E", "W" or "Facing".
-Baron
[View Quote]"strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message news:3cc99e89 at server1.Activeworlds.com...
> Hello folks,
> Im currently making a AW Compass for using in events and such,
> however I have encountered a problem. For the direction the browser is
> facing, im currently using various split and string functions from the AW
> title bar to get a N, NE, E value etc and using it for the program, but its
> a little unacturate, especially when tracking from about 4 miles. Does
> anyone know a way to get the exact header please so i can make it allot
> smoother?
>
> Its VB6 :)
>
> - Mark
>
>
|
Apr 26, 2002, 8:25pm
Thats what im already doing baron, using the findwindowlike( ) and dll
functions to find the window and using that, the thing is, im trying to do
it without bots.
- Mark
[View Quote]"baron" <pk39srt at hotmail.com> wrote in message
news:3cc9b497$1 at server1.Activeworlds.com...
> Not sure if I got this right but you can get the direction the browser is
facing by loging in an instance within 200m from the avatar and get
AW_AVATAR_YAW within AW_EVENT_AVATAR_CHANGE. Title bar is not and was never
meant to be precise but you can get the title with a call to EnumWindows and
then checking the return value of GetClassNameA (both in user32.dll) for
each window handle looking for a string containing "Active Worlds -" in the
callback function...kinda clumsy but works. Remember that if the user does
not use the default message file you'll be in serious trouble if you search
for hardcoded strings like "E", "W" or "Facing".
>
> -Baron
>
>
> "strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
news:3cc99e89 at server1.Activeworlds.com...
AW
its
>
>
>
>
|
Apr 26, 2002, 9:15pm
The bot method is the only fool-proof and accurate way to do it, as Baron
describes. I'm guessing that your trying to do this as a kind of
"sister-app" for the browser, although I'm a bit confused where "from 4
miles away" comes into it if you're not intending on using a bot.
Another problem of the title bar method is that oneone tap of the F11 key
and your source of information is gone. I can see why you'd rather not use a
bot, since the darned thing needs to be visible in the world to receive the
AW_AVATAR_* events and that's just nasty.
One central bot or group of interlinked bots with TCP capabilities and a
small client that queries the it/them for a specific citizen's location
would be the neatest way to achieve it, but obviously more involved.
Good luck.
Grims
[View Quote]"strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
news:3cc9d3cd at server1.Activeworlds.com...
> Thats what im already doing baron, using the findwindowlike( ) and dll
> functions to find the window and using that, the thing is, im trying to do
> it without bots.
>
> - Mark
>
> "baron" <pk39srt at hotmail.com> wrote in message
> news:3cc9b497$1 at server1.Activeworlds.com...
is
> facing by loging in an instance within 200m from the avatar and get
> AW_AVATAR_YAW within AW_EVENT_AVATAR_CHANGE. Title bar is not and was
never
> meant to be precise but you can get the title with a call to EnumWindows
and
> then checking the return value of GetClassNameA (both in user32.dll) for
> each window handle looking for a string containing "Active Worlds -" in
the
> callback function...kinda clumsy but works. Remember that if the user does
> not use the default message file you'll be in serious trouble if you
search
> for hardcoded strings like "E", "W" or "Facing".
> news:3cc99e89 at server1.Activeworlds.com...
> AW
but
> its
allot
>
>
|
Apr 26, 2002, 9:28pm
What about if it goes below the person moving? like -10a maybe? And the bot
has a little window that has a compass on it etc.. that'd be cool ;)..
--Bowen--
Have $3... want a website?
http://www.smartpenguin.com/affiliate.php?id=12
[View Quote]"grimble" <grimble2000 at btinternet.com> wrote in message
news:3cc9df8c$1 at server1.Activeworlds.com...
> The bot method is the only fool-proof and accurate way to do it, as Baron
> describes. I'm guessing that your trying to do this as a kind of
> "sister-app" for the browser, although I'm a bit confused where "from 4
> miles away" comes into it if you're not intending on using a bot.
>
> Another problem of the title bar method is that oneone tap of the F11 key
> and your source of information is gone. I can see why you'd rather not use
a
> bot, since the darned thing needs to be visible in the world to receive
the
> AW_AVATAR_* events and that's just nasty.
>
> One central bot or group of interlinked bots with TCP capabilities and a
> small client that queries the it/them for a specific citizen's location
> would be the neatest way to achieve it, but obviously more involved.
>
> Good luck.
>
> Grims
>
> "strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
> news:3cc9d3cd at server1.Activeworlds.com...
do
> is
> never
> and
> the
does
> search
such,
is
the
> but
Does
> allot
>
>
|
Apr 27, 2002, 2:52pm
Still nasty ... :O)
Grims
[View Quote]"silenced" <nospam at privacy.com> wrote in message
news:3cc9e2a9$1 at server1.Activeworlds.com...
> What about if it goes below the person moving? like -10a maybe? And the
bot
> has a little window that has a compass on it etc.. that'd be cool ;)..
>
> --Bowen--
>
> Have $3... want a website?
> http://www.smartpenguin.com/affiliate.php?id=12
>
> "grimble" <grimble2000 at btinternet.com> wrote in message
> news:3cc9df8c$1 at server1.Activeworlds.com...
Baron
key
use
> a
> the
to
> do
browser
EnumWindows
for
in
> does
> such,
browser
> is
> the
program,
> Does
>
>
|
May 3, 2002, 7:20pm
best i could manage, im only a beginner
[View Quote]"grimble" <grimble2000 at btinternet.com> wrote in message
news:3ccad733 at server1.Activeworlds.com...
> Still nasty ... :O)
>
> Grims
>
> "silenced" <nospam at privacy.com> wrote in message
> news:3cc9e2a9$1 at server1.Activeworlds.com...
> bot
> Baron
4
> key
> use
receive
a
location
dll
> to
> browser
was
> EnumWindows
> for
> in
user
message
> browser
from
> program,
miles.
it
>
>
|
May 3, 2002, 7:23pm
Like I said, I think there is only one way to do it successfully ... which
is nasty. Not judging.
[View Quote]"strike rapier" <strike at rapiercom.freeserve.co.uk> wrote in message
news:3cd2ff24 at server1.Activeworlds.com...
> best i could manage, im only a beginner
>
> "grimble" <grimble2000 at btinternet.com> wrote in message
> news:3ccad733 at server1.Activeworlds.com...
the
"from
> 4
F11
not
> receive
and
> a
> location
> dll
trying
get
> was
user32.dll)
Worlds -"
> user
you
> message
and
> from
> miles.
> it
>
>
|
|