ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Need some programming help (Sdk)
Need some programming help // SdkmlrFeb 28, 1999, 4:23pm
My name is Matheus, and I am a Delphi programmer, and I need to know how
to get the coordinates of the current person using AW. It's like this: I am developing a software that needs to know where (the corrdinates NS, EW, A, facing) the person using AWBrowser is. How can I accoplish this? I though about using some windows api functions, so, anyone know any function that uses it? (doesn't need to be a Delphi one!) canopusMar 1, 1999, 1:36pm
You could get the caption of the browser's foreground window by using the
Delphi WinAPI functions FindWindow('AlphaWorld', nil) and GetWindowText(AWindow, TheText, 255), and then analyzing TheText into its parts for the current coordinates. (If you need the altitude and certain other attributes, you'll have to call the two functions again for each appropriate status-bar window.) There is an excellent volume covering the subject of accessing the Win32 API called "The Tomes of Delphi 3" by John Ayres et al, from Wordware Publishing. [View Quote] > My name is Matheus, and I am a Delphi programmer, and I need to know how > > to get the coordinates of the current person using AW. > > It's like this: I am developing a software that needs to know where (the > > corrdinates NS, EW, A, facing) the person using AWBrowser is. How can I > accoplish this? I though about using some windows api functions, so, > anyone know any function that uses it? (doesn't need to be a Delphi > one!) |