coucou Posted April 19, 2005 Posted April 19, 2005 (edited) 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 BSplayer2) Type "F1" key3) 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 helpcoucou Edited April 19, 2005 by coucou
buzz44 Posted April 19, 2005 Posted April 19, 2005 (edited) 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 April 19, 2005 by Burrup qq
Wb-FreeKill Posted April 19, 2005 Posted April 19, 2005 (edited) 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 April 19, 2005 by Wb-FreeKill
Wb-FreeKill Posted April 19, 2005 Posted April 19, 2005 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
buzz44 Posted April 19, 2005 Posted April 19, 2005 (edited) 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 April 19, 2005 by Burrup qq
coucou Posted April 19, 2005 Author Posted April 19, 2005 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 clickedMy 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.Regardscoucou
Woocash[ACN] Posted April 19, 2005 Posted April 19, 2005 yes, run filemon, regmon (from sysinternals.com) and check what is being changed durign registration... than after install just put those values into registry, modify/change files just joking... seems to be a little illegal regards,Woocash[ACN]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now