Jump to content

Recommended Posts

Posted

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

  • Moderators
Posted

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.

Posted

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

 

Posted

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:

Posted

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)

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