ChristopherTyler Posted February 9, 2015 Posted February 9, 2015 Havinf is issue where i have an IF under an IF and not running the second if Func software() $INILOC = InputBox ( "INI Location", "Please input the Locatation and Name of the INI?") DirCreate ( "C:\SELFINI") FileCopy ( $INILOC, "C:\SELFINI") $Acct32 = IniRead ( "C:\SELFINI\VIPSelf.ini", "MENU", "ACCT32", "Default Value") $Acct64 = IniRead ( "C:\SELFINI\VIPSelf.ini", "MENU", "ACCT64", "Default Value") $Cage32 = IniRead ( "C:\SELFINI\VIPSelf.ini", "MENU", "CAGE32", "Default Value") $Cage64 = IniRead ( "C:\SELFINI\VIPSelf.ini", "MENU", "CAGE64", "Default Value") If GUICtrlRead($ACCOUNTING)=$GUI_CHECKED Then If FileExists ("c:\Program Files (x86)") then RunWait ( $Acct64) Else RunWait ( $Acct32) EndIf EndIf If GUICtrlRead($CAGE)=$GUI_CHECKED Then If FileExists ("c:\Program Files (x86)") then RunWait ( $Cage64) Else RunWait ( $Cage32) EndIf EndIf DirRemove ( "C:\SELFINI") EndFunc
Michiel Posted February 9, 2015 Posted February 9, 2015 (edited) The If runs, but the condition is not met, perhaps because of WOW64 interference? Maybe you want @OSArch https://www.autoitscript.com/autoit3/docs/intro/64-bit_support.htm Edited February 9, 2015 by Michiel
Solution ChristopherTyler Posted February 9, 2015 Author Solution Posted February 9, 2015 Im an idiot the path in the INI was wrong
Michiel Posted February 9, 2015 Posted February 9, 2015 Haha, I love the self-deprecatory humor on that last one. "Best Answer" -- LOL.
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