Jump to content

Recommended Posts

Posted (edited)

I can not really work it out this.

config.ini
[Section]
Hide=Hide
 
.au3
$var1 = IniRead("config.ini", "Section", "Hide", "NotFound")
Control & $var1("Program Manager", "", "[CLASSNN:SHELLDLL_DefView1]"
Edited by Hansio
Posted

try:

$var1 = IniRead("config.ini", "Section", "Hide", "NotFound")
msgbox(0, "INI File", 'in section "hide" there is "' & $var1 & '" as the value")

as your code

[spoiler]My UDFs: Login UDF[/spoiler]

Posted

What I want is to replace ControlHide with ControlShow through my ini file

What it does is to hide my desktop icons

ControlHide("Program Manager", "", "[CLASSNN:SHELLDLL_DefView1]")
Posted

I believe that in order for the AutoIt INI functions to work, there must be a named section in the .ini file. So your config.ini may have to look like this

[section]

Hide=Hide

It is there already, I had just forgotten to write it here

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
×
×
  • Create New...