Page 2 of 2

Re: Real SetForegroundWindow Fell Off The Plate

Posted: Wed Feb 23, 2011 7:37 pm
by nco2k
oh boy. :) you complained that this function still has not been added in over 6 years and took it for granted that it will be implemented, even though fred never said so. it would have been a different story, if he actually agreed to that. i just asked what made you think, that he should include a function to suppress a ms design change? thats like asking him to include a function to suppress the themed look of a ProgressBarGadget(), so you can use #PB_ProgressBar_Smooth the way it worked on win2k and earlier. thats something a programmer should do and not pb. if you felt challenged by something trivial like that, then you are either very sensitive when people disagree with you, or you really dont know the meaning of that word. the windows only thing, was something you put in my mouth and i only responded to that. i am a primary windows user and i would never disagree with a feature request, only because its not supported on other platforms (as long as that feature makes sense in the pb world!). however, everything has been said and there is no point in arguing anymore, with someone who is overprotective with his precious feature requests. :?

c ya,
nco2k

Re: Real SetForegroundWindow Fell Off The Plate

Posted: Thu Feb 24, 2011 2:52 am
by MachineCode
freak wrote:Programmers tend to think that their program is sooo important that the user just has to see this right away, but generally they are wrong and it is just annoying. Why do you think the Windows developers found it necessary to limit the abilities to grab the focus in the first place?
Heh. :) Even Windows itself does it, so the Windows developers are hypocrites in this. Case in point: every day I launch any given Microsoft app (Word, Excel, whatever) and then I switch to something else to do (such as typing a post like this) while the other one is launching. Then, when ready, the other app will just steal the focus away from my browser, while I'm still typing, instead of flashing the taskbar button. So the Windows team can't even decide what they want to do. :lol:

Re: Real SetForegroundWindow Fell Off The Plate

Posted: Thu Feb 24, 2011 3:41 am
by freak
You do realize that the people that write Office are not the same people that write the Win32 API, right?

All this is not the point anyway. People disagree on this, and that is perfectly fine. You can use this if you want. I am not stopping you. The point is that we do not add language features that _we_ think encourage bad practices. Seriously, what would the documentation for that look like? "This function performs task X, but don't ever use it. It is bad!" :lol:

Re: Real SetForegroundWindow Fell Off The Plate

Posted: Thu Feb 24, 2011 10:18 am
by c4s
freak wrote:The point is that we do not add language features that _we_ think encourage bad practices. Seriously, what would the documentation for that look like? "This function performs task X, but don't ever use it. It is bad!" :lol:
What about KillThread()? :wink:

Re: Real SetForegroundWindow Fell Off The Plate

Posted: Thu Feb 24, 2011 3:20 pm
by freak
That mistake has been made a long time ago.

Re: Real SetForegroundWindow Fell Off The Plate

Posted: Sun Feb 27, 2011 9:29 am
by Randy Walker
nco2k wrote:oh boy. :) you complained that this function still has not been added in over 6 years and took it for granted that it will be implemented, even though fred never said so. it would have been a different story, if he actually agreed to that... ... and there is no point in arguing anymore, with someone who is overprotective with his precious feature requests. :?
(heavy sigh)
Once again I have to ask that you defer to my original post where I came in to "razz Fred" (not you) with a light-hearted comment about not being able to find the ReallySetForgroundWindow() command in the PB command set.
Now I'm going to razz you because you did post the solution ''yourself'' over 6 years ago... and I still cannot find ReallySetForegroundWindow() in the PB command set! Come on... you're up to ver 4.51 now!!!!! Slacker :P
Possible he is so pissed at me for calling him a slacker that he never felt a reply was justified, or (I prefer to think and hope) he recognized it as a light-hearted comment, was willing to take for nothing more than that and has since been sitting back ROTFLHAO reading all the rediculous posts that followed. Well, mostly yours and mine :D Freak's posts all originated from valid position and reasoning (a PB developer) so can't call them rediculous.

Tell you what though nco2k :) I agree we have worn this one out but, I just created a new Tips&Tricks post that you are welcome to visit and comment on all you like. I mean, you do like commenting on my posts... yes :?: :)
viewtopic.php?f=12&t=45617

Re: Real SetForegroundWindow Fell Off The Plate

Posted: Tue May 17, 2011 5:52 am
by ehowington
Fred if I may there are legitimate reasons in a number of cases to take focus from one application to another in some cases to do input to a string or window of another application I'll even give a good example of such there is a applications call camfrog which is a video chat application with text based window and talk/aka mic button.

A 3rd party developer made a operator tool to interact with camfrog in order for room owners or operators to kick ban etc etc faster instead of typing the command which FYI can be long. Thus iceops was born. Camfrog would never ever release source so tricks like this are needed in some cases to interact with other windows applications for a developer you must see this argument no matter what language is created people will abuse it which I admit is sad.

However take this saying into account
guns don't kill people. People kill people.