bedazzled Posted September 5, 2005 Posted September 5, 2005 $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 SmOke_N Posted September 5, 2005 Moderators Posted September 5, 2005 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.
GaryFrost Posted September 5, 2005 Posted September 5, 2005 $var = RegRead('HKEY_CURRENT_USER\Console', "QuickEdit") $type = @EXTENDED MsgBox(4096, "registry:", $var & @CRLF & $type )this returns a 4 for mefrom the constants.au3Global Const $REG_NONE = 0Global Const $REG_SZ = 1Global Const $REG_EXPAND_SZ = 2Global Const $REG_BINARY = 3Global Const $REG_DWORD = 4Global Const $REG_DWORD_BIG_ENDIAN = 5Global Const $REG_LINK = 6Global Const $REG_MULTI_SZ = 7therefore it's returning the proper valuewhen 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.
bedazzled Posted September 5, 2005 Author Posted September 5, 2005 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
bedazzled Posted September 6, 2005 Author Posted September 6, 2005 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)
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