Jump to content

moshi

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by moshi

  1. run the script with the #RequireAdmin function?
  2. Hello, I am tring to add a Registry keys using the RegWrite command. It works on XP, but on Vista/7 the RegWrite command will not add the HKEY_LOCAL_MACHINE keys, but it adds the HKEY_CURRENT_USER keys. any ideas? this is my script: ; --------------- Regsitry Setting for Tight VNC 2 RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\TightVNC\Server", "LocalInputPriority","REG_DWORD","1") RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\TightVNC\Server", "LocalInputPriorityTimeout","REG_DWORD","2") RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\TightVNC\Server", "EnableFileTransfers","REG_DWORD","1") ; --------------- Regsitry Setting for Tight VNC 1.3 RegWrite ( "HKEY_CURRENT_USER\Software\ORL\WinVNC3", "FileTransferEnabled" ,"REG_DWORD","1") RegWrite ( "HKEY_CURRENT_USER\Software\ORL\WinVNC3", "RemoveWallpaper" ,"REG_DWORD","1") RegWrite ( "HKEY_CURRENT_USER\Software\ORL\WinVNC3", "Tester" ,"REG_DWORD","1")
  3. Hello, I have a basic question in autoit - how to use menu? I added the code to create to the menu, but didn't manage to run a command when clicking on it. Thanks for any Help this is the code for creating the menu: (working fine) $GlobalMenu = GUICtrlCreateMenu("&Global") $ExitDisconnectItem = GUICtrlCreateMenuItem("Exit and &Disconnect",$GlobalMenu,0) $ExitItem = GUICtrlCreateMenuItem("&Exit",$GlobalMenu,1) this is what I try to do to run a command when a menu is clicked (Not working) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $ExitItem Then MsgBox (1,"tt","message") Sleep(2000) ; Idle around WEnd
  4. That's working! thanks! Can you explain to me the logic behind this? every time I have binary I should add the "0x" to the exported regsitry data?
  5. Hello everyone, I tries to insert a password for Vnc server by a RegWrite command, but have problem with that. The problem is that the password is showed in the registry as REG_BINARY type, When I export it, I get value like this: [HKEY_CURRENT_USER\Software\ORL\WinVNC3] "Password"=hex:49,90,e2,3d,ed,0b,be,3b And then when I put this value in the RegWrite command I don’t get the right value. I assume some conversion is needed. I read this thread http://www.autoitscript.com/forum/index.php?showtopic=107881&st=0&p=769989&hl=REG_BINARY&fromsearch=1&#entry769989 about creating a REG_BINARY entry but yet didn't what should I do or how to convert this " hex:49,90,e2,3d,ed,0b,be,3b" into the AutoIt RegWrite function. My line is this, but the value is not good RegWrite ( "HKEY_CURRENT_USER\Software\ORL\WinVNC3", "Password" ,"REG_BINARY"," 4990e23ded0bbe3b") Thanks for any help!
×
×
  • Create New...