Thread

The last 2 posts (Sdk)

The last 2 posts // Sdk

1  2  |  

r i c h a r d

Jul 1, 2003, 5:01am
So I only have to say this once not twice the 2 posts are to show people how
to use the COM VB Sdk. Since its only avaliable in Com wrapper for 3.4 ive
made examples cause still even now i get ppl almsot everyday bugging me how
to use it im sure other ppl get the same. So select your language remember

Sdk.aw_string(AW_STRING_NAME)
Sdk.aw_int(AW_INT_NAME)
Sdk.aw_bool(AW_BOOL_NAME)

and

Sdk.aw_string(AW_STRING_NAME),"Something"
Sdk.aw_int(AW_INT_NAME),123
Sdk.aw_bool(AW_BOOL_NAME),True

Ocx is 4 loosers... or ppl who have very long source code and are too lazy
to convert but new bots should use this

r i c h a r d

Jul 1, 2003, 5:16am
Oh and its a ActiveX COMPONENT not reference!

grimble

Jul 1, 2003, 12:52pm
Errrr ....

[View Quote] .... ahem???

> Ocx is 4 loosers... or ppl who have very long source code and are too lazy
> to convert but new bots should use this

.... no, the unnecessary sharing of purile opinions is "4 loosers".

john

Jul 1, 2003, 8:56pm
I thought it was sdk.aw_int_set(AW_INT_NAME, 123)

and similar method for the rest

~John

[View Quote]

r i c h a r d

Jul 1, 2003, 9:22pm
Same thing works fnie

grimble

Jul 1, 2003, 9:51pm
I would be very surprised as aw_int and aw_int_set have different prototypes
and polymorphism isn't supported by COM/ActiveX interfaces. Unless I'm
missing something ...

Unless .NET has really screwed with the language syntax and broken away from
common function calling protocol as well as the change to use the .NET
framework then

Sdk.aw_string(AW_STRING_NAME),"Something"

doesn't strike me as even remotely valid.

Grims



[View Quote]

r i c h a r d

Jul 2, 2003, 11:01am
Yeah maybe you could try replacing AW_STRING_NAME with something like
AW_AVATAR_NAME which is a string

http://www.activeworlds.com/sdk/aw_attribute.htm

In .Net when using sdk.aw_string() just type AW_AVATAR_NAME or start to type
it. It will bring up a list and put all the
Sdk.aw_string(AWSDKLib2.AW_ATTRIBUTE.AW_AVATAR_NAME) stuff in for you

grimble

Jul 2, 2003, 7:41pm
Hmmm ... are you perhaps missing the (I'm sure deliberate) mistake in your
original post that I queried?

Sdk.aw_int(AW_INT_NAME) is valid
Sdk.aw_int(AW_INT_NAME),123 isn't valid.

Apart from the obviously incorrect method name, the form "call fn(x),n" is,
lets say, somewhat dubious.

Call Sdk.aw_int_set(AW_INT_NAME,123) is valid
rc = Sdk.aw_int_set(AW_INT_NAME,123) is valid
Sdk.aw_int_set AW_INT_NAME,123 is valid

I know my way around VB and the SDK well enough to get annoyed when people
post "information" in these newsgroups that either isn't complete or is
simply wrong.

Grims


[View Quote]

r i c h a r d

Jul 2, 2003, 7:50pm
Oh yeah! sorry was half asleep before i ment to put

So I only have to say this once not twice the 2 posts are to show people how
to use the COM VB Sdk. Since its only avaliable in Com wrapper for 3.4 ive
made examples cause still even now i get ppl almsot everyday bugging me how
to use it im sure other ppl get the same. So select your language remember

Sdk.aw_string(AW_STRING_NAME)
Sdk.aw_int(AW_INT_NAME)
Sdk.aw_bool(AW_BOOL_NAME)

and

Sdk.aw_string_set(AW_STRING_NAME),"Something"
Sdk.aw_int_set(AW_INT_NAME),123
Sdk.aw_bool_set(AW_BOOL_NAME),True
Forgot to put the _set in ;)

grimble

Jul 2, 2003, 8:05pm
NO! I give up!

[View Quote]

bowen

Jul 2, 2003, 8:07pm
[View Quote] I'm confused, what's he doing? it's like he's setting the whole thing to
123 here "Sdk.aw_int_set(AW_INT_NAME),123" instead of what it should
probably be "Sdk.aw_int_set(AW_INT_NAME,123)" Doing it the first way
seems unnatural.

I don't get it though.

--
--Bowen--

grimble

Jul 2, 2003, 8:15pm
Both unnatural and wrong.

[View Quote]

bowen

Jul 2, 2003, 8:17pm
[View Quote] The second one was the exact replica of the one you said in the last
post excluding the setting to the variable rc. Excuse moi if I forgot
to include that.

--
--Bowen--

grimble

Jul 2, 2003, 8:29pm
Am I on a different planet tonight?

"Doing it the first way seems unnatural."

[View Quote]

bowen

Jul 2, 2003, 8:40pm
[View Quote] rc = Sdk.aw_int_set(AW_INT_NAME,123) is valid

Sdk.aw_int_set(AW_INT_NAME,123) is what I Said. You claimed both were
unnatural and wrong.

--
--Bowen--

grimble

Jul 2, 2003, 8:53pm
Ummm ... no I didn't ...

"[It is] both unnatural and wrong", not "[They are] both unnatural and
wrong".

[View Quote]

bowen

Jul 2, 2003, 8:55pm
[View Quote] Well, perhaps you shouldn't use dubious statements. ;) (yes that pun was
intended)

--
--Bowen--

r i c h a r d

Jul 2, 2003, 11:18pm
You dont need RC's functions work fine with out it

r i c h a r d

Jul 3, 2003, 9:24am
Nor do you need Call

If it works it works and there for isn't invalid ok there all functions and
have a return but thats optional the Ocx Grimmsoft examples never used RC on
the Greeterbot n'stuff

r i c h a r d

Jul 3, 2003, 9:31am
with you need to use call or an rc sdk.aw_string_set (AW_CHAT_MESSAGE,"123")
i use as a time saver i use it cause then i dont have to put call or
anything else sdk.aw_string (AW_CHAT_MESSAGE), "123" but then again i could
just use sdk.aw_string AW_CHAT_MESSAGE, "123"

grimble

Jul 3, 2003, 8:16pm
You're really starting to piss me off now! One more time, with feeling ...

Sdk.aw_int(AW_INT_NAME),123 isn't valid
Sdk.aw_int_set(AW_INT_NAME),123 isn't valid

As for call and rc= ... its the programmer's choice and its all common
knowledge. If I were you, I'd concentrate on what's important (i.e. not
talking crap) and stop trying to look clever in other people's exchanges.


[View Quote]

r i c h a r d

Jul 4, 2003, 3:36am
Im starting to piss you off?! Listen i dont care what u think its up to the
programmer how they do it. VALID means possible input out of set input
format you can use I dont see VB complaining I see a bot that works so you
can go shut your mouth. Im not trying to look cleaver im just trying to get
less people running after me in AW Crying about how the DLL SDK doesn't work
for them. Unless you want to take over and want me to direct everyone to you
Shut up. Unless your so sad that you care where a fuckin bracket is then
write your own examples and write your own Documenation and leave me alone.
You seem to care about tiny things that aren't done how you like. If it
works it works stop complaining get a life.

r i c h a r d

Jul 4, 2003, 3:38am
Plus i statred with this method because at the time i had no idea what i was
doing and im continuing bots and im not bothered as long as it works it
works and now its just habit.

Sdk.aw_int(AW_INT_NAME)
Sdk.aw_int_set(AW_INT_NAME),123

r i c h a r d

Jul 4, 2003, 3:41am
Plus plus it just makes it a bit more visible sometimes when doing sums you
use brackets of things you want done first but sometimes doing things like

(Something) + (Something) just makes it stand out a bit more its not needed
but its VALID anything thats INVALID as you say would not work and would
error with Type Mismatch or something. Maybe its you who is trying to look
smart by correcting everyones methods whether they work or not.

r i c h a r d

Jul 4, 2003, 3:52am
Btw Grimble Grumble i never once put sdk.aw_string(AW_STRING_NAME),"123"
only on sdk.aw_string_set did i add the ,"123"

r i c h a r d

Jul 4, 2003, 3:54am
(On perpose that is) but even on the repost you still started crying!

Grr why cant i spit this all out in 1 psot!

bowen

Jul 4, 2003, 3:56am
[View Quote] Wow, I thought I was pissy.

--
--Bowen--

grimble

Jul 4, 2003, 7:03am
*chuckle* ... bless 'im.

[View Quote]

agent1

Jul 4, 2003, 7:14pm
[View Quote] I think the point they're trying to make is that
Sdk.aw_int_set(AW_INT_NAME), 123
is not valid code.

What I think you mean is:
Sdk.aw_int_set(AW_INT_NAME, 123)

--
-Agent1

r i c h a r d

Jul 4, 2003, 7:52pm
No its valid cause it works dummy

1  2  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn