ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
[VB] Searching for objects. (Sdk)
[VB] Searching for objects. // SdkrobbieMar 29, 2002, 6:26pm
Does anyone have any example code showing how to find an object with range
of the bot with for example 'create name tree' in the action line? I would assume you query the area and then search for the action line in the Array your've filled but I've tried and failed twice now...soemone save me! :) -Robbie jeyMar 29, 2002, 11:47pm
I know in C++ it is done in the handle_cell_object, function, which for
VB that function is: Private Sub sdk_EventCellObject(). Now, with C++ you do if(!strcmp(aw_string(AW_OBJECT_DESCRIPTION)) to check the description, and I haven't used VB in a long time, but it might be something like: if sdk.AwObjectDescription = "this object" then . . . but I dunno. Try fooling around with stuff like that. Try stuff in the Private Sub sdk_EventCellObject() function like sdk.AwObjectModel, sdk.AwObjectDescription, and sdk.AwObjectAction, if you haven't already, and tell me if anything happens. Jey [View Quote] sweMar 30, 2002, 11:05am
ive got a example i got from kah, but ull have to ask him if i can give it
to u first... [View Quote] kahApr 2, 2002, 10:13am
no problem... I must make a new one soon heh (old one doesn't have
awquery5x5, but it's just changing a few numbers around to get it) KAH [View Quote] kahApr 3, 2002, 9:45am
|