William Hemsworth 1,339 Posting Virtuoso

Gaint hairy jelly rodents eat tall blind men needlessly.

hurbaesb

William Hemsworth 1,339 Posting Virtuoso

- Music geek
- Japanese language / culture geek
- Texting geek
- Computer geek

William Hemsworth 1,339 Posting Virtuoso

Try running an anti-virus while in safe mode, and see if it detects anything.

William Hemsworth 1,339 Posting Virtuoso

You're not going to get much help with the amount of effort put in to presenting your question. Learn to type properly and use code-tags.

William Hemsworth 1,339 Posting Virtuoso

Perhaps this thread may help you [link]
Took a hell of alot of searching :P

William Hemsworth 1,339 Posting Virtuoso

Maybe mouse_event and keybd_event is what you're looking for, i'll provide a couple of examples.

  • Simple mouse click
    mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
    mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
  • Press space bar
    keybd_event( VK_SPACE, 0x45, KEYEVENTF_EXTENDEDKEY, 0 );
    keybd_event( VK_SPACE, 0x45, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0);

Hope this helps.

William Hemsworth 1,339 Posting Virtuoso

I experienced it somewhat faster than IE and Firefox cos it's written entirely on the assembly language.

Assembly is only faster than other programming languages (such a C/C++), if the programmer has the ability to optimize the code better than the C/C++ compiler, and recent compilers do this very well, so it's difficult to match the speed of C/C++ using assembly.

William Hemsworth 1,339 Posting Virtuoso

Bing images I like too, it displays endless amounts of pictures on one page, a big improvement from google's image search IMO.

William Hemsworth 1,339 Posting Virtuoso

Have fun with that.

William Hemsworth 1,339 Posting Virtuoso

Because a title named Cool New Game must See!! is more
catching than Thread Rules or something similar.

Perhaps, but once people stop posting in this thread, it will scroll down and go on to page two, and never be seen again (by most people). So unless this turns into a sticky thread (which I doubt), this thread wont have much use, after all, most people don't even read the rules and jump straight to trying to find an answer.

William Hemsworth 1,339 Posting Virtuoso

This has already been said in the sticky thread posted by Narue, what makes you think anybody will read this?

William Hemsworth 1,339 Posting Virtuoso

You can't use an array for a sudoku program? I would have thought that you would have been taught arrays before being told to make something like this.

Anyway, considering there's only 16 cells in the sudoku, just make 16 integers and continue from there.

William Hemsworth 1,339 Posting Virtuoso

push_back is a function that belongs to std::vector, anything you do to an array has to be done manually.

William Hemsworth 1,339 Posting Virtuoso

You were the first member to ever reply to me :icon_lol:

Hope you're okay and good luck.

William Hemsworth 1,339 Posting Virtuoso

You could fill each box with unique integers, shuffle them around (while making sure the sudoku is still valid) and then erase a few of the numbers (making sure it's still possible to solve).

There's probably quite a few ways to manage this, and there's plenty of information on the net to help you.

William Hemsworth 1,339 Posting Virtuoso

Just tried BING with a search and compared it with google, I prefered the results from the BING search engine. I may consider testing it for a while.

William Hemsworth 1,339 Posting Virtuoso

I'll use whatever makes the best searches (still google imo), I don't like all this anti-windows rubbish.

William Hemsworth 1,339 Posting Virtuoso

No, now I win!

William Hemsworth 1,339 Posting Virtuoso

I lose, in advance,

William Hemsworth 1,339 Posting Virtuoso

On holiday, so I don't have many decent photos, just this crappy one I took on my phone before going out ;P go ahead, throw your insults.

Sulley's Boo commented: Cute +6
William Hemsworth 1,339 Posting Virtuoso

Are you sure you want to do this? by making your program support CLR, you're sacrificing alot of portability and adding some chaos to your program. .NET is good for rapid development of larger programs, what you want to do may be better accomplished using the Win32 API.

William Hemsworth 1,339 Posting Virtuoso

talhaz has the right idea, but that code may be confusing and it doesn't set the console cursor position.

If you're using windows, you can write yourself a couple of helper functions, here's one to set the cursor position.

void SetPos(int x, int y) {
  static HANDLE hOut = GetStdHandle( STD_OUTPUT_HANDLE );
  COORD pos = {x, y};
  SetConsoleCursorPosition( hOut, pos );
}
William Hemsworth 1,339 Posting Virtuoso

char* is a pointer to a certain amount of memory containing characters (assuming space was allocated there), and can be used to store a string.

To play a file, you use the following arguments.

PlaySound("sound.wav", NULL, SND_FILENAME);

And to make it loop, just put it in a simple for loop.

Hope this helps.

Edit: Don't forget to link to Winmm.lib to use the PlaySound function.

William Hemsworth 1,339 Posting Virtuoso
William Hemsworth 1,339 Posting Virtuoso

Can someone comment at least if this happens to them also even if they don't know the solution?

It happens to me, sometimes it goes months without sending me notifications too, and suddenly starts again.

William Hemsworth 1,339 Posting Virtuoso

Consider using the Dark GDK forum for actually having a decent chance of getting a reply from people who know something about it. [link]

William Hemsworth 1,339 Posting Virtuoso

>dont you think this is a motivator?
Not so much for me, I get my motivation simply because... I like helping people, it makes me feel good :D

I pay absolutely no attention to solved threads, because I agree, it doesn't work very well. Getting a badge isn't important for most members either, and maybe you should think why you are really here - to get help or give help.

Consider being a featured poster/coder a reward, you're lucky to get one, you're not entitled to one because you think you deserve it.

Nick Evan commented: yup +21
William Hemsworth 1,339 Posting Virtuoso

@William. Serkan asks something politely, doesn't he? and your reply is somewhat harsh please don't offense people. everyone in the community is part of it, you == me == Serkan == Salem == Dani, no one can let this community stand up without others help, if anyone criticize me it doesn't mean I'm good or bad, it means how others see me and should take his words in my consideration and I debate this is the best thread Serkan wrote not because the subject has my name, I don't care but what I need to say don't offense someone did dozen of threads marked as SOLVED and when he ask and no one answers he posts the full answer + sample application.

I don't see how my post was harsh, and i'm not saying we don't deserve credit for good posts, but requesting for your friends to be featured shows you're more interested in a badge rather than just helping.

William Hemsworth 1,339 Posting Virtuoso

>if my best friends dont get featured i am going to organize them to leave for a better c# forum where their skills are appreciated.
Oh please, do you actually care about helping people or do you just want everyone to see you as somebody who helps people, there's a difference.

>All i care about is becoming Super Mod.
I think I have more chance of watching hell freeze over than seeing you become a super mod. :D

If you really want a better chance of getting some (good) popularity, be nice and helpful, and stop requesting.

jephthah commented: and when hell does freeze over, you better look out! :P +12
William Hemsworth 1,339 Posting Virtuoso

I think it's a good idea, in the past i've just given links to images, but it would be much better to be able to attach them.

In this one for example [link]

William Hemsworth 1,339 Posting Virtuoso

... Nvm.

William Hemsworth 1,339 Posting Virtuoso

He didn't do anything "wrong" as such, but there isn't any need to cast it.

William Hemsworth 1,339 Posting Virtuoso

Totally agree. All those pixels make it obvious.

I can't tell by looking at the pixels, just looks like the typical jpeg-compressed image to me, and the shadows may make it look odd when zoomed.

Edit: 1000th post, yay :)

William Hemsworth 1,339 Posting Virtuoso

Well what do you think you are bud?

Many billions of cells of cells grouped into organs / tissues.

William Hemsworth 1,339 Posting Virtuoso

Wow, really?

Yeh, I found that video sort of annoying, not sure if there's still a link to it somewhere or not.

William Hemsworth 1,339 Posting Virtuoso

Haha :D

William Hemsworth 1,339 Posting Virtuoso

I don't believe in Ghosts. Every ghost video i've ever seen just looks so tacky, probably because the idea of "ghosts" just seems tacky to me.

anyone who denies them is a fool

Eh? what makes you SO sure that they are real? Get some proof before calling a high majority of the world stupid :P We could quite easily call you a fool for believing in ghosts, but we all have our different opinions.

William Hemsworth 1,339 Posting Virtuoso

Paprika flavoured pringles.

William Hemsworth 1,339 Posting Virtuoso

tried it :P yeah right.

Rissõis.

William Hemsworth 1,339 Posting Virtuoso

In a game of Pong?

Making the bot really isn't difficult in a game such as this, the main functionality would be something like this:

if (ball.y < bot.y) {
  bot.y -= 5;
}
if (ball.y > bot.y) {
  bot.y += 5;
}

As for making it an even game, just do some trial & error until the difficulty seems right.

William Hemsworth 1,339 Posting Virtuoso

Cool find ;D

William Hemsworth 1,339 Posting Virtuoso

>Farah Faucett (old charlies angels) is dead too? and Michael Jackson gets the headlines?
I'm really not surprised, Michael Jackson was more popular, and practically changed music as we know it today, not to mention being named the "King of Pop". Did Farah Fawcett really do anything to impact our lives so much? :P

William Hemsworth 1,339 Posting Virtuoso

>Usually someone is characterized as dead after they haven't been found "breathing" for a while
Well aren't you smart, ever heard of CPR?

Bye.

William Hemsworth 1,339 Posting Virtuoso

Just heard about it, bbc news says nothing about him actually "dieing", but that the patient they found wasn't breathing when they found him.

And god knows what the above post was about...

William Hemsworth 1,339 Posting Virtuoso

W.I.L.L.I.A.M.: Wireless Intelligent Lifeform Limited to Immediate Assassination and Mathematics :P

William Hemsworth 1,339 Posting Virtuoso

The problem could also be that you're trying to send messages to the main window itself, not the child windows, meaning that they never recieve the messages.

William Hemsworth 1,339 Posting Virtuoso

Not entirely sure, but you're trying to communicate with a program that you don't fully understand, or know how it was made. For all you know, mspaint.exe may use a mouse hook to retreive clicks and movement, in which case this may not work.

So if possible, try using an alternative method such as mouse_event or SetCursorPos.

Here's a snippet I made which uses both of these. [link]

William Hemsworth 1,339 Posting Virtuoso

>There's plenty of big-number libraries on the net, or if you have the programming ability, you can write your own big-number class.
Huh? A class in C ??

:P

It's practically the same thing, in my example I used a struct anyway.

William Hemsworth 1,339 Posting Virtuoso

I don't get it, what's your problem?

Also, don't use void main, replace it with int main.

William Hemsworth 1,339 Posting Virtuoso

Okay whatever, if you really "admire" her, stop ruining all your threads (and others), you actually make some nice theads, but they usually end up creepy. I just wish you wouldn't bring up this topic everytime.