Anuin Posted March 9, 2004 Share 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 Link to comment Share on other sites More sharing options...
scriptkitty Posted March 9, 2004 Share 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. Link to comment Share on other sites More sharing options...
GrahamS Posted March 9, 2004 Share Posted March 9, 2004 Try putting single & double in Quotes, e.g. $click14b = "Double" GrahamS Link to comment Share on other sites More sharing options...
Anuin Posted March 9, 2004 Author Share Posted March 9, 2004 Thanks Guys...Yeah i figured it out by myself Gosh im stooopid :iamstupid: Link to comment Share on other sites More sharing options...
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