Jump to content

Recommended Posts

I need to save the word Double and Single into an ini file when user clicks NO.

But it doesnt work!!! :whistle:B)

$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 post
Share on other sites

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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...