@PB: There are certain circumstances where the process is locked (LockSetForegroundWindow) or the lock time-out has not expired (SPI_GETFOREGROUNDLOCKTIMEOUT)...
More info @ http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Search found 947 matches
- Mon Feb 24, 2014 3:46 pm
- Forum: Tricks 'n' Tips
- Topic: Real SetForegroundWindow()
- Replies: 9
- Views: 11199
- Mon Feb 24, 2014 3:03 pm
- Forum: Tricks 'n' Tips
- Topic: Real SetForegroundWindow()
- Replies: 9
- Views: 11199
Re: Real SetForegroundWindow()
rock-solid :!: #LSFW_UNLOCK = 2 #ASFW_ANY = -1 Procedure.i ForceWindowIntoForeground(window.i) Protected currentThread.i, activeWindow.i, activeProcess.i, activeThread.i, windowProcess.i, windowThread.i, oldTimeout.i, newTimeout.i currentThread = GetCurrentThreadId_(); activeWindow = GetForegroundWi...
- Mon Feb 24, 2014 2:37 pm
- Forum: Windows
- Topic: Drag to Move/Resize Gadgets
- Replies: 20
- Views: 11255
Re: Drag to Move/Resize Gadgets
You're welcome
- Sat Feb 22, 2014 5:25 am
- Forum: Coding Questions
- Topic: Writing a DLL
- Replies: 19
- Views: 5736
Re: Writing a DLL
I wrote a program similar to dm2 (anyone remembers? ;)) a few years ago and never had problems with the global hook since! Here are the core functions... nlh.dll Enumeration #NLH_DLL_CONTROL = #WM_USER + 101 EndEnumeration ProcedureDLL NLH( nCode, wParam, *lParam.MOUSEHOOKSTRUCT ) If nCode < 0 : Pro...
- Fri Feb 21, 2014 4:13 pm
- Forum: Windows
- Topic: Drag to Move/Resize Gadgets
- Replies: 20
- Views: 11255
- Fri Feb 21, 2014 3:12 pm
- Forum: Windows
- Topic: Drag to Move/Resize Gadgets
- Replies: 20
- Views: 11255
Re: Drag to Move/Resize Gadgets
Resize is not restricted to X only though Just change SendMessage_(gadget, #WM_NCLBUTTONDOWN, #HTBOTTOMRIGHT, 0) to #HTRIGHT, #HTLEFT or whatever #HT? you like ^^ Might be a cache thing... Never heard of that ;). But i have a problem with autocompletion (with-endwith) too, since last setup... who k...
- Fri Feb 21, 2014 2:37 pm
- Forum: Windows
- Topic: Drag to Move/Resize Gadgets
- Replies: 20
- Views: 11255
Re: Drag to Move/Resize Gadgets
Strange! No problems with PB 5.21 LTS (x64 + x86). Code was written pretty fast, so there might be some other oddities
Edit: code updated
Edit: code updated
- Fri Feb 21, 2014 2:16 pm
- Forum: Windows
- Topic: Drag to Move/Resize Gadgets
- Replies: 20
- Views: 11255
Re: Drag to Move/Resize Gadgets
No ugly border and horizontal resize only (change #HTBOTTOMRIGHT to #HTRIGHT) ;) Procedure Resize() ResizeImage(0, GadgetWidth(3), GadgetHeight(3)) StartDrawing(ImageOutput(0)) Box(0,0,OutputWidth(), OutputHeight(), RGB(64,64,64)) Circle(150,150,100, RGB(255,0,0)) DrawingMode(#PB_2DDrawing_Transpare...
- Sat Feb 08, 2014 8:39 pm
- Forum: Windows
- Topic: exe won't delete for linker; possible bug
- Replies: 2
- Views: 1494
Re: exe won't delete for linker; possible bug
You might want to turn the service "Application Experience" back ON :twisted: I had the exact same problem and after 2 days f***ing around with my system (resetting file/folder permissions, installing in different locations, ...) it was just a silly service that needs to be set back to &qu...
- Sat Sep 28, 2013 11:31 pm
- Forum: Off Topic
- Topic: iPhone apps use Windows exes?
- Replies: 7
- Views: 1188
Re: iPhone apps use Windows exes?
To shed some light... Hit Tennis 3 was made in Unity, therefore it is a managed .net dll. So it´s just a C# script compiled to a dll which you can use on any supported Unity platform (Win, Mac, Linux, IOS, Android, XBox360, Playstation3, Wii, ...) Wanna take a closer look? Download dotPeek (http://w...
- Wed Sep 25, 2013 5:59 pm
- Forum: Coding Questions
- Topic: #PB_Window_ScreenCentered | #PB_Window_Minimize
- Replies: 6
- Views: 1312
Re: #PB_Window_ScreenCentered | #PB_Window_Minimize
Works like expected ^^ If OpenWindow(0, 0, 0, 222, 200, "ButtonGadgets", #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered | #PB_Window_Invisible) ButtonGadget(0, 10, 10, 200, 20, "Standard Button") ButtonGadget(1, 10, 40, 200, 20, "Left Button", #PB_Button_Left) Bu...
- Wed Sep 25, 2013 3:39 pm
- Forum: Coding Questions
- Topic: #PB_Window_ScreenCentered | #PB_Window_Minimize
- Replies: 6
- Views: 1312
Re: #PB_Window_ScreenCentered | #PB_Window_Minimize
HideWindow(#Win, #False, #PB_Window_ScreenCentered)
- Mon Jul 15, 2013 2:21 pm
- Forum: Coding Questions
- Topic: How to set tray clock text?
- Replies: 4
- Views: 676
Re: How to set tray clock text?
Strangelly enough, coudn't find any examples with Google. Googled for "TrayClockWClass Purebasic"... http://forums.purebasic.com/german/viewtopic.php?p=57502&sid=ff5d0e7e4a0ceb11c9d628a32af046b3#p57502 (Pb 5.20 beta 5 compatible) Dim b$(6) Global hell, dunkel, hintergrund Global size....
- Mon Jul 15, 2013 12:13 am
- Forum: Coding Questions
- Topic: Set priority/affinity of a system process?
- Replies: 11
- Views: 3387
Re: Set priority/affinity of a system process?
So it turns out my system must have been pretty f´ed up... Did a clean install and your code works like a charm
Thx again for your help, JHPJHP!
Thx again for your help, JHPJHP!
- Thu Jul 11, 2013 2:45 pm
- Forum: Coding Questions
- Topic: Set priority/affinity of a system process?
- Replies: 11
- Views: 3387
Re: Set priority/affinity of a system process?
Could your current profile be corrupted, or might you have a Group Policy, Firewall, Anti-Virus setting blocking this? Actually that might be... My system crashed pretty bad about half a year ago. After recovery I discovered some minor problems with the system but they didn't bug me that much. Mayb...