Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
Like Tree1Likes

Thread: BYVARX issue

  1. #11
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    385
    i think the issue is this line:
    If LCase(CMD).Contains("rr_gmail_sendemail;") Then

    i would code it on this way:
    Code:
    'rr_gmail_sendemail;toaddress;subject;body;file
            If Left(LCase(CMD), 19) = "rr_gmail_sendemail;" Then  '<----- new
                AttchedFile = ""
                UserName = FuncCls.DecryptPassword(INI.ReadString("Gmail", "Username", ""))
                Password = FuncCls.DecryptPassword(INI.ReadString("Gmail", "Password", ""))
                sArray = LCase(CMD).Split(";")
                Select Case sArray.Length '<----- new
                    Case 4 '<----- new
                        If gmail_send(sArray(1), sArray(2), sArray(3), "", SDK.GetUserVar("RR_GMAIL_USRLOGO")) = True Then
                            If MessageOnOff = True Then SDK.Execute ("SETVAR;RR_GMAIL_IDLE;3||SETVARFROMVAR;RR_GMAIL_INFO;l_set_SendRRGmail||MENU;RRGMAIL_NEWMAIL.SKIN||WAIT;3||SETVAR;RR_GMAIL_INFO;")
                        End If
                    Case 5 '<----- new
                        If gmail_send(sArray(1), sArray(2), sArray(3), sArray(4), SDK.GetUserVar("RR_GMAIL_USRLOGO")) = True Then
                            If MessageOnOff = True Then SDK.Execute ("SETVAR;RR_GMAIL_IDLE;3||SETVARFROMVAR;RR_GMAIL_INFO;l_set_SendRRGmail2||MENU;RRGMAIL_NEWMAIL.SKIN||WAIT;3||SETVAR;RR_GMAIL_INFO;")
                        Else
                            SDK.ErrScrn("Error found !!!", SDK.GetUserVar("l_set_NoSendRRGmail") & " '" & sArray(4) & "' !!!", "************************************************", 5)
                        End If
                End Select '<----- new
                RaiseEvent GmailSendEmail
                ProcessCommand = 2
            End If

  2. #12
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,851
    Quote Originally Posted by harryberlin View Post
    i think the issue is this line:
    If LCase(CMD).Contains("rr_gmail_sendemail;") Then

    i would code it on this way:
    Code:
    'rr_gmail_sendemail;toaddress;subject;body;file
            If Left(LCase(CMD), 19) = "rr_gmail_sendemail;" Then  '<----- new
                AttchedFile = ""
                UserName = FuncCls.DecryptPassword(INI.ReadString("Gmail", "Username", ""))
                Password = FuncCls.DecryptPassword(INI.ReadString("Gmail", "Password", ""))
                sArray = LCase(CMD).Split(";")
                Select Case sArray.Length '<----- new
                    Case 4 '<----- new
                        If gmail_send(sArray(1), sArray(2), sArray(3), "", SDK.GetUserVar("RR_GMAIL_USRLOGO")) = True Then
                            If MessageOnOff = True Then SDK.Execute ("SETVAR;RR_GMAIL_IDLE;3||SETVARFROMVAR;RR_GMAIL_INFO;l_set_SendRRGmail||MENU;RRGMAIL_NEWMAIL.SKIN||WAIT;3||SETVAR;RR_GMAIL_INFO;")
                        End If
                    Case 5 '<----- new
                        If gmail_send(sArray(1), sArray(2), sArray(3), sArray(4), SDK.GetUserVar("RR_GMAIL_USRLOGO")) = True Then
                            If MessageOnOff = True Then SDK.Execute ("SETVAR;RR_GMAIL_IDLE;3||SETVARFROMVAR;RR_GMAIL_INFO;l_set_SendRRGmail2||MENU;RRGMAIL_NEWMAIL.SKIN||WAIT;3||SETVAR;RR_GMAIL_INFO;")
                        Else
                            SDK.ErrScrn("Error found !!!", SDK.GetUserVar("l_set_NoSendRRGmail") & " '" & sArray(4) & "' !!!", "************************************************", 5)
                        End If
                End Select '<----- new
                RaiseEvent GmailSendEmail
                ProcessCommand = 2
            End If
    Yes man, it was my issue ! I don't understand why !!! But now the command that follow run very well:
    B,87,208,240,71,"BYVARX;SENDER_ALERT;(DONOTHING<<R R_GMAIL_SENDEMAIL;[email protected];urgent;gma il have email;C:\GMAIL\Lighting.jpg)",""

    Thanks for your help !

  3. #13
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    385
    Great

  4. #14
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    385
    i hope your other scriptcode works with Left() or without .contains()
    it's not only a byvarx issue.
    Last edited by harryberlin; 02-12-2014 at 10:19 AM.

  5. #15
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,851
    Quote Originally Posted by harryberlin View Post
    i hope your other scriptcode works with Left() or without .contains()
    it's not only a byvarx issue.
    Yes, in other plugin i use the Left() and not the.contains()

Page 2 of 2 FirstFirst 12

Similar Threads

  1. BYVARX question
    By obrienj in forum Road Runner
    Replies: 2
    Last Post: 04-25-2011, 04:37 PM
  2. GPS issue
    By diggla in forum GPS
    Replies: 16
    Last Post: 10-12-2009, 02:42 PM
  3. NAV issue?
    By ekaz in forum Centrafuse
    Replies: 4
    Last Post: 05-16-2008, 03:23 PM
  4. .M3U issue "Play all" issue
    By Kimota in forum StreetDeck
    Replies: 0
    Last Post: 12-12-2007, 09:34 AM
  5. 2.3.4 and XM issue
    By tmar89 in forum Media Engine
    Replies: 8
    Last Post: 03-24-2006, 08:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •