The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: oex on April 05, 2010, 02:42:56 AM

Title: Console Click
Post by: oex on April 05, 2010, 02:42:56 AM
Is there a callback or somesuch for console click? Would be nice to click printed text to perform an action like file/folder open etc.... Maybe console is keyboard entry only? Maybe I can hook it somehow? I have right click paste atm and can select text so I know the window is accepting mouse input of sorts
Title: Re: Console Click
Post by: dedndave on April 05, 2010, 02:55:46 AM
i dunno about a callback, but i can tell you the console window is very buggish when it comes to mouse input
especially copy/paste

if you have a seperate console app running, you can get mouse input using ReadFile, i think
Title: Re: Console Click
Post by: oex on April 05, 2010, 03:00:13 AM
meh, not to worry, was looking for a quick fix, I will struggle on with keyboard access until I get my BMI finished rather than find tacky workarounds :lol
Title: Re: Console Click
Post by: joemc on April 05, 2010, 03:00:41 AM
Quote from: oex on April 05, 2010, 02:42:56 AM
Is there a callback or somesuch for console click? Would be nice to click printed text to perform an action like file/folder open etc.... Maybe console is keyboard entry only? Maybe I can hook it somehow? I have right click paste atm and can select text so I know the window is accepting mouse input of sorts

The main problem with this is you will have to have message pumping so you can say goodbye to classic functions for keyboard input. GetAsyncKeyState GetCursorPos etc.

Honestly a regular window would make more sense... but definitely possible.
Title: Re: Console Click
Post by: dedndave on April 05, 2010, 03:02:10 AM
i have come to regard the console window as a simple tool
not a great place for any real-world application
Title: Re: Console Click
Post by: oex on April 05, 2010, 03:10:23 AM
It was planned for debug, nothing more, but would be pretty handy, at least for file opening or parent folder opening etc
Title: Re: Console Click
Post by: dedndave on April 05, 2010, 03:14:57 AM
a while back, there was a guy in here that made a gui window that behaved like a fancy console window
it was pretty cool
he used piping
about the same time, Mike (SlugSnack) was playing with piping also
that may help you narrow the search
Title: Re: Console Click
Post by: oex on April 05, 2010, 03:20:54 AM
I can think of 101 way to do it but all of them require an inefficient use of my processor/brain time :lol

I need:

invoke FingTextCallback

I just worked out how to do it really well but time is life!
Title: Re: Console Click
Post by: dedndave on April 05, 2010, 04:31:42 AM
you weren't doing anything with it, were you ?
Title: Re: Console Click
Post by: oex on April 05, 2010, 04:35:08 AM
No dont worry about it, best way I thought of was scanning hdcs so copy pasting filepaths will have to be good enough for now