Search found 1834 matches

by Dude
Wed May 20, 2020 10:26 am
Forum: Coding Questions
Topic: [Windows] - synchronize windows position
Replies: 10
Views: 1584

Re: [Windows] - synchronize windows position

I had a similar problem:

viewtopic.php?f=13&t=66470

Maybe the discussion there can help? It's caused by PB_Window_SizeGadget. :(
by Dude
Wed Apr 08, 2020 11:18 am
Forum: Coding Questions
Topic: Screenshot of window isn't themed
Replies: 32
Views: 5946

Re: Screenshot of window isn't themed

Back for another question, nco2k. :) On the first page of this thread, you showed how to do a thumbnail of a window. Are you able to explain how to show just a portion of the source window as the thumbnail in the target window? Everything I've tried always shows the entire source window as a thumbna...
by Dude
Sun Dec 22, 2019 1:29 am
Forum: General Discussion
Topic: AV false-positives in 2019: PB vs VB
Replies: 26
Views: 6448

Re: AV false-positives in 2019: PB vs VB

One line of code, a comment ; modern theme support off; compiled as an exe: ; Nothing VirusTotal result: 18 false positives :( https://www.virustotal.com/gui/file/aa6be301d1dc7cee5d44c8260d91798107d4a0330504adfacb359fdcfe715749/detection Come on, this is crap. What can we do? I can't release my app ...
by Dude
Wed Dec 04, 2019 9:00 am
Forum: Bugs - Documentation
Topic: [Done]ProgramID() is wrong for UWP apps
Replies: 5
Views: 3865

Re: ProgramID() is wrong for UWP apps

I think the behavior of PureBasic should change, because this is an important issue for apps that interact with windows.

I'll let this screenshot of Task Manager and TaskList (DOS command) explain better: https://i.imgur.com/cdo0Dix.png :(
by Dude
Mon Dec 02, 2019 1:38 pm
Forum: Bugs - Documentation
Topic: [Done]ProgramID() is wrong for UWP apps
Replies: 5
Views: 3865

[Done]ProgramID() is wrong for UWP apps

Just found out today that the ProgramID() returned for RunProgram() is not the correct process ID ("PID") for UWP apps, like the Win 10 Calculator. It works correctly for standard Win32 apps, though. run=RunProgram("calc.exe","","",#PB_Program_Open) Debug Prog...
by Dude
Fri Nov 29, 2019 12:45 am
Forum: Feature Requests and Wishlists
Topic: Keyboard shortcuts for mouse wheel
Replies: 34
Views: 7889

Re: Keyboard shortcuts for mouse wheel

BarryG wrote:Dude, try this. Just test -1 for up, and "else" for down
Thank you, it works on 64bit for me now. :)
by Dude
Fri Nov 29, 2019 12:43 am
Forum: Coding Questions
Topic: FreeImage DLL
Replies: 3
Views: 952

Re: FreeImage DLL

If you're just wanting to load images without the PureBasic libs, see here:

viewtopic.php?f=12&t=74117

No need for the FreeImage DLL (which is almost 1 MB to add to your app). ;)
by Dude
Fri Nov 29, 2019 12:42 am
Forum: Tricks 'n' Tips
Topic: LoadImageEx
Replies: 2
Views: 1282

LoadImageEx

Load BMP, GIF, JPG, PNG (and more) images without the PureBasic image plugins (UseGIFImageDecoder, etc). Not my code, but no topic exists for it, so I made one. :) Procedure LoadImageEx(imgnum,file$,depth=24) Interface nIDXSurfaceFactory QueryInterface(a,b) : AddRef() : Release() : CreateSurface(a,b...
by Dude
Sun Nov 17, 2019 10:41 am
Forum: Feature Requests and Wishlists
Topic: Keyboard shortcuts for mouse wheel
Replies: 34
Views: 7889

Re: Keyboard shortcuts for mouse wheel

The code I posted above is no longer useful for 64bit PureBasic because it doesn't return negative or positive values for the wheel direction. Is there some sort of ">>" math trick to make it work again?
by Dude
Sun Nov 17, 2019 2:59 am
Forum: Off Topic
Topic: Oh crap... PB ransomware
Replies: 172
Views: 42209

Re: Oh crap... PB ransomware

Derren wrote:How can you even know if a program was written in PB?
Different tools exist that show it. Here's one: https://mitec.cz/exe.html
by Dude
Sun Oct 13, 2019 4:39 am
Forum: Tricks 'n' Tips
Topic: Save & Restore Desktop Icons Position[Windows]
Replies: 15
Views: 4316

Re: Save & Restore Desktop Icons Position[Windows]

Rashad, I just discovered today that your code in the first post is failing for me again. After some testing, I realized "ReadData(fn,@count,SizeOf(Integer))" in RestoreDesktopIconsPositions() was returning 0 sometimes. So if I ignored that and put "count=4" after that line (4 is...
by Dude
Sun Sep 15, 2019 1:50 am
Forum: General Discussion
Topic: [Solved] Text management in a database?
Replies: 1
Views: 1218

[Solved] Text management in a database?

Sorry, please ignore this, I just realized the approach won't even work for my situation, as multiple threads would be writing to the database at once, which introduces a major risk of corruption. Better to keep it separate. Sorry for the post.
by Dude
Sun Sep 01, 2019 8:19 am
Forum: Windows
Topic: Default shortcut name pattern
Replies: 7
Views: 2277

Re: Default shortcut name pattern

Never mind, I made a mistake. Post edited. Thanks for your guidance. :)
by Dude
Sun Sep 01, 2019 8:00 am
Forum: Windows
Topic: Default shortcut name pattern
Replies: 7
Views: 2277

Re: Default shortcut name pattern

Hi Little John,

Ah, so because I was using an API call, I needed the LibraryID(). Makes sense. :)

[Edited to remove my mistake with a further question] :oops:
by Dude
Sun Sep 01, 2019 7:03 am
Forum: Windows
Topic: Default shortcut name pattern
Replies: 7
Views: 2277

Re: Default shortcut name pattern

Hi Rashad, I tried your code but it doesn't show the default shortcut name; it just seems to create a shortcut without the default name? Spikey: your code is what I was looking for (especially the 4154 ID code). But I noticed that you need to hard-code the library number to make it work? If I use Op...