Anuin 0 Posted March 9, 2004 I need to save the word Double and Single into an ini file when user clicks NO. But it doesnt work!!! $clicq14 = MsgBox(4, "Click", "Would you like to Double Click? (Click No to Single Click)") if $clicq14 = 6 Then $click14 = 2 IniWrite("TEST.ini", "MouseClicks", "Click14", $click14) $click14b = Double IniWrite("TEST.ini", "MouseClicks", "Click14b", $click14b) ElseIf $clicq14 = 7 Then $click14 = 1 IniWrite("Test.ini", "MouseClicks", "Click14", $click14) $click14b = Single IniWrite("TEST.ini", "MouseClicks", "Click14b", $click14b) endif Help me out before my brain turns into mush Share this post Link to post Share on other sites
scriptkitty 1 Posted March 9, 2004 (edited) Only forgot to add quotes for text values of variables. $clicq14 = MsgBox(4, "Click", "Would you like to Double Click? (Click No to Single Click)") if $clicq14 = 6 Then $click14 = 2 IniWrite("TEST.ini", "MouseClicks", "Click14", $click14) $click14b = "Double" IniWrite("TEST.ini", "MouseClicks", "Click14b", $click14b) ElseIf $clicq14 = 7 Then $click14 = 1 IniWrite("Test.ini", "MouseClicks", "Click14", $click14) $click14b = "Single" IniWrite("TEST.ini", "MouseClicks", "Click14b", $click14b) endif I miss it as well at times. $click14 = 2; good $click14b = Double; bad $click14b = "Double"; good $click14b = 'Double'; good Edited March 9, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Share this post Link to post Share on other sites
GrahamS 0 Posted March 9, 2004 Try putting single & double in Quotes, e.g. $click14b = "Double" GrahamS Share this post Link to post Share on other sites
Anuin 0 Posted March 9, 2004 Thanks Guys...Yeah i figured it out by myself Gosh im stooopid :iamstupid: Share this post Link to post Share on other sites