ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Re: Anyone know how to make a bot respond in VB? (Sdk)
Re: Anyone know how to make a bot respond in VB? // SdkxelagApr 3, 2001, 2:23pm
If you don't call AW_WAIT, you don't collect the events anyway, and after 60
seconds or so, your bot gets disconnected. So as MrGrimm says: *install* the event handler using AwEventSet AW_EVENT_AVATAR_ADD (or else sdk_EventAvatarAdd() will never get triggered because it is not recognised as an event handler by the aw.dll), and then *call* sdk.AwWait 0 once a second (or more often if you like, I call it 16 times a second now in the new xelagot, the AW browser calls it at every frame). To call AwWait, you can use a windows Timer if you like, set to an interval of 1000 milliseconds or even less (mine is at 64 milliseconds) XelaG [View Quote] |