Jump to content

RegRead @Extended


 Share

Recommended Posts

  • Moderators

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.

Link to comment
Share on other sites

$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.

 

Link to comment
Share on other sites

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)

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
 Share

  • Recently Browsing   0 members

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