Jump to content

My problem


TNguyen
 Share

Recommended Posts

Help me!

Program read key name in the .ini file invalid when logon window.

Autoit File:

#include <String.au3>
#NoTrayIcon

Dim $fileConfig = "conf.ini"
Dim $userLevel = "1"
Dim $passLevel = "1"
Dim $keyPass = "NHTU"
Dim $msgKey = "msg"

$username= _StringEncrypt(0, IniRead($fileConfig, "Setting", $msgKey, "NotFound"), $keyPass, $userLevel)

Opt("TrayMenuMode",1);Script Paused/Exit will not be shown.
MsgBox(0,"Welcome",$username)


;------- Run when logon ----------------------------------------------------------------------------
Dim $regPath = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"
RegWrite($regPath, "Welcome", "REG_SZ", @ScriptFullPath)

Exit

conf.ini

[Setting]
msg=763DC0D8264524EABF7442A287BD23BC3C01E93A
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...