Real SetForegroundWindow Fell Off The Plate

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: Real SetForegroundWindow Fell Off The Plate

Post 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
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Real SetForegroundWindow Fell Off The Plate

Post 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:
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Real SetForegroundWindow Fell Off The Plate

Post 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:
quidquid Latine dictum sit altum videtur
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Real SetForegroundWindow Fell Off The Plate

Post 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:
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Real SetForegroundWindow Fell Off The Plate

Post by freak »

That mistake has been made a long time ago.
quidquid Latine dictum sit altum videtur
Randy Walker
Addict
Addict
Posts: 998
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: Real SetForegroundWindow Fell Off The Plate

Post 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
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
ehowington
Enthusiast
Enthusiast
Posts: 115
Joined: Sat Sep 12, 2009 3:06 pm

Re: Real SetForegroundWindow Fell Off The Plate

Post 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.
Post Reply