Dear Bahador,
As I have already mentioned, I designed Console::getMouseClick()
to behave that way.
I designed Console::getMouseClick() to only return, once it
receives a mouse-click event.
Thus modifying the Console::getMouseClick() to achieve your
intended behavior is not difficult at all.
Provided that you understand what the Console::getMouseClick() is
doing "internally",
which is why I shared with you that code in the first place.
All you need to do to understand what Console::getMouseClick() is
doing "internally"
is to refer to
http://msdn.microsoft.com, for the documentations
on all those Windows API that I used,
as well as their sample codes.
There are no shortcuts when using the Windows API, because (as I
have already mentioned),
the lowest-level API that a programmer should use to do standard
input/output inside an OS, is to use that OS's API.
Any lower-level than that will be "invisible" to the OS, and thus
potentially dangerous.
Anyway, most modern architecture won't allow it to happen at user-
mode.
However, even at user-mode, some Windows API can cause BSoD if you
do not use it properly as documented by Microsoft,
which is why there are no shortcuts when using the Windows API.
I believe you have the capability to understand what
Console::getMouseClick() is doing "internally",
which is why I shared with you that code in the first place.
You are free to modify the code however you like, because I did
not impose any copyright onto that code.
Afterall, I was just using the Windows API to implement the
application that I shared with you.
But I do hope that you will not "blindly" use those code into your
own program.
Otherwise, it would be no different than using any other "library"
like a black-box,
and in this case, it will be no different than any other student
"blindly" using some code they "found",
which is basically plagiarism (unless they explicity state where
they obtained it from).
PS: modifying the Console::getMouseClick() to achieve your
intended behavior is not difficult at all
Regards,
Victor
On Jul 10, 9:06 pm, bahador saket <
bahador.sa...@gmail.com> wrote:
> Dear Victor,
>
> DS_STR.rar
> 874KViewDownload
>
> I suppose there is a misunderstanding here. What you realized out of my
> posts online was not what I really meant. I did not mean to have written the
> program at all and I seriously didn't want to disrespect the copyright. I
> had written a pretty long program which yours was part of and seriously on a
> forum or a newsgroup, the main objective is to get an answer to your problem
> and any explanation about different authors of the code only brings
> misunderstanding to those trying to solve my problem, and as a matter of
> fact they seriously don't need to know who the authors.
> And my intention was not to own a piece of code and committee an act of
> plagiarism but I just wanted to be quick to find a solution to my problem.
> I respect the copyright rules like any other coders and I believe I
> understand these basic moral things ,all this was a misunderstanding which I
> am awfully sorry about.
> Looking at my emails, I was the one sending you the links. so if I had any
> intention for plagiarism, I would have never let you know about the links.
> I will attach the original program. please consider it.
>
> Regards
> Bahador Saket
>
>
>
> On Sat, Jul 10, 2010 at 4:40 PM, Victor Soh <
sohchienm...@gmail.com> wrote:
> > Dear Bahador,
>
> > You are being disrespectful to the original author.
>
> > Regards,
> > Victor
>
> > On Sat, Jul 10, 2010 at 3:48 PM, bahador saket <
bahador.sa...@gmail.com>wrote:
>
> >> I Forgot to attach my file.
>
> >> i attached the small part of my program for you.
>
> >> Regards,
> >> Bahador
>
> >> On Sat, Jul 10, 2010 at 12:15 PM, bahador saket <
bahador.sa...@gmail.com>wrote:
>
> >>> Dear All
>
> >>> I faced with specific problem in my program.
> >>> I want to use mouse and setcursor with together in my program.
> >>> for example: when I click on search bottom my cursor should go to
> >>> x=30,y=20 and i will input a string in this location by keyboard.
>
> >>> unfortunately, when I am using the setcursor() function before using
> >>> the getmouse() function I can get input from keyboard but when I call
> >>> it after calling getmouse() function I can not get input from
> >>> keyboard.
>
> >>> my editor is codeblock.
> >>> please attend to my code and if it is possible modify my program.
>
> >> --
> >> Post:
fit-ca...@googlegroups.com
> >> Unsubscribe:
fit-cafeteri...@googlegroups.com
> >> Visit:
http://groups.google.com/group/fit-cafeteria?hl=en
>
> > --
> > Post:
fit-ca...@googlegroups.com
> > Unsubscribe:
fit-cafeteri...@googlegroups.com
> > Visit:
http://groups.google.com/group/fit-cafeteria?hl=en- Hide quoted text -
>
> - Show quoted text -