Search found 1811 matches

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

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: 33
Views: 8062

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: 8089

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
Fri Nov 29, 2019 12:45 am
Forum: Feature Requests and Wishlists
Topic: Keyboard shortcuts for mouse wheel
Replies: 34
Views: 9776

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: 1305

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: 1743

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: 9776

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: 221
Views: 56180

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: 18
Views: 6202

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: 1566

[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: 3301

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: 3301

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: 3301

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...
by Dude
Sat Aug 31, 2019 6:37 am
Forum: Windows
Topic: Default shortcut name pattern
Replies: 7
Views: 3301

Default shortcut name pattern

When you right-click a file in Windows and select "Create shortcut", it defaults to a specific name pattern depending on the OS and language used. Here's an image of "iexplore.exe" with two shortcuts created; one from English Windows, and one from Vietnamese Windows: https://i.im...
by Dude
Tue Jul 16, 2019 10:04 pm
Forum: Feature Requests and Wishlists
Topic: CreateThread: parameter check
Replies: 10
Views: 2844

Re: CreateThread: parameter check

you have untested branches in your code, which is bad Originally it wasn't untested, because my procedure wasn't a thread (it was triggered by a button, as shown in my other example that I linked to). But then I made it a thread for a specific reason but simply forgot that the procedure now needed ...