• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

I need coding help!

Status
Not open for further replies.
Level 9
Joined
Apr 14, 2007
Messages
437
With coding, I'm pretty good. But one thing I can't figure out, is how to make another box popup after someone hits a button, like OK, No, Accept, or whatever. How do I do this?

EDIT: It can be any kind of coding, but preferably .vbs, .bat, .html, or JScript files
 
Level 6
Joined
Nov 1, 2007
Messages
42
that's simple to do:

IN C

Code:
#include <windows.h>

int main()
{
    if (MessageBox(0,"Pick an option", "MessageBox Example", MB_YESNO) == IDYES)
    {
        MessageBox(0, "You clicked yes", "MessageBox Example",0);
    }
    else
    {
        MessageBox(0, "You clicked no", "MessageBox Example", 0);
    }
}
 
Level 9
Joined
Apr 14, 2007
Messages
437
thanks for the help, and sorry i coulnd't respond sooner. i was grounded for 5 days, but now im back. ill try all your suggestions and see what works best. btw, i wanted to make an annoying test where 50 million boxes popup lol

EDIT: nice....I found out how to do, and it doesn't need to press a button at all. I mean, a certain button. No matter what you do, itll keep poping up with a diffretn message. I made over 200 messages popup one after another to annoy the hell out of my friends:) lol.

I wish I could give rep......well, I have a long way to go
 
Last edited:
Status
Not open for further replies.
Top