Search found 147 matches
- Wed Mar 13, 2024 12:51 am
- Forum: Bugs - IDE
- Topic: No Autocomplete Popup
- Replies: 1
- Views: 131
No Autocomplete Popup
On PB 6.10 Beta 7 When i write "MyModule::" normally the autocomplete list would pop up right away but it only does now when i type the first letter. The same happens with structured objects and others. DeclareModule MyModule Declare.i Test() EndDeclareModule Module MyModule Procedure.i Te...
- Mon Mar 04, 2024 5:17 am
- Forum: Coding Questions
- Topic: how to send a message to the windows notification center?
- Replies: 20
- Views: 4418
Re: how to send a message to the windows notification center?
Is there no winapi command to trigger a windows notification? I don't want to enable scripting or use powershell. There has to be a better way of doing this?
- Wed Nov 22, 2023 8:05 pm
- Forum: Tricks 'n' Tips
- Topic: Object Theme Library (for Dark or Light Theme)
- Replies: 44
- Views: 3915
Re: Object Theme Library (for Dark or Light Theme)
Very nice! I would like to ask if you could put as much of your code as possible into a module for better code separation?
- Tue Oct 24, 2023 5:44 pm
- Forum: Coding Questions
- Topic: how do you store file bigger 100MB with IncludeBinary ?
- Replies: 8
- Views: 765
Re: how do you store file bigger 100MB with IncludeBinary ?
Same problem here seems like it is a limitation with the linker.
- Sun Oct 15, 2023 10:42 pm
- Forum: Bugs - IDE
- Topic: Parameters of procedures not showing in statusbar
- Replies: 1
- Views: 400
Parameters of procedures not showing in statusbar
For some reason it does not show parameters in the statusbar for certain procedures. For example here for Test() when clicking inside the () it shows the parameters and when i click inside MyResize() it shows nothing in the statusbar and so on. Declare.i MyResize(Image.i, Width.i) Declare.i Test(Ima...
- Fri Oct 13, 2023 3:59 pm
- Forum: Coding Questions
- Topic: how to control mpc-hc via api?
- Replies: 1
- Views: 170
how to control mpc-hc via api?
Hi, i read that mpc-hc supports api commands via #WM_COPYDATA and i came across this post from 2008 with an example for autoit script. I just don't know how to translate this and make it work for PB. The post is also pretty old and i am not sure where to find the latest documentation on it. If anyon...
- Wed Aug 02, 2023 6:45 pm
- Forum: Coding Questions
- Topic: get uptime since standby?
- Replies: 6
- Views: 736
Re: get uptime since standby?
Sorry i forgot to mention: i need it for windows and without the program running the whole time. I know there's easy ways to get the time since the boot with QueryPerformanceCounter_() , is there nothing similar for time since wakup?
- Sun Jul 30, 2023 6:35 pm
- Forum: Coding Questions
- Topic: get uptime since standby?
- Replies: 6
- Views: 736
get uptime since standby?
Hi, i need a way to get the computer uptime since the last wakeup from standby/sleep.
- Wed Jul 19, 2023 7:12 pm
- Forum: Coding Questions
- Topic: PB 6.03 beta 3 #SCI_SETLEXER constant missing
- Replies: 1
- Views: 222
PB 6.03 beta 3 #SCI_SETLEXER constant missing
#SCI_SETLEXER is missing in the beta build.
I added it back manually and all seems to be working as expected.
I added it back manually and all seems to be working as expected.
Code: Select all
#SCI_SETLEXER = 4001
- Wed Jul 19, 2023 3:09 pm
- Forum: Coding Questions
- Topic: Replace Text in IDE as IDE Tool
- Replies: 12
- Views: 624
Re: Replace Text in IDE as IDE Tool
ScintillaSendMessage() works only when the gadget is your own not when you want to access an external gadget in another process like the one from the IDE. I gave you the names of the constants. The rest you can do yourself. But you better look at the functions in my source code to understand how to...
- Wed Jul 19, 2023 2:07 pm
- Forum: Coding Questions
- Topic: Replace Text in IDE as IDE Tool
- Replies: 12
- Views: 624
Re: Replace Text in IDE as IDE Tool
With LazyCoder I use... SendMessage_(IDE_HwndScintilla, #SCI_SETSELECTIONSTART, SCI_StartPos, 0) SendMessage_(IDE_HwndScintilla, #SCI_SETSELECTIONEND, SCI_EndPos, 0) SendMessage_(IDE_HwndScintilla, #EM_REPLACESEL, 0, utf8Buffer) This works too thanks! But it is still using the deprecated command #E...
- Wed Jul 19, 2023 2:31 am
- Forum: Coding Questions
- Topic: Replace Text in IDE as IDE Tool
- Replies: 12
- Views: 624
Re: Replace Text in IDE as IDE Tool
Try turning utf8Buffer into a pointer so it's not signed. (Prefix with an asterisk.) If that's not it, you might want to simplify by using the simplified utf8 conversion. https://www.purebasic.com/documentation/string/utf8.html i tried both of your suggestions but it makes the IDE still crash. :(
- Tue Jul 18, 2023 6:42 pm
- Forum: Coding Questions
- Topic: Replace Text in IDE as IDE Tool
- Replies: 12
- Views: 624
Replace Text in IDE as IDE Tool
Hello i am looking for a better way to replace text at a specific position in the IDE. #SCI_REPLACETARGET should be the proper way to do it but often it inserts garbage or the IDE crashes. As a workaround i delete the text first with #SCI_DELETERANGE and then use #SCI_GOTOPOS to set the caret at the...
- Sun May 14, 2023 5:31 pm
- Forum: Coding Questions
- Topic: Read all characters of a keyboard
- Replies: 8
- Views: 660
Re: Read all characters of a keyboard
Just be aware that using a keyboard hook will get your app flagged as malware by anti-virus apps. Happens to me all the time. Here's what VirusTotal says about my main app, and why my app is "dangerous": https://i.imgur.com/Hm7pUXG.png Yes that's a general problem these days with most av ...
- Sat May 13, 2023 10:19 pm
- Forum: Coding Questions
- Topic: Read all characters of a keyboard
- Replies: 8
- Views: 660
Re: Read all characters of a keyboard
It is working great, thanks!