Jump to content

Inserting Serials in apps with auto IT


MafiaMan

Recommended Posts

I have couple of programs i bought for which i have serials but i don't know how to copy/paste them with auto it ? I made automated install's for them and i get to the part where are the blank field but what next. How to instert them in and then press OK . Problem for example with xilisoft <<converter spam>> is that registration windows doesn't have it's title and i don't know what to type in script

; This will install Xilisoft <<converter spam>> 5.1.2	
Run ( "x-hd-video-converter.exe" )

; License Agreement
WinWaitActive ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "License Agreement" )
ControlClick ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "" , "Button2" )

; Choose Components
WinWaitActive ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "Choose Components" )
ControlClick ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "" , "Button2" )

; Choose Install Location
WinWaitActive ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "Choose Install Location" )
Send ( "{TAB}" )
Send ( "{TAB}" )
Send ( "{TAB}" )
Send ( "{ENTER}" )

; Choose Start Menu Folder
WinWaitActive ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "Choose Start Menu Folder" )
ControlClick ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "" , "Button2" )

; Create shortcut
WinWaitActive ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "Create shortcut" )
Send ( "{SPACE}" )
Send ( "{DOWN}" )
Send ( "{SPACE}" )
Send ( "{DOWN}" )
ControlClick ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "" , "Button2" )

; Completing the Xilisoft <<converter spam>> 5.1.2.0829 Setup Program
WinWaitActive ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "Completing the Xilisoft <<converter spam>> 5.1.2.0829 Setup Program" )
Send ( "{SPACE}" )
ControlClick ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "" , "Button2" )

Run ( @ProgramFilesDir & "\Xilisoft\<<converter spam>>\vc5.exe" )

; HD H264 Video (*.mp4)
WinWaitActive ( "Xilisoft <<converter spam>>" , "HD H264 Video (*.mp4)" )
ControlClick ( "Xilisoft <<converter spam>>" , "" , "ToolbarWindow321" )
Send ( "{RIGHT}" )
Send ( "{DOWN}" )
Send ( "{DOWN}" )
Send ( "{DOWN}" )
Send ( "{ENTER}" )

After all this i get the registration windows with blank field with are called Edit1 and Edit2

I'm getting really angry about all this -.-' . Heeelp :)

Link to comment
Share on other sites


how ? it's not working. I entered the key manualy, then went where you said and exported RegInfo. I named it ''serial'' and put it in the same folder where is the installation of Xilisoft VCU and my script and it's not working :(

I tryed like this

Regwrite ( "serial.reg" )

Edited by MafiaMan
Link to comment
Share on other sites

You are using that function wrong. Read in AutoIt help how to use it. RegWrite is used to directly write to registry, not to use exported registry file.

RegWrite ( "keyname" [,"valuename", "type", value] )

Example:

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Test", "TestKey", "REG_SZ", "Hello this is a test")

Cheers ;)

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
  • Recently Browsing   0 members

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