Search found 1666 matches

by Rescator
Thu Aug 29, 2013 10:55 am
Forum: Tricks 'n' Tips
Topic: [Windows] Find Program handle/info on window title search.
Replies: 4
Views: 3603

[Windows] Find Program handle/info on window title search.

The following let you search for a program window based on window title or class or exe name or all three or a combination of the three. The window handle or class name or exe name or processid can be returned, or all the info (for more advanced users). The comments are a tad sparse, but hopefully t...
by Rescator
Sun Aug 18, 2013 8:47 pm
Forum: Announcement
Topic: Reworking Tips and Tricks forum section
Replies: 62
Views: 18636

Re: Reworking Tips and Tricks forum section

My suggestion is this: Turn Tip's and Tricks into just a forum, section/category. Under that make sure there is at least 3 sub forums called something along the lines of: * Tips & Tricks * *** PureBasic 5.20 LTS *** (Tested/works on 5.20 LTS) *** Current *** (The latest Development versions) ***...
by Rescator
Mon Aug 12, 2013 10:45 pm
Forum: General Discussion
Topic: gzip.dll
Replies: 9
Views: 3443

Re: gzip.dll

If you are using the zlib with the max compression, then you also should add a gzip header to the resulting file. gzip and zlib compressed files are the same (both use deflate and are fully compatible) only difference is that gzip has a 10 byte header. Zip archives also uses deflate compression. So ...
by Rescator
Mon Aug 12, 2013 9:37 pm
Forum: Announcement
Topic: BASS audio library v2.4 PureBasic 4.20 includes.
Replies: 35
Views: 46618

BASS audio library v2.4 PureBasic 5.20 include.

The dev files at un4seen.com for PureBasic is really outdated. The following is just a working include for bass. (bass.pbi) And works with the latest v2.4.10 of BASS (it is used with http://player.gridstream.org/ in case anyone are wondering). Unless somebody else really feel like updating the packa...
by Rescator
Sat Aug 03, 2013 1:16 am
Forum: Off Topic
Topic: Elite: Dangerous (2014)
Replies: 3
Views: 1059

Re: Elite: Dangerous (2014)

That picture is actually a artist rendition. Though that really is the visual quality they are aiming for (and last I saw actual footage/caps it lo0oked pretty close). If only it manages to capture that old Frontier Elite feeling (I played that a lot way back on the Amiga) then this will be a huge h...
by Rescator
Sat Aug 03, 2013 12:59 am
Forum: Feature Requests and Wishlists
Topic: GetUserLanguage()
Replies: 5
Views: 1806

Re: GetUserLanguage()

Edited the first post. Made a more complete example based on the function ideas at http://www.purebasic.fr/english/viewtopic.php?p=419763#p419763 Renamed/changed the function names. If somebody could make a Linux variant, and also make sure the mac one matches this then we'd have a nice cross platfo...
by Rescator
Fri Aug 02, 2013 12:55 pm
Forum: Feature Requests and Wishlists
Topic: Syntax coloring for gadget definitions
Replies: 7
Views: 1011

Re: Syntax coloring for gadget definitions

Nice idea on the library color hinting there eesau, I'd like to see that myself.
by Rescator
Fri Aug 02, 2013 12:52 pm
Forum: Feature Requests and Wishlists
Topic: GetUserLanguage()
Replies: 5
Views: 1806

Re: GetUserLanguage()

For Mac OS X you have to translate language codes like "en", "th", and "de" yourself to the full name by using a string table/dictionary. Table of language codes: http://www.loc.gov/standards/iso639-2/php/English_list.php Get short language code on Mac OS X: GetDefault...
by Rescator
Fri Aug 02, 2013 10:11 am
Forum: Feature Requests and Wishlists
Topic: GetUserLanguage()
Replies: 5
Views: 1806

GetUserLanguage()

A GetUserLanguage() "should" be possible to implement on all platforms. (and not just Windows) What is the expected result? If the language locale (in this example on Windows) is English then it will return: English If it was Norwegian then it will return: Norwegian ;The following example ...
by Rescator
Fri Jun 28, 2013 8:40 pm
Forum: Announcement
Topic: PureBasic 5.20 beta 20 is out
Replies: 360
Views: 114537

Re: PureBasic 5.20 beta 4 is ready to test !

Awesome! A large project I'm working on here compiles fine with debugger both on and off with Beta4.
Only had to do two minor edits (two constant name changes).

Go Fred! :)
by Rescator
Wed Mar 06, 2013 9:24 am
Forum: Feature Requests and Wishlists
Topic: Double-quotes in strings
Replies: 48
Views: 6487

Re: Double-quotes in strings

I was gonna post here but I split this off instead http://www.purebasic.fr/english/viewtop ... =3&t=53840
by Rescator
Wed Mar 06, 2013 9:23 am
Forum: Feature Requests and Wishlists
Topic: StringFormat()
Replies: 1
Views: 577

StringFormat()

I think PureBasic would be better served to support: Debug "He said \"hello\" to her" ;Output is: ;He said "hello" to her And Debug "He said\r\n \"hello\" to her" ;Outputs is: ;He said ;"hello" to her Debug "He said\r\n \"hello\&q...
by Rescator
Fri Feb 22, 2013 8:57 pm
Forum: Tricks 'n' Tips
Topic: GetFolderSize()
Replies: 7
Views: 2116

Re: GetFolderSize()

Updated the first post. Thanks michel51. And if you are wondering why I did the delim a little differently, it is to make sure the procedure is fully self contained. And to answer the space vs space "issue". Windows/The OS do restrict access to certain files. Some folders on C are for the ...
by Rescator
Thu Feb 21, 2013 10:49 pm
Forum: Tricks 'n' Tips
Topic: GetFolderSize()
Replies: 7
Views: 2116

GetFolderSize()

This is a procedure to get the size of a folder and all sub-folders, it is non-recursive (in other words it does not need to call itself to handle sub folders). ;Public Domain Procedure.q GetFolderSize(folder$) Protected size.q,NewList folders.s(),directory.i,name$,delim$ If FileSize(folder$)=-2 Com...