We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 518
» Latest member: Johnvin87
» Forum threads: 181
» Forum posts: 2,018

Full Statistics

Online Users
There are currently 17 online users.
» 0 Member(s) | 14 Guest(s)
Google, Applebot, Bing

Latest Threads
Multi Language GUI
Forum: Extensions
Last Post: litdev
11 hours ago
» Replies: 1
» Views: 43
Creation of SB-Neuron. Ou...
Forum: Discussion
Last Post: AbsoluteBeginner
Yesterday, 03:46 PM
» Replies: 102
» Views: 8,715
Few questions
Forum: Standard Small Basic
Last Post: litdev
05-14-2025, 09:36 AM
» Replies: 1
» Views: 25
Show ZPHB733.000 LDContro...
Forum: Extensions
Last Post: sm4llprogrammer2008
05-13-2025, 10:15 PM
» Replies: 5
» Views: 121
Another question.
Forum: Standard Small Basic
Last Post: litdev
05-13-2025, 07:04 AM
» Replies: 1
» Views: 32
Markup Lang for Small Bas...
Forum: Discussion
Last Post: sm4llprogrammer2008
05-12-2025, 06:23 PM
» Replies: 0
» Views: 26
Welcome
Forum: Standard Small Basic
Last Post: z-s
05-12-2025, 01:51 AM
» Replies: 19
» Views: 3,486
Small Basic key tester (w...
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
05-12-2025, 12:25 AM
» Replies: 0
» Views: 34
LDTextEditor Extension - ...
Forum: Extensions
Last Post: litdev
05-11-2025, 07:12 AM
» Replies: 2
» Views: 75
The Small Archives - Prog...
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
05-10-2025, 06:29 PM
» Replies: 0
» Views: 35

 
  Multi Language GUI
Posted by: martmen - Yesterday, 05:51 PM - Forum: Extensions - Replies (1)

Hallo zusammen,

ich habe mit der Erweiterung von LitDev eine GUI erstellt, die in unterschiedlichen Sprachen funktioniert. Der Schlüssel für das Programm zum importieren ist HDPV317.000
Der Benutzer ist "Admin" und das Passwort ist "Welcome#2025".
Beim ersten Start wird eine SQLite Datenbank im selben Verzeichnis angelegt, indem das Programm gespeichert ist.
Es wird ein privater und ein öffentlicher Schlüssel erzeugt, die in der Datenbank gespeichert werden.
Der Benutzer Admin und das Passwort wird in der Datenbank gespeichert. Das Passwort wird verschlüsselt gespeichert, damit man es nicht einfach ausgelesen werden kann.
Versuche es in Deiner Sprache.

Viel Spaß beim Ausprobieren
M[Anhang=166][Anhang=166]Artin

Hinweis:
Es wird die aktuelle Beta Version der LitDev Erweiterung benötigt.



Attached Files Thumbnail(s)
   
Print this item

  Few questions
Posted by: sm4llprogrammer2008 - 05-13-2025, 10:21 PM - Forum: Standard Small Basic - Replies (1)

1. Can we share our own extensions in the "Extensions" thread?
2. Can we share pre-compiled binaries of our SB programs?
3. Can we share OneDrive links to zipped SB projects incase they need more files to depend on?
4. Will there be a "Porting to Small Basic" thread? Because I'm doing an effort to find a way to port JavaScript to Small Basic and vice-versa.
5. Can we have a "Small Basic HTTP Testing" thread? I'm testing HTTP communications between Small Basic and a Python http.server.

Print this item

  Another question.
Posted by: sm4llprogrammer2008 - 05-12-2025, 11:06 PM - Forum: Standard Small Basic - Replies (1)

Can we share sVB programs? I have sVB 3.5.5.7 installed.

Print this item

Lightbulb Markup Lang for Small Basic GraphicsWindow
Posted by: sm4llprogrammer2008 - 05-12-2025, 06:23 PM - Forum: Discussion - No Replies

I've announced IXML (Interactive XML), a markup language to simplify shape editing for SB-Prime and Small Basic.
I'm building the parser with LDxml, and I'm feeling motivated for it.
I'm making some nodes for the language + a documentation too.
It can definitely simplify graphics development with Small Basic!

Print this item

Rainbow Small Basic key tester (w/ no extensions)
Posted by: sm4llprogrammer2008 - 05-12-2025, 12:25 AM - Forum: Standard Small Basic - No Replies

Easy!
This key tester program actually worked! (works in v1.3 and even v1.2)
It also respected the dynamic Y pos thing I tried. So Small Basic even accepts math... I'm thinking of a calculator now.
No dependencies.
ID: HSKG394.000
Link: https://smallbasic.com/program/?HSKG394.000

Code:
GraphicsWindow.Title = "Key Test"
GraphicsWindow.KeyDown = Onkey
y = 0

Sub Onkey
  l = GraphicsWindow.LastKey
  GraphicsWindow.DrawText(0,y,l)
  y = y + 10
EndSub

Print this item

  Show ZPHB733.000 LDControlePassword
Posted by: martmen - 05-11-2025, 05:45 AM - Forum: Extensions - Replies (5)

ZPHB733.000


Wenn sich ein anderer Benutzer anmeldet, ist das Passwort des vorherigen Benutzers weiterhin vorhanden. Dies verhindert einen ordnungsgemäßen Benutzerwechsel. Mir fehlt ein LDControl.ClearPassword.

Print this item

  LDTextEditor Extension - Feature Request & Bug Reporting.
Posted by: flubrix42 - 05-10-2025, 08:22 PM - Forum: Extensions - Replies (2)

Hallo zusammen,
ich nutze aktuell die LDTextEditor Extension und bin wirklich begeistert von den Möglichkeiten. Allerdings sind mir ein paar Dinge aufgefallen, die verbessert werden könnten.
* **Feature Request:** Eine Funktion zum direkten Speichern als UTF-8 wäre super. Im Moment muss ich das immer extern machen, was etwas umständlich ist.
* **Bug Reporting:** Bei sehr großen Textdateien (über 1 MB) kommt es manchmal zu Verzögerungen beim Scrollen. Könnte man das optimieren?
* **Weitere Vorschläge:** Wäre es möglich, eine Syntaxhervorhebung für bestimmte Sprachen (z.B. Small Basic) zu integrieren?
Ich würde mich freuen, wenn diese Punkte in zukünftigen Versionen berücksichtigt werden könnten. Vielen Dank für die tolle Arbeit an der Extension!
Viele Grüße
[Dein Benutzername]

Print this item

  The Small Archives - Program 1
Posted by: sm4llprogrammer2008 - 05-10-2025, 06:29 PM - Forum: Standard Small Basic - No Replies

Name: Smallsweeper
Created on Version: 1.3
Status: Experiment
Theme: Minesweeper
Link: https://smallbasic.com/program/?MBGB956.000

Code:
GraphicsWindow.Hide()
Program.Delay(6000)
GraphicsWindow.Title = "Loading"
GraphicsWindow.CanResize = "False"
GraphicsWindow.BrushColor = "Black"
GraphicsWindow.DrawText(0, 0, "Loading Smallsweeper...")
GraphicsWindow.Top = 0
GraphicsWindow.Left = 0
GraphicsWindow.Show()
Program.Delay(4000)
GraphicsWindow.Hide()
GraphicsWindow.Clear()
GraphicsWindow.Title = "Smallsweeper"
GraphicsWindow.Width = 1536
GraphicsWindow.Height = 864
GraphicsWindow.Top = 0
GraphicsWindow.Left = 0
GraphicsWindow.CanResize = "True"
GraphicsWindow.BrushColor = "White"
width = 10 ' Number of columns
height = 10 ' Number of rows
mines = 20 ' Total mines on the board
For i = 1 To mines
  x = Math.GetRandomNumber(width) - 1
  y = Math.GetRandomNumber(height) - 1
  While board[x][y] = -1 ' Ensure no duplicate mines
    x = Math.GetRandomNumber(width) - 1
    y = Math.GetRandomNumber(height) - 1
  EndWhile
  board[x][y] = -1
EndFor
For x = 0 To width - 1
  For y = 0 To height - 1
    If board[x][y] <> -1 Then
      count = 0
      For dx = -1 To 1
        For dy = -1 To 1
          If board[x + dx][y + dy] = -1 Then
            count = count + 1
          EndIf
        EndFor
      EndFor
      board[x][y] = count
    EndIf
  EndFor
EndFor
cellSize = 20
GraphicsWindow.BackgroundColor = "Gray"

For x = 0 To width - 1
  For y = 0 To height - 1
    GraphicsWindow.DrawRectangle(x * cellSize, y * cellSize, cellSize, cellSize)
  EndFor
EndFor
GraphicsWindow.MouseDown = OnMouseClick

Sub OnMouseClick
  mouseX = GraphicsWindow.MouseX
  mouseY = GraphicsWindow.MouseY
  cellX = Math.Floor(mouseX / cellSize)
  cellY = Math.Floor(mouseY / cellSize)
 
  ' Reveal cell logic
  If board[cellX][cellY] = -1 Then
    GraphicsWindow.ShowMessage("Game Over! You hit a mine.", "Smallsweeper")
   
    Program.End()
  Else
    GraphicsWindow.DrawText(cellX * cellSize + 5, cellY * cellSize + 5, board[cellX][cellY])
  EndIf
EndSub

GraphicsWindow.Show()

Print this item

Information How I discovered Small Basic
Posted by: sm4llprogrammer2008 - 05-06-2025, 02:09 AM - Forum: Discussion - Replies (1)

Bored, scrolling through the MS Store, of course checking everything that Microsoft ever published, I found Small Basic 1.3 (UWP), it didn't have extension compatibility, and I thought it was a great start.
Since then I've been more familiar with JScript, Python and PowerShell, I've downloaded SB 1.2's MSI installer and got the extension compatible version, tested out LitDev extension (since it was the first one I came across, the only one that worked from the extensions lib). I felt happy for my first LD program.
All of this began this year (2025), and I'm very proud of finding some welcoming programming lang for me.

QUICK EDIT

By extensions lib I meant the extensions list on MS Learn. (or Tech Community iirc)

Print this item

Star Announcing RebornDOS.sb
Posted by: sm4llprogrammer2008 - 05-06-2025, 01:58 AM - Forum: Standard Small Basic - Replies (1)

I've been making a project called RebornDOS.sb.
It's a DOS rebirth on Small Basic.
Code's too big (exceeds 5k chars, which the MyBB engine doesn't handle), so can I share the sb file on a compressed/zip folder w/ OneDrive link?

QUICK EDIT

It's a prototype, but you can make your own distros of it. (w/ perms or credit)

Print this item