Search found 1811 matches

by Dude
Wed Apr 03, 2019 10:05 pm
Forum: Coding Questions
Topic: Default font in Pure Basic
Replies: 9
Views: 1553

Re: Default font in Pure Basic

bfernhout wrote:How do I find the default font
For Windows:

Code: Select all

font=GetStockObject_(#DEFAULT_GUI_FONT)
Then just use the value of "font" with any font commands.
by Dude
Tue Apr 02, 2019 11:19 am
Forum: Tricks 'n' Tips
Topic: Time Formatting
Replies: 3
Views: 1560

Re: Time Formatting

My code checks for negatives. Comparison:

Code: Select all

; Your code:
Debug FormatTimestr(-121) ; ":0-1"

Code: Select all

; My code:
Debug FormatTimestr(-121) ; "?:??"
Or you could just not call the procedure if the seconds are negative (do a pre-test).
by Dude
Tue Apr 02, 2019 2:02 am
Forum: Tricks 'n' Tips
Topic: Time Formatting
Replies: 3
Views: 1560

Re: Time Formatting

Suggestions welcome FormatTimestr(121) ; 2:01 My version: Procedure.s FormatTimestr(secs) If secs<0 t$="?:??" Else t$=FormatDate("%hh:%ii:%ss",secs) t$=LTrim(Mid(t$,FindString(t$,":")+1),"0") If Left(t$,1)=":" : t$="0"+t$ : EndIf EndIf Pro...
by Dude
Mon Apr 01, 2019 1:19 pm
Forum: Announcement
Topic: Happy Birthday, Fred!
Replies: 18
Views: 7252

Re: Happy Birthday, Fred!

Same. Hope all is going well for you. :)
by Dude
Sat Mar 30, 2019 10:59 am
Forum: Coding Questions
Topic: PureBasic Select vs PHP Switch
Replies: 11
Views: 2258

Re: PureBasic Select vs PHP Switch

And the description: I wrote "read" and it wrote "perused", and I wrote "use" and it changed it to "utilize". :shock: Pretty smart actually.
by Dude
Sat Mar 30, 2019 9:33 am
Forum: Tricks 'n' Tips
Topic: ResizeIcon() procedure
Replies: 1
Views: 2176

Re: ResizeIcon() procedure

Thanks for this, Inf0Byt3. I needed this tonight. :) Wish PureBasic could do it natively with ResizeImage(), though.
by Dude
Sat Mar 30, 2019 8:33 am
Forum: Coding Questions
Topic: PureBasic Select vs PHP Switch
Replies: 11
Views: 2258

Re: PureBasic Select vs PHP Switch

Tenaja wrote:No, PB does not require it.
It's just a bot posting what I posted at the start of this thread.
by Dude
Fri Mar 29, 2019 9:10 am
Forum: Off Topic
Topic: subject
Replies: 10
Views: 2460

Re: subject

Okay, you didn't. But my reply was a joke.
by Dude
Fri Mar 29, 2019 9:04 am
Forum: Off Topic
Topic: subject
Replies: 10
Views: 2460

Re: subject

[Deleted joke that could be taken seriously]
by Dude
Tue Mar 26, 2019 11:48 am
Forum: Tricks 'n' Tips
Topic: How To: Send mail through Gmail's SMTP
Replies: 10
Views: 4626

Re: How To: Send mail through Gmail's SMTP

thanos wrote:I tried 587 and worked correctly.
I saw that Google does not suggest this port, but it is working.
Thanks a lot!
Glad you got it working! :D Don't know why we both need different port numbers, though. First post has been edited with this information.
by Dude
Mon Mar 25, 2019 10:22 pm
Forum: Tricks 'n' Tips
Topic: How To: Send mail through Gmail's SMTP
Replies: 10
Views: 4626

Re: How To: Send mail through Gmail's SMTP

Try port 587 then. Although, that number doesn't work for me, and it's not what Google says to use. Other than that, I don't know why it's not working for you but does for me. Sorry.

Also maybe try this (but I didn't have to do it):
https://support.google.com/accounts/answer/6010255
by Dude
Mon Mar 25, 2019 1:28 pm
Forum: Coding Questions
Topic: How to move or copy a file between directories that have spa
Replies: 18
Views: 2974

Re: How to move or copy a file between directories that have

elfo116 wrote:Thanks to all !! :P
So... don't leave us hanging. What was the reason that your copy wasn't working? :)
by Dude
Mon Mar 25, 2019 9:19 am
Forum: Tricks 'n' Tips
Topic: How To: Send mail through Gmail's SMTP
Replies: 10
Views: 4626

Re: How To: Send mail through Gmail's SMTP

Hmm, that's weird. Maybe there's a bug with MailProgress()? Try changing this line:

Code: Select all

Until Progress = #PB_Mail_Finished Or Progress = #PB_Mail_Error
to this:

Code: Select all

Until Progress = #PB_Mail_Finished
Just to see if PureBasic is getting an error when it shouldn't be.
by Dude
Sun Mar 24, 2019 10:02 pm
Forum: Tricks 'n' Tips
Topic: TabBarGadget - Tabs like in a browser
Replies: 186
Views: 88755

Re: TabBarGadget - Tabs like in a browser

wombats wrote:That seems to fix it.
Are the download links in the first post fixed?
by Dude
Sun Mar 24, 2019 12:34 pm
Forum: Off Topic
Topic: Memu Play: Android emulator for PC
Replies: 2
Views: 2192

Memu Play: Android emulator for PC

I've been playing with this for the past week, and it's fantastic: https://www.memuplay.com/ Gameplay is silky-smooth! Basically it's an Android tablet on your PC. 100% freeware (no ads, etc). Endorsed by MajorGeeks (who test all their submissons), but I've had no issues (malware) with it. That's wh...