What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » VB-sTagArg

Pages: (2): « First [ 1 ] 2 » Last »
VB-sTagArg
Author: Message:
zigomar10
Full Member
***

Avatar

Posts: 345
– / Male / –
Joined: Mar 2003
O.P. VB-sTagArg
how could i make an sCommandArg but for tags in VB? I've noticed that feature in stuffplug: (!XTALK<language> <text>). I've tried to make it like this:
code:
If (StrComp(sTag, "(!XTAG)", vbTextCompare) = 0) Then
        sResult = Mid$(sTag, 7, 1)
        ParseTag = True
        Exit Function
End If

(it should get the next 2 characters after (!XTAG. If the user types (!XTAG23) then sResult = 23)
Is it even possible in VB? :huh: :S
09-12-2003 05:29 PM
Profile PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: VB-sTagArg
code:
If (StrComp(Left$(sTag, 6), "(!XTAG", vbTextCompare) = 0) Then
    sResult = Mid$(sTag, 7, Len(sTag) - 7) '<----edited
    ParseTag = True
    Exit Function
End If

You can also check at the if if Right$(sTag, 1) = ")" but i don't think you'll need that

This post was edited on 09-12-2003 at 08:13 PM by Choli.
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
09-12-2003 08:12 PM
Profile PM Find Quote Report
zigomar10
Full Member
***

Avatar

Posts: 345
– / Male / –
Joined: Mar 2003
O.P. RE: VB-sTagArg
doesnt work for me :( :'( :S
09-13-2003 02:25 PM
Profile PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: VB-sTagArg
quote:
Originally posted by zigomar10
doesnt work for me :( :'( :S
What's the problem?
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
09-13-2003 02:48 PM
Profile PM Find Quote Report
zigomar10
Full Member
***

Avatar

Posts: 345
– / Male / –
Joined: Mar 2003
O.P. RE: VB-sTagArg
when i type (!XTAG23) it sends (!XTAG23) :S. have u tested it?
09-13-2003 02:51 PM
Profile PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: VB-sTagArg
quote:
Originally posted by zigomar10
when i type (!XTAG23) it sends (!XTAG23) :S. have u tested it?
No, I haven't. But it should work. Try this (it's the same, but other way of doing it):
code:
Public Function ParseTag(ByVal sTag As String, ByVal oConversationWnd As Object, ByRef sResult As String) As Boolean
If LCase$(Left$(sTag, 6)) = "(!xtag" Then
    sResult =  Mid$(sTag, 7, Len(sTag) - 7)
    ParseTag = True
    Exit Function
End If
End Function

And make sure you haven't got any other pluging trying to capture the "(!XTAG)" tag. Also, be careful if your tag is something like "(!Xlongertag)", because then the code changes.
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
09-13-2003 03:06 PM
Profile PM Find Quote Report
zigomar10
Full Member
***

Avatar

Posts: 345
– / Male / –
Joined: Mar 2003
O.P. RE: VB-sTagArg
it still doesnt work :undecided:
09-13-2003 05:18 PM
Profile PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: VB-sTagArg
Which tag are you trying to use? (!Xwhat?)
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
09-13-2003 05:26 PM
Profile PM Find Quote Report
zigomar10
Full Member
***

Avatar

Posts: 345
– / Male / –
Joined: Mar 2003
O.P. RE: VB-sTagArg
(!xtag23)
09-13-2003 05:33 PM
Profile PM Find Quote Report
Annon201
Junior Member
**

SystemStats Creator!!!

Posts: 16
– / Male / –
Joined: Jul 2003
RE: VB-sTagArg
i did my grabbing using
code:
    If Tag Like "(!XSSHVOL?)" = True Then 'volume name of drive ?
        DriveLetter = LCase(Mid(Tag, 10, 1))
        'rest of code here
    End If

the only limitation(tho major) is that you need to make sure the user types an exact number of digets else it wont pick it up
09-20-2003 03:52 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On