MafiaMan Posted January 30, 2009 Share Posted January 30, 2009 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 AgreementWinWaitActive ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "License Agreement" )ControlClick ( "Xilisoft <<converter spam>> 5.1.2.0829 Setup" , "" , "Button2" ); Choose ComponentsWinWaitActive ( "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 shortcutWinWaitActive ( "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 ProgramWinWaitActive ( "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 Edit2I'm getting really angry about all this -.-' . Heeelp Link to comment Share on other sites More sharing options...
radix Posted January 30, 2009 Share Posted January 30, 2009 Registration information is located here:[HKEY_CURRENT_USER\Software\Xilisoft\<<converter spam>>\RegInfo]Add them after the last line using regwrite. Link to comment Share on other sites More sharing options...
MafiaMan Posted January 30, 2009 Author Share Posted January 30, 2009 (edited) 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 January 30, 2009 by MafiaMan Link to comment Share on other sites More sharing options...
mara- Posted January 30, 2009 Share Posted January 30, 2009 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 More sharing options...
MafiaMan Posted January 31, 2009 Author Share Posted January 31, 2009 aha . Thanks , It works like a charm . Thank you two much for this help Link to comment Share on other sites More sharing options...
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