Jump to content

Unable to parse line Error


Recommended Posts

Hello,

I just started working with AutoIt 3.1.1 and i strated building an automatic registration for BSplayer Pro version 1.22.

Infact when BSPlayer is insatelled, Here bellow how to register manually:

1) Run BSplayer

2) Type "F1" key

3) Type "r" key ---> you access to registration info window.

4) Type in Registered to "YourName"

5) Type in Registration Code "Your Serial"

6) Click "OK"

Here the BSPlayer_Registration.au3:

Run("C:\Program Files\Webteh\BSplayerPro\bsplayer.exe")

WinWaitActive("BSplayer")
Send("{F1}r")
Send(& #34;YourName{TAB}1234567890ABCDEF1234567890ABCDEF12345{TAB}{ENTER 2}")
When YourName is your user name and 1234567890ABCDEF1234567890ABCDEF12345 is your actual serial no (of course).

By Testing that (with .au3 or compiled .exe files) I got The message error here enclosed:

Send(& ^ERROR
Error: Unable to parse line.

TNX for yr help

coucou

Edited by coucou
Link to comment
Share on other sites

Try this...

$Username = "Burrup"
$Serial = "1234567890ABCDEFG"

WinWaitActive("BSplayer")
Sleep(1000)
Send("{F1}")
Sleep(1000)
Send("r")
Sleep(1000)
Send($Username)
Sleep(1000)
Send("{TAB}")
Sleep(1000)
Send($Serial)

Or your way....

Run("C:\Program Files\Webteh\BSplayerPro\bsplayer.exe")

WinWaitActive("BSplayer")
Send("{F1}r")
Send("YourName{TAB}1234567890ABCDEF1234567890ABCDEF12345{TAB}{ENTER 2}")
Edited by Burrup

qq

Link to comment
Share on other sites

Im not the best coder, but i think i see the problem:

Send(& #34;YourName{TAB}1234567890ABCDEF1234567890ABCDEF12345{TAB}{ENTER 2}")

First you send '& #34;YourName' , why?

Second, you have a quote at the end of it, witk no matcing start quote.. (should there be any?)

Edited by Wb-FreeKill
Link to comment
Share on other sites

Try this...

$Username = "Burrup"
$Serial = "1234567890ABCDEFG"

WinWaitActive("BSplayer")
Sleep(1000)
Send("{F1}")
Sleep(1000)
Send("r")
Sleep(1000)
Send($Username)
Sleep(1000)
Send("{TAB}")
Sleep(1000)
Send($Serial)

<{POST_SNAPBACK}>

Right, you can't put all of it in one Send command... split it up
Link to comment
Share on other sites

IDK, you might be able to lol, I didnt test it, but for to sake of it I will now.

Edit: You can send it all at once. Problem was, like you said, & #34;, replace that with a " and it works fine.

Edited by Burrup

qq

Link to comment
Share on other sites

Hi,

I forgot to precise that i prepare this for an Unattended (Silent) installation

@Burrup:

Yr way working but it's not silent at all.

1) BSPlayer is runing and stay run (on the screen)

2) The "Registration Info window" is opened and show'n the registration writing. it stay opend waiting for "OK" to be clicked

My way modified by you... and tested this PCD + on another PC... works fine! :)

To be pernickety, The BSplayer and The "Registration Info window" are shown on the screen, after the registration they're closed.

Is there any how to make it completely silently???

@Wb-FreeKill: For sure i'm less best coder than you. I find this registartion code on MSFN forum.

Regards

coucou

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...