Search found 947 matches
- Sun Nov 20, 2022 9:48 pm
- Forum: Tricks 'n' Tips
- Topic: AeroShot (PB-Edition)
- Replies: 22
- Views: 6153
Re: AeroShot (PB-Edition)
With a bigger margin, it's the same. with a black or white background, it's the same. Displaying partially on a black and on a white background, it's the same. The part with the black/white background wasn't meant for you ;). This is how the program works in general. You take a 32bit screenshot of ...
- Sun Nov 20, 2022 11:30 am
- Forum: Tricks 'n' Tips
- Topic: AeroShot (PB-Edition)
- Replies: 22
- Views: 6153
Re: AeroShot (PB-Edition)
Thanks for testing, Denis! Don't forget that you' ll probably need to set a larger margin on Win11 to capture the entire shadow plane of the window. I set margin to 1. Trying with default margin, the shadow looks like that (completely black, no shadow): http://denislabarre.free.fr/Images/Aero_chi_1...
- Sun Nov 20, 2022 8:45 am
- Forum: Tricks 'n' Tips
- Topic: AeroShot (PB-Edition)
- Replies: 22
- Views: 6153
Re: AeroShot (PB-Edition)
Nice code, but it forces the target window to the foreground. Is there a way to do it without that and keep the Aero theme? Having big windows stealing the focus is not good. Hi BarryG, I'm afraid that's not possible with the current implementation. What exactly is the problem with forcing the wind...
- Sun Oct 09, 2022 4:45 pm
- Forum: Coding Questions
- Topic: IPAddressGadget() - How to tell if a field is blank?
- Replies: 3
- Views: 282
Re: IPAddressGadget() - How to tell if a field is blank?
With WinAPI you could check IPM_GETADDRESS or IPM_ISBLANK OpenWindow(0, 0, 0, 320, 200, "title", #PB_Window_SystemMenu|#PB_Window_ScreenCentered) ButtonGadget(0, 20, 20, 130, 23, "debug") IPAddressGadget(1, 20, 50, 130, 21) SetGadgetState(1, MakeIPAddress(127, 0, 0, 1)) Repeat ev...
- Fri Sep 09, 2022 5:45 pm
- Forum: Coding Questions
- Topic: #STARTF_TITLESHORTCUT SetGadgetItemText ?
- Replies: 11
- Views: 723
Re: #STARTF_TITLESHORTCUT SetGadgetItemText ?
An interesting happens though: The program resides here: C:\CopyFilesTo-BETTER . When I run the program via Compile/Run , Program shows it is running in: C:\Users\vmars\AppData\Local\Temp\PureBasic_Compilation1.exe This is completely normal. When you Compile/Run the source, PB always creates a temp...
- Fri Sep 09, 2022 3:52 pm
- Forum: Coding Questions
- Topic: #STARTF_TITLESHORTCUT SetGadgetItemText ?
- Replies: 11
- Views: 723
Re: #STARTF_TITLESHORTCUT SetGadgetItemText ?
Turn on "Enable DPI aware executable" under Compiler Options... and try again. The "black line" you are seeing is the scrollbar of the editor gadget. Or change the width and height of the gadget to something larger. I was not able to reproduce your problem with the scrollbar, tho...
- Tue Sep 06, 2022 1:00 pm
- Forum: Windows
- Topic: Windows 11 - Systray Icon disappears after a while
- Replies: 7
- Views: 853
Re: Windows 11 - Systray Icon disappears after a while
Further clarification: this is an application that auto-starts on Windows login, and is located in the (still functional) Startup folder. It might be unrelated, but I had problems with Windows 7 and the Startup folder. Shortcuts created by right clicking on the exe -> drag -> "create shortcut ...
- Sat Aug 27, 2022 11:18 pm
- Forum: Windows
- Topic: [Solved] GetPixel_
- Replies: 5
- Views: 665
Re: GetPixel_
Still working...
Code: Select all
ghDC = GetDC_(GetDesktopWindow_())
GetCursorPos_(@igPt.POINT)
igRGB = GetPixel_(ghDC, igPt\x, igPt\y)
Debug Hex(igRGB)
ReleaseDC_(GetDesktopWindow_(), ghDC)
- Fri Aug 05, 2022 6:03 am
- Forum: Coding Questions
- Topic: Screen Saver Issue
- Replies: 8
- Views: 577
- Fri Aug 05, 2022 4:50 am
- Forum: Coding Questions
- Topic: Screen Saver Issue
- Replies: 8
- Views: 577
Re: Screen Saver Issue
Global DPI.d = DesktopResolutionX();
Without Global: Division by zero in Procedure Preview()
Without .d: Returns only int (1.25 = 1, 1.5 = 2, ...)
Without Global: Division by zero in Procedure Preview()
Without .d: Returns only int (1.25 = 1, 1.5 = 2, ...)
- Fri Aug 05, 2022 2:54 am
- Forum: Coding Questions
- Topic: Screen Saver Issue
- Replies: 8
- Views: 577
Re: Screen Saver Issue
Maybe it's the now default OpenGL subsystem?
- Mon Aug 01, 2022 5:46 am
- Forum: Tricks 'n' Tips
- Topic: [Windows] UI Automation Interface example
- Replies: 8
- Views: 1576
Re: [Windows] UI Automation Interface example
Ok, thanks for clearing thing up for me! I think I can handle the rest myself, if I ever feel the need to work with UI automation... Thx for sharing
- Mon Aug 01, 2022 5:33 am
- Forum: Off Topic
- Topic: Different compilers
- Replies: 27
- Views: 2618
Re: Different compilers
So it appears gcc + opt is an excellent choice. In case of the Plasma demo, yes! Gcc and MSVC is a good choice. MSVC wins with 3 frames more and a lesser executable size (better linking). Here is a comparison between Graphics API's... Gcc with sinf(), without volatile + manual opt (bm3_imp_opt.c) :...
- Mon Aug 01, 2022 3:58 am
- Forum: Tricks 'n' Tips
- Topic: [Windows] UI Automation Interface example
- Replies: 8
- Views: 1576
Re: [Windows] UI Automation Interface example
Thanks a lot, breeze4me. Now it's (kinda) working :lol: Example1: copy started... running your code... . OK 1 . OK 2 . 150 MB/second (displayed once, doesn't update. It's suppose to, right? Repeat Until *Automation = 0 : Break) copy dialog is closing... . Exit Example2: copy started... running your ...
- Mon Aug 01, 2022 3:03 am
- Forum: Game Programming
- Topic: Fishing Party
- Replies: 4
- Views: 1233
Re: Fishing Party
Nice one! A reaction game for young and old
The background could use some animations... Like flowing water and moving clouds (https://www.youtube.com/watch?v=0OsXQDgOTn8). Maybe something to tinker with ^^
The background could use some animations... Like flowing water and moving clouds (https://www.youtube.com/watch?v=0OsXQDgOTn8). Maybe something to tinker with ^^