how do you a poll a msgbox in vbs

Sony Vaio vgnnw180j/s notebook
November 2, 2009 at 18:47:18
Specs: Windows Vista
how can i create a messagebox that will do a poll if you use the yes and no buttons (4)
example x = msgbox ("is this helpful" ,4+32, " please help")
so like it counts the amounts of yes and no's for you

See More: how do you a poll a msgbox in vbs

Report •


#1
November 2, 2009 at 19:49:28
Something simple like the following?


x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

wscript.echo "Yes " & yes & " No " & no


Report •

#2
November 3, 2009 at 06:40:31
ty, but im sorry if i sound stupid, but its not adding up
like if i click yes it will be yes1 no
if i click yes again it will still be yes1 no
if i click no the third time it will be yes no1

Report •

#3
November 3, 2009 at 08:21:57
Correct, becuase you are only asking it once each time you run the script. Is this part of a bigger script and you want to call the question as a function? Or if you just want it to continue to ask yes or no, you can put it in a loop of some sorts if you have a stopping point, like Do While Yes is less the 10 or something like that, Or you can just have a running total by putting the question multiple times like the following. Really when it comes down to it, if you are using the script and getting your count once, then it exits the totals for yes and no need to be stored somewhere other then the script.


x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

x=msgbox ("Is this helpful" ,36, " please help")

If x = VBYes then
Yes = Yes + 1
ElseIf x = VBNo then
No = No + 1
End If

wscript.echo "Yes " & yes & " No " & no


Report •

Related Solutions

#4
November 3, 2009 at 13:38:31
Alright thanks, Is there any way to do it, so it will save your answers and only ask once a time,

like you ask once, it records it and exits off?
and then you do the program lets say 2 hours later it records and exits off?

So if you put yes twice, it would say yes 2 no, even tho the program wasnt ran for hours?


Report •

#5
November 3, 2009 at 18:13:27
The only way that I can think that you would be able to accomplish that, would be to actually save the Yes and No totals in a file somewhere on the computer.

Report •

#6
November 3, 2009 at 18:28:15
alright thanks alot i know alot more then i did before i asked, Thank you Very Mutch =)

Report •

#7
November 5, 2009 at 18:44:57
holy crap u guys are total losers.... why dont u all love wieners like i do?

Report •

#8
November 5, 2009 at 18:59:17
me and my homosexual lover gabe gonzales love weiners. we stick them in every hole we can. i love all types of weiners, black weiners, big weiners, small weiners, it doesn't matter but my favorite weiner is the fake kind. it's not as warm but you can stick them way further into your butt hole. and gabe if your reading this i think you get the hint, and if you don't i'm saying i want to shove an enormous fake weinerr into your butt hole

Report •

#9
November 5, 2009 at 19:06:56
oh my goodness ur gabes homosexual lover? how is he in bed? is he big? hes the man of my dreams :) actually in my dreams i see him cumming so far in my butthole it comes out of my mouth :) and its so awesome i only wish it would come true

Report •

#10
November 5, 2009 at 19:12:34
no he's tiny but loves taking it in the butt. he squeals like a pig. unless your mouth is 2 inches from your moth he will never reach it with his tiny tiny penus. but if you want to ride him he'd definetly be up for that. also he loves to cum in guys mouths

Report •

#11
November 5, 2009 at 19:16:24
oh man... tiny wieners are even better i love em when their tiny and i love to picture gabes wiener in my mouth too and the squealing sounds amazing... i want gabe to make me squeal haha, does he ever have diarrhea all over u during sex? cause if so i want him even more

Report •

#12
November 5, 2009 at 19:26:36
he does, all the time. it feels amazing on my penus and tasts even better. also if you can shove somthing up far enough he bleeds all over the place, it makes us so horney.

Report •

#13
November 5, 2009 at 19:31:44
oh man sounds amazing i want his anal blood all over my wiener... does he ever have u s--- in his mouth? cause ive done that with guys and they say its amazing and does gabe ever let u cum in his butt?

Report •

#14
November 5, 2009 at 20:44:20
yes, he love the taste of s---. somtimes he goes around and get animal s--- and eats it. and cum is his second favorite thing to have in his butt hole. his favoite thing is penus ofcoarse.

Report •


Ask Question