VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Active Worlds User Compass

by Mark Randall (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

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.
Code 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

Download Active Worlds User Compass

Download Active Worlds User Compass (5 KB)

Active Worlds User Compass Comments

No comments have been posted about Active Worlds User Compass. Why not be the first to post a comment about Active Worlds User Compass.

Post your comment

Subject:
Message:
0/1000 characters