Jump to content
Sign in to follow this  
Anuin

Code Problem

Recommended Posts

Anuin

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

Share this post


Link to post
Share on other sites
scriptkitty

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.

Share this post


Link to post
Share on other sites
GrahamS

Try putting single & double in Quotes, e.g.

$click14b = "Double"

GrahamS

Share this post


Link to post
Share on other sites
Anuin

Thanks Guys...Yeah i figured it out by myself

Gosh im stooopid :iamstupid:

Share this post


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
Sign in to follow this  

×