Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Win32: TieRegistry

by programmercarlito (Novice)
on May 08, 2015 at 02:37 UTC ( [id://1126049]=perlquestion: print w/replies, xml ) Need Help??

programmercarlito has asked for the wisdom of the Perl Monks concerning the following question:

Just wondering how do I exactly use the Win32: TieRegistry code with this line

Like where do I put this in the main code or in this file.

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main “Start Page”=”http://www.howtogeek.com/”

use Win32::TieRegistry 0.20 ( UseOptionName=>UseOptionValue[,...] ); $Registry->SomeMethodCall(arg1,...); $subKey= $Registry->{"Key\\SubKey\\"}; $valueData= $Registry->{"Key\\SubKey\\\\ValueName"}; $Registry->{"Key\\SubKey\\"}= { "NewSubKey" => {...} }; $Registry->{"Key\\SubKey\\\\ValueName"}= "NewValueData"; $Registry->{"\\ValueName"}= [ pack("fmt",$data), REG_DATATYPE ];
I want to change the default homepage on the web browser internally. Like if the user wanted to get into the browsers settings he/she would see that its changed.

Replies are listed 'Best First'.
Re: Win32: TieRegistry
by soonix (Canon) on May 08, 2015 at 10:00 UTC

    Hi programmercarlito,

    The code you posted is straight from the "Synopsis" of Win32::TieRegistry and gives just the "general idea". You have to read further. The most interesting part for you probably is the "examples" section, which you should read from the beginning, because the examples build upon each other.

Re: Win32: TieRegistry to change the default homepage on the web browser internally HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
by Anonymous Monk on May 08, 2015 at 06:33 UTC

    Just wondering how do I exactly use the Win32: TieRegistry code with this line HKEY... Like where do I put this in the main code or in this file. I want to change the default homepage on the web browser internally. Like if the user wanted to get into the browsers settings he/she would see that its changed.

    Hi programmercarlito

    Have you heard of reg.exe?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1126049]
Approved by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-24 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found