Search found 509 matches

by Wolfram
Fri Aug 27, 2021 9:19 am
Forum: Coding Questions
Topic: Custom MessageRequester
Replies: 3
Views: 593

Custom MessageRequester

How can I make a MessageRequester() with a Button "A" and Button "B" instead of "Yes" and "No"?
by Wolfram
Thu Aug 26, 2021 2:56 pm
Forum: Coding Questions
Topic: Explorer ContextMenu Extension
Replies: 1
Views: 343

Explorer ContextMenu Extension

Hello,

I'm looking for a starting point for a Explorer ContextMenu Extension to be able to open a file.
How can I program such a Extension?
by Wolfram
Sat Aug 07, 2021 9:53 am
Forum: Coding Questions
Topic: How to merge two SQLite DB
Replies: 2
Views: 718

How to merge two SQLite DB

Hello everybody.

I have two identical SQLite databases with different data. Some of data Records are in both databases and some are in one of them only.
What is the easiest way to merge them together in one database without having double?
by Wolfram
Sat Jun 05, 2021 8:05 pm
Forum: Mac OSX
Topic: Struggling with PB HTTP library
Replies: 11
Views: 4978

Re: Struggling with PB HTTP library

it is a problem of port 81. https://www.google.com:81 in safari will also not open.
You should try If requests() <> 0 instead of If requests() > 0.
by Wolfram
Sun Mar 14, 2021 11:10 am
Forum: Bugs - Mac OSX
Topic: Runprograme on big sur
Replies: 9
Views: 4784

Re: Runprograme on big sur

There are two way to use it. RunProgram("open", "/Applications/TextEdit.app","") or RunProgram("/Applications/TextEdit.app/Contents/MacOS/TextEdit","","") GetUserDirectory(#PB_Directory_Programs) returns /Users/yourName/Applications/ and th...
by Wolfram
Sun Jan 10, 2021 5:26 pm
Forum: Coding Questions
Topic: How can I write a function that is calculated by the GPU?
Replies: 2
Views: 678

How can I write a function that is calculated by the GPU?

How can I write a function that is calculated by the GPU?

...I'm on OSX
by Wolfram
Fri Oct 16, 2020 6:38 pm
Forum: Mac OSX
Topic: How to do opt/alt menu selection?
Replies: 6
Views: 1820

Re: How to do opt/alt menu selection?

I hope these let you more understand how to filter the events. In these example you have a normal menu shortcut CMD+S for "save" and CMD+ALT+S for "save as..." #NSAlphaShiftKeyMask = 1 << 16 #NSShiftKeyMask = 1 << 17 #NSControlKeyMask = 1 << 18 #NSAlternateKeyMask = 1 << 19 #NSCo...
by Wolfram
Fri Oct 16, 2020 11:30 am
Forum: Mac OSX
Topic: How to do opt/alt menu selection?
Replies: 6
Views: 1820

Re: How to do opt/alt menu selection?

Something like this...? #NSAlphaShiftKeyMask = 1 << 16 #NSShiftKeyMask = 1 << 17 #NSControlKeyMask = 1 << 18 #NSAlternateKeyMask = 1 << 19 #NSCommandKeyMask = 1 << 20 Global modifier ProcedureC eventTapFunction(proxy, type, event, refcon) Protected flags = CGEventGetFlags_(event) If flags & #NSA...
by Wolfram
Thu Oct 15, 2020 11:00 am
Forum: Mac OSX
Topic: How to do opt/alt menu selection?
Replies: 6
Views: 1820

Re: How to do opt/alt menu selection?

If OpenWindow(0, 100, 150, 195, 260, "PureBasic - Menu") If CreateMenu(0, WindowID(0)) MenuTitle("File") ; How about an opt+load? MenuItem = MenuItem( 1, "Load" + #TAB$ + "Alt+l") MenuItem( 2, "Save") MenuItem( 3, "Save As...") EndIf Repea...
by Wolfram
Sat Sep 26, 2020 9:22 pm
Forum: Mac OSX
Topic: Debugger permissions?
Replies: 17
Views: 6706

Re: Debugger permissions?

Oh, i have to mention then that threads in PB don't work well on macOS. I work always with threads and have no problems. Be sure you have on the thread save option in the compiler option. Check your code for memory leaks and run it with purifier. Use alway PosteEvent() to change GUI stuff and Mutex...
by Wolfram
Thu Sep 10, 2020 8:45 pm
Forum: Mac OSX
Topic: How can I get disk Infos?
Replies: 7
Views: 1540

Re: How can I get disk Infos?

Thank you both :D
by Wolfram
Thu Sep 10, 2020 2:58 pm
Forum: Mac OSX
Topic: How can I get disk Infos?
Replies: 7
Views: 1540

Re: How can I get disk Infos?

This works, but I wasn't able to get other objects for key.

How can I get the size of the device or partitions?
by Wolfram
Wed Sep 09, 2020 5:35 pm
Forum: Mac OSX
Topic: How can I get disk Infos?
Replies: 7
Views: 1540

Re: How can I get disk Infos?

[quote="wilbert"]Did you see this post from Shardik ? No, I didn't see it, but I tried similar code yesterday and could find a way to list disks that are not in a read able format. CocoaMessage(0, FileManager, "mountedVolumeURLsIncludingResourceValuesForKeys:", KeyArray, "op...
by Wolfram
Wed Sep 09, 2020 3:36 pm
Forum: Mac OSX
Topic: How can I get disk Infos?
Replies: 7
Views: 1540

How can I get disk Infos?

At the moment I use diskutil info to get the media name and size of all disks.
Also disk which are not formatted or in a unknown format.

Is there a way to do it with the FileManager or something similar?
by Wolfram
Wed Aug 26, 2020 10:08 am
Forum: Coding Questions
Topic: FTP?
Replies: 13
Views: 2276

Re: FTP?

Same her, macOS 10.13.6.

Code: Select all

11911 7
11911 4
11911 11
EDIT: But if I use my FTP Client I see 11 files with the name 1 to 11. So something must be wrong on the PB code.