Jump to content
Sign in to follow this  
bedazzled

RegRead @Extended

Recommended Posts

bedazzled

$var = RegRead('HKEY_CURRENT_USER\Console', "QuickEdit")

$type = @EXTENDED

MsgBox(4096, "registry:", $var & @CRLF & @EXTENDED )

@Extended does not do anything apart from return a 0... ?

Share this post


Link to post
Share on other sites
SmOke_N

I believe @Extended only returns a change from the original variable, in your case $var.

If that's all you have, and you didn't change anything... how could it return anything else but "0"?

I've never used this, so I could be wrong.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
GaryFrost

$var = RegRead('HKEY_CURRENT_USER\Console', "QuickEdit")
$type = @EXTENDED 
MsgBox(4096, "registry:", $var & @CRLF & $type )

this returns a 4 for me

from the constants.au3

Global Const $REG_NONE      = 0

Global Const $REG_SZ      = 1

Global Const $REG_EXPAND_SZ      = 2

Global Const $REG_BINARY      = 3

Global Const $REG_DWORD      = 4

Global Const $REG_DWORD_BIG_ENDIAN    = 5

Global Const $REG_LINK      = 6

Global Const $REG_MULTI_SZ      = 7

therefore it's returning the proper value

when you run it are you using the latest beta? currently 3.1.1.73


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
bedazzled

yes youre right .. sorry.. it was pointing at one of my (many) legacy versions of autoit...

the current beta does handle it correctly returning a 4

apologies :whistle:

Share this post


Link to post
Share on other sites
bedazzled

disabling quickedit mode in dos windows:

;save and disable

$current_value = RegRead('HKEY_CURRENT_USER\Console', "QuickEdit") ; save current value

RegWrite('HKEY_CURRENT_USER\Console', "QuickEdit", "REG_DWORD", 0) ; set quick edit off

launch the window here ......

;set it back to what it was

RegWrite('HKEY_CURRENT_USER\Console', "QuickEdit", "REG_DWORD", $current_value) ; set quick edit value back again

;this works for the console window ...

;i use it to make sure that autoit launched perl programs do actually run, and dont get made inactive by quickedit mode (which was a pain)

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.