VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Active Worlds User Compass

Mark Randall  (1 Submission)   Miscellaneous   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

This is a piece of code rather specialist in that it is developed for use with the Active Worlds Browser (www.activeworlds.com) it is a sister application that will allow you to enter a set of Active Worlds Coordinates into the targeting box and be shown the direction to which you must face to arrive at those coordinates. Thanks to the VB super API spy (on VBC) for helping me learn about the API to make this possible.

Inputs
Takes title bar text from AW Browser

Assumes
This requires the Active Worlds Browser active in order for it to correctly function.

Returns
A visual compass of the direction you wish to walk in to reach the coordinates you enter.

Side Effects
You may bumb into walls and such while using.

API Declarations
API to retrieve window caption.
mdlFindWindows:
Public Declare Function GetDesktopWindow Lib "user32" () As Long
Public Declare Function GetWindow Lib "user32" ByVal hWnd As Long, ByVal wCmd As Long) As Long
Public Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hWnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA"
(ByVal hWnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
clsOnTop:
Private Declare Function SetWindowPos Lib "user32" (ByVal hWnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, y, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

Rate Active Worlds User Compass (3(3 Vote))

Download Active Worlds User Compass

Active Worlds User Compass Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters