Thread

AW Facing Direction (Sdk)

AW Facing Direction // Sdk

1  |  

strike rapier

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

baron

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

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]

grimble

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]

silenced

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

Apr 27, 2002, 2:52pm
Still nasty ... :O)

Grims

[View Quote]

strike rapier

May 3, 2002, 7:20pm
best i could manage, im only a beginner

[View Quote]

grimble

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]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn