Windows Services & Other Stuff

Developed or developing a new product in PureBasic? Tell the world about it.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Hi BarryG,

While my preference was Windows_10.pb your choice of Windows_All.pb was the obvious one for all the reasons you posted.

Additional Notes:
Expanding the ribbon menu can also be handled by the IAccessible Interface. In addition, I'm seeing about a half second delay, which is still too long, but the example was more of a demonstration, something to be referenced when this type of solution better fits the requirements.

Not for this example, but to speed up the code and make it for any language is a fairly simple process, something I've done in other projects.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Windows Services & Other Stuff

Post by BarryG »

All good, JHPJHP. I'll code my way around the hotkey issue that I have. Thanks again - I appreciate your contributions to the language. I don't want to be accused of spamming, but donating to JHPJHP was definitely worth it to get his code examples and help.
User avatar
Caronte3D
Addict
Addict
Posts: 1025
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Windows Services & Other Stuff

Post by Caronte3D »

+1
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Hi BarryG, Caronte3D,

Thank you for your post and kind words.

-------------------------

Updated:
- added a new folder and examples to \Other_Stuff\OldSkoolEffects\
-- SpecBAS\
--- Alpha_Graphic.pb,
--- Alpha_Sparkles.pb,
--- Alpha_Wind.pb,
--- Bubble_Universe.pb,
--- Deep_Field.pb,
--- Digital_Rain.pb,
--- Dither_Cloud.pb,
--- Elasticles.pb,
--- Evolution.pb
--- Flux.pb,
--- Gears.pb
--- Lissajous_Curves.pb,
--- Maya_Motor.pb,
--- Maze_Fill.pb,
--- Perlin_Land.pb
--- Rotating_Tesseract.pb,
--- Sine_Wave.pb,
--- Snowflakes.pb
--- Starfield.pb,
--- Voronoi.pb,
--- Wool_Ball.pb,
--- Yin_Yang.pb

An earlier version of the Bubble Universe example (posted code) can be found here.

NB*: Translated examples from https://github.com/ZXDunny/SpecBAS-Demos.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- \Other_Stuff\OldSkoolEffects\SpecBAS\...
-- restructured code
-- improved numerous examples
-- added a second Perlin Noise Procedure

The total number of examples has reached 22.

Perlin Noise Procedures
A couple examples required this algorithm, so I borrowed this one from ricardo_sdl, but the results didn't match the demo, so I decided to rewrite it from scratch using the original source code. Again, the results were not what I was expecting, but I kept the Procedure anyway. I found another example on Rosetta Code, but it would crash one of my examples when certain parameters were set. This led me back to the original SpecBAS source, and of course it contained the version I was looking for which closely match the version from Rosetta Code, but with some important differences.

Image
Last edited by JHPJHP on Mon Jan 23, 2023 7:59 am, edited 4 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- \Other_Stuff\OldSkoolEffects\SpecBAS\Digital_Rain.pb

Just noticed that the timing was off in the "Matrix" example; single parameter was set incorrectly.

Image
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Windows Services & Other Stuff

Post by BarryG »

Hi JHPJHP, I totally overlooked your post about the new "SpecBAS" folder. I love it! Such cool examples in there.
mag
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Mar 29, 2004 1:46 pm

Re: Windows Services & Other Stuff

Post by mag »

@JHPJHP I having a problem to do donation. Paypal not allow it. I pm you a screenshot
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Hi BarryG,

That's great, I'm glad you liked them; it was your link that got me started.

While I did spend the better part of a week on the conversions, the credit goes to Paul Dunn ~developer of SpecBas.

--------------------

Hi mag,

I saw your PM and replied with a solution that should be acceptable.

--------------------

Updated:
- \Other_Stuff\OldSkoolEffects\SpecBAS\
-- added Attraction.pb
-- added Bubble_Universe_2_3.pb
-- added Elastic_Grid.pb
-- added Glitter.pb
-- added Hyperspace.pb
-- added Morass.pb
-- added Rain_Drops.pb
-- added Sin_Stack.pb
-- added Sines.pb
-- added Tiffany_Spiral.pb
-- various enhancements to numerous examples

I really like the example Hyperspace.pb. While it's a fairly basic effect, the way the effect is processed is interesting; the lines are static, but the color palette is shifted.

Animation created using Video Snipping Tool.
Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- added a bunch more examples; see previous post
- various minor updates

The total number of examples has reached 32.

My favorite this time is Attraction.pb, but the effect is better viewed live, so no screenshot or animated GIF.

Instead, here is a screenshot from one of the other new examples.
Image
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Windows Services & Other Stuff

Post by BarryG »

JHPJHP wrote: Mon Jan 23, 2023 10:32 pmI really like the example Hyperspace.pb. While it's a fairly basic effect, the way the effect is processed is interesting; the lines are static, but the color palette is shifted.
Yes, that is a neat way of doing it. Will download now. Thanks for the update!
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Hi BarryG,

You are most welcome.

------------------------------------------

Updated:
- added \Other_Stuff\ProcessStuff\RunProcess\SICP-EXE.pb

Based on a question asked here and converted from Starting an Interactive Client Process.

The example requires a username and password. In addition, the account running the script requires the SE_ASSIGNPRIMARYTOKEN_NAME and SE_INCREASE_QUOTA_NAME privileges; compile the example and execute it from the NT Authority\System account.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Windows Services & Other Stuff

Post by Kuron »

Just sent my donation. Happy to support your work!
Best wishes to the PB community. Thank you for the memories. ♥️
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Hi Kuron,

Your donation is very much appreciated as are your supportive comments. I hope you find some of the code useful or at least interesting.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- added \Other_Stuff\ResizeWindowEx\ResizeWindowEx.pb

While working on the Chromium WebGadget\CrWG Builder, I wanted a “flicker-free” method for animating a window when it was resized and/or moved.

ResizeWindowEx.pb: Works the same as its PureBasic counterpart, but with animation, more flexibility and additional constants.

Available Constants
- #PB_Ignore (X, Y, Width, Height)
- #PB_InPlace, #PB_Center (X / Y)
- #PB_Left, #PB_Right (X)
- #PB_Top, #PB_Bottom (Y)
Locked