locked
Data Extension : Old Thread RRS feed

All replies

  • You can also add a link to your extensions on the SmallBasic Wiki downloads page which is the best central resource for these:

    http://wiki.smallbasic.com/smallbasic.com/wiki/Downloads.ashx

    Also, remember many SmallBasic users may be inexperienced, so try not to create extensions that could harm the operating system by misuse or accident or change the registry for example.

    Thursday, April 22, 2010 7:33 PM
  • OperatingSystem.OSVersion() 

    it says i have "Microsoft Windows NT 5.1.2600 Service Pack 3" i have "Microsoft Windows XP Service Pack 3"


    -Phillip Mikesell
    Thursday, April 22, 2010 7:40 PM
  • XP is also known as NT 5.., Vista NT 6.. and surprisingly Windows 7 is NT 7..
    Thursday, April 22, 2010 7:58 PM
  • oh. surprisingly Windows 7 is NT 7
    -Phillip Mikesell
    Thursday, April 22, 2010 8:03 PM
  • Windows 7 and Windows Server 2008 R2= NT 6.1


    Sorry My Bad English
    Wednesday, April 28, 2010 1:00 PM
  • Windows 7 and Windows Server 2008 R2= NT 6.1


    Sorry My Bad English

    Just shows how little has really changed since XP :(

    We've now got too much Gates, and are left having to pay the Bill ;-)

    Friday, April 30, 2010 3:52 PM
  • The MediaBeta object is beta object what is not finished, but please send feedback. More Media functions like play, pause, stop and more properties are coming.
    Sorry My Bad English
    Thursday, June 17, 2010 10:48 AM
  • Printing Support Added and Data Controls Removed because all bugs. MediaBeta is still beta.

    Currently printing supports with png, jpg and bmp and txt files. If type of file is unknown to my printer extension it prints all text from file.

    If you want more supported file types please ask.


    Sorry My Bad English
    Sunday, June 27, 2010 12:59 PM
  • Its great extention. I will write some tests. Program ID PKW106 it do not play the song. Who is the mistake?

    Sorry my bad english.


    Best Regards Martin
    Monday, June 28, 2010 8:57 AM
  • There is one known bug what is SoundPlus.GetLenght(), you must first star playing sound after that SoundPlus.GetLenght() works. In your code your problem is with while.

    Try this:

    TextWindow.Title = "Sound Player"
    n = SoundPlus.CreateSoundPlayer("C:\Test.mp3")
    SoundPlus.Play(n)
    While "True"
      TextWindow.Clear()
    TextWindow.WriteLine("Lenght: "+SoundPlus.GetLenght(n))
    TextWindow.WriteLine("Position:"+SoundPlus.GetPosition(n))
    TextWindow.WriteLine("File: "+SoundPlus.GetSound(n))
    TextWindow.WriteLine("Volume: "+SoundPlus.GetVolume(n))
    TextWindow.WriteLine("SpeedRatio: " + SoundPlus.GetSpeedRatio(n))
    TextWindow.Read()
    EndWhile


    Sorry My Bad English
    Monday, June 28, 2010 5:10 PM
  • Thank you for the program. It play the sound now.

     


    Best Regards Martin
    Monday, June 28, 2010 8:04 PM
  • 0.9.0.6:

    Currently I don't have enough time for this project but here is small update.

    Server/Client support works in my tests but it is not so stable to publish but I hope it comes to next update.

    If someone needs some functions to Small Basic or have ideas please send feedback.


    Sorry My Bad English
    Wednesday, July 21, 2010 4:07 PM
  • Oskariok,

    What steps do I need to take to make this extension work?  I downloaded the file "Data", but then what do I need to do to get it into Small Basic and isn't there also supposed to be a .dll file that goes with the extension?

    Thanks,

    Jricestk

     

     

    Thursday, July 29, 2010 10:53 PM
    Answerer
  • Data.exe is installer. what installs .dll and .xml. Just run it and install it in same location than you installed Small Basic.
    Sorry My Bad English
    Friday, July 30, 2010 9:14 AM
  • Oskariok,

    I now have it loaded.  If you have examples of using the various functions could you tell me where they are.

    In the MousePlus section you have a function for is the "X1 and X2" button down.  What are these?  I can't figure out what those 2 functions are for.

    Thanks for your help.  I did get the printer function to work and that is great!

    Jricestk

     

    Friday, July 30, 2010 7:17 PM
    Answerer
  • X1 and X2 buttons are in left side of your muse they are front and back buttons like arrows. All mouses don't have them. I think I make some samples for Next version



    Sorry My Bad English
    Sunday, August 1, 2010 6:14 PM
  • Oskariok,

    Thanks for your reply.  I looked up 5 button mouse and could see that they talk about X1 and X2.

    Jricestk

    Sunday, August 1, 2010 6:21 PM
    Answerer
  • 0.9.0.7:

    Finally you can use Server/Client features with Small Basic.

    If you find any bugs please report.

     


    Sorry My Bad English
    Thursday, August 12, 2010 8:34 PM
  • Oskariok,

    I tried the new extension and am now getting the following error:

    Exception has been thrown by the target of an invocation.

     at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Delegate.DynamicInvokeImpl(Object[] args)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at Microsoft.SmallBasic.Library.Internal.SmallBasicApplication.<>c__DisplayClass1.<.cctor>b__0()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

    I was testing this to see if I could now print multiple pages.  Here's my program:

    newfont=printing.CreatePrintFont("Arial",10,"Black")
    Printing.SetFontUsingDialog(newfont)
    Printing.Print("c:\temp\printstats.dat",newfont)
    textWindow.Read()

    The error only occurs when I do the printing.print function.  Also, it only occurs on text files.  I was able to print a .png and a .jpg file just fine.  When I tried .txt and .dat files is when the error occurs.

    Thanks,

    Jricestk

     

    Thursday, August 12, 2010 10:57 PM
    Answerer
  • Thanks for the reply. 0.9.0.7 is more like beta version, I try fix this bug and release 0.9.0.8 today.

    Sorry My Bad English
    Friday, August 13, 2010 12:19 PM
  • 0.9.0.8:

    Bug fixes to Native Classes


    Sorry My Bad English
    Saturday, August 14, 2010 9:41 AM
  • Oskariok,

    0.9.0.8 works fine for text printing multiple pages.  Thank you. 

    I haven't gone through all of your new changes yet, but was wondering about graphics.  Is it possible to add to your extension the capability of saving the graphics window and not worry about images.  I know that you put a screenshot in this release and that is great and works just fine.  What I am thinking is, if you have a graphics window open and have any number of images on it, to just be able to say something like this "PictureTools.savegraphicswindow("c:\XXX.xxx").  I could see using this for any program that creates a graphics window and then you want to save it to bring up later or print the saved window.

    Thanks for the printing capability,

    Jricestk

     

     

    Saturday, August 14, 2010 11:35 AM
    Answerer
  • Sorry, but when I download the .exe file, it shows up as a file not .exe, but a File file. I can't run this. Am I doing something wrong?

     

    Thanks!

    Saturday, August 14, 2010 7:29 PM
  • AirWaves,

    I've had that occur also.  Just add the filetype.  It is a .exe file.  So,what you would have is "Data.exe".  Click on this and the installer should run.  When ran this automatically loads "Data.dll" and "Data.xml" in the lib folder.  After running bring up Small Basic and if you have "ClockPlus" under "Clock" in the intellisense you are in business.

    Jricestk 

    Saturday, August 14, 2010 10:01 PM
    Answerer
  • Thanks Jricestk! It worked just fine, and now I have it running! But how do you use the Network Objects?...

    Sunday, August 15, 2010 8:40 AM
  • When I use the SoundPlus.GetLenght, it returns the length of a sound as 0, even if the song is an hour long? What am I doing wrong?

    Thanks

    Sunday, August 15, 2010 9:12 AM
  • There is known bug with that.

    Try add Program.Delay before SoundPlus.GetLenght.


    Sorry My Bad English
    Sunday, August 15, 2010 9:23 AM
  • Thanks. That worked, but can anyone tell me how to use the NetworkClient, NetworkPlus, and the NetworkServer? Thanks
    Sunday, August 15, 2010 6:23 PM
  • 0.9.0.9:

    Fixed all known bugs and added new features and MediaBeta is now Media with new functions.


    Sorry My Bad English
    Sunday, August 15, 2010 7:19 PM
  • Send the code

    Sorry My Bad English
    Monday, August 16, 2010 10:31 AM
  • Here's what I wrote:

    GraphicsWindow

    .Show()

    Game

    .SetIcon(icon*)

    *I don't have an actual icon to give you, so i guess you could use a picture of yours?...
    Monday, August 16, 2010 8:41 PM
  • I've tried .ico (icon), .jpg, .png, .bmp... None Work

    Tuesday, August 17, 2010 5:54 AM
  • When I tested this with C# application it worked but it looks like this function dont work with Small Basic. I fix this for 0.9.0.1.0.
    Sorry My Bad English
    Tuesday, August 17, 2010 12:12 PM
  • Thanks Oskariok!
    Tuesday, August 17, 2010 6:48 PM
  • A very impressive body of work!

    One minor  suggestion: Add a prefix to your functions, etc such as Osk_ so you don't run into naming conflicts such as fremy did, and also to credit your work.

    Is it easier to create graphics extensions in C# then in Visual Basic?

    Many thanks

    Bob

    Tuesday, August 17, 2010 8:41 PM
  • Rober W Jones is right. Its easy enough to copy the .dll and .xml file and sell it on the internet. Be careful... There's alot of bad people out there...   : )
    Wednesday, August 18, 2010 4:35 AM
  • can ANYONE show me how to use the NETWORK librarys? And how to send messages back and forth? like a sample?

    Thanks

    Wednesday, August 18, 2010 7:35 AM
  • If you cant figure your self out with xml documentation I am only one who can help. I make Simple Chat sample and Multiplayer game  sample for Data 0.9.0.1.0.

    If you want use server first you must  use NetworkServer.EnableServer()

    If you want use client use NetworkClient.ConnectToServer()

    You can only have 1 client and 1 server / 1 program but 1 server can be connected to over 100 client (I have tested only with 100) and 1 client can be connected to only 1 server at time.


    Sorry My Bad English
    Wednesday, August 18, 2010 11:50 AM
  • Robert W Jones , I have thought about putting OK in front of all objects but I think, but I think it is easier to code without OK and I have enough credit. Just look namespaces and assembly information of .dll.


    And I think it is easier make graphics extensions with C# because i don't like VB.


    Sorry My Bad English
    Wednesday, August 18, 2010 12:12 PM
  •  Thanks Oskariok!
    Wednesday, August 18, 2010 7:46 PM
  • Oskariok, do you think you could make an object that supports things like pull-down-menus, and popup lables that show when the mouse is over an object? That'd be neat!!

    Wednesday, August 18, 2010 8:18 PM
  • I think converting menus and context menus will  be too complex. But I add new GameWindow to Data 0.9.1.0 with 3D (default WPF 3D, not DirectX) if I get it work (currently works with 2D) and I will make ShapesPlus and Media and MousePlus and Keyboard to use that window. I also will rename MousePlus to GameMouse and  Keyboard to GameKeyboard.
    Sorry My Bad English
    Thursday, August 19, 2010 1:26 PM
  • Hi, I'm here to report a small bug, in MousePlus.LoadCursor. When a cursor is loaded, the return is "FAILED", though the filepath is correct.
    Sunday, August 29, 2010 6:30 AM
  • what filepath did you use?
    Sorry My Bad English
    Sunday, August 29, 2010 8:22 AM
  • Hey, the "Game" object has no description and function listing in the sidebar! help me!
    Check out my website: http://k-dev.webs.com/
    Tuesday, August 31, 2010 11:24 PM
  • Yes it don't description have because it is more like beta object. I am making lots of new Game updates to 0.9.1.0, like GameWindow and GameKeyboard and GameMouse. Also 0.9.1.0 is almost ready to publish but it have some problems with 3D.

     


    Sorry My Bad English
    Wednesday, September 1, 2010 12:44 PM
  • Filepath: "C:\Pictures\icon.png". I also tried another icon, filepath "C:\Pictures\icon2.jpg", then "C:\Pictures\icon3.ico", and "C:\Pictures\icon4.bmp"
    Sunday, September 5, 2010 12:00 AM
  • icons are .ico and cursors are .cur or .ani

    Sorry My Bad English
    Sunday, September 5, 2010 7:17 AM
  • Hi, all!

    This is translated Data Extension creating my father on Russian. More interesting information on www.basic.rezoh.ru.

    Good Luck! 

    Thursday, September 9, 2010 7:59 PM
  • I just checked the site our Russian friends have built and made an interesting discovery.  The site itself is excellent!  if you are using Internet Explorer 8 and click on Page (same line as the tabs are on the far right side), and then click on "Translate with Live Search" twin windows will open with Russian on the Left and English on the right.  There are very few words that do not translate, and the translation it self is very readable.

    Leads to an interesting question, will it translate other langauges on this site?  Care to try and see where we can go with this?

    Bob

     

    Я только что проверил на сайте, наши российские друзья построены и сделал интересные открытия. Сам сайт отличный! Если вы используете Internet Explorer 8 и нажмите кнопку на странице (же линия как вкладки являются далеко справа), и откройте нажмите кнопку "Перевести с Live Search" двойной окон с Российской слева и английский справа. Есть очень мало слов, которые не переводить и перевод, он самоуправления является очень удобным для чтения.

    Это приводит к интересный вопрос, переведет других langauges на этом сайте? Хотите попробовать и посмотреть, где мы можем пойти с этим?

    Боб

    • Edited by Robert W Jones Thursday, September 9, 2010 10:47 PM Russian Translation?
    Thursday, September 9, 2010 10:43 PM
  • Dialogs.AskForFile is the same as Dialogs.AskForSaveLocation. When I need to ask for a place to save, it won't save because it says:

    "File not found. Check the file name and try again."

    Can this be fixed for Data 0.9.1.0

    Tuesday, September 14, 2010 3:02 AM
  • AskForFile uses open file dialog and AskForSaveLocation uses save file dialog and they are not same. When you are opening file that file must exist. This is not a bug but I am making some changes to dialogs

    Sorry My Bad English
    Tuesday, September 14, 2010 12:14 PM
  • Dear Oskariok.

    I will be glad if you answer my question. I don't understand what make this command ClockPlus.BinaryTime.

    Thank you very much. 

    Tuesday, September 14, 2010 7:00 PM
  • ClockPlus.BinaryTime gets current time in binary format time.

    Sorry My Bad English
    Tuesday, September 14, 2010 7:17 PM
  • Thanks
    Tuesday, September 14, 2010 7:45 PM
  • Sorry, I was just using the wrong things... >: (

    Did you just add the picture up top? Or is a problem with my internet browser?

    Wednesday, September 15, 2010 2:37 AM
  • Yes I added that picture 21hours 38 minutes ago.
    Sorry My Bad English
    Wednesday, September 15, 2010 11:34 AM
  • For Data v0.9.1.0, can there be several new things in PictureTools method, like "PictureTools.GetAlphaColor", and "PictureTools.GetContrast"?

    Tuesday, September 21, 2010 2:06 AM
  • No, because pictures don't have Contrast  And Transparent color properties. My functions just replace all pixels of picture with new pixels.
    Sorry My Bad English
    Tuesday, September 21, 2010 12:13 PM
  • New web site, read from top.

    Sorry My Bad English
    Thursday, September 30, 2010 8:58 PM
  • Finally countdown to 0.9.1.0 begins! (It can move to later if I found some problems)

    Sorry My Bad English
    Sunday, October 10, 2010 8:19 PM
  • Read from top

    Sorry My Bad English
    Saturday, November 6, 2010 1:10 PM
  • GameWindow.Icon returns an error. Do you tested this property?
    Saturday, November 6, 2010 8:02 PM
  • Also GameWindow not works. Only black window appears and hides quickly, and I can't perform operations on it. I have Windows XP.
    • Edited by nickAmsterdam Saturday, November 6, 2010 9:03 PM I updated, wrote my OS
    Saturday, November 6, 2010 9:01 PM
  • I tested Icon and window with my C# test program and they worked. Hiding is because Small Basic compiler, but I am not sure why icon does not work.

    [Edit]

    Your OS has nothing to do with this but I fixed icon.


    Sorry My Bad English
    • Edited by Oskariok Saturday, November 6, 2010 9:31 PM Problem solved
    Saturday, November 6, 2010 9:05 PM
  • The extension's great!
    ~~AirWaves!!~~
    Saturday, November 6, 2010 11:44 PM
  • Sorry, GameControls2D.AddMultilineTextBox does not work
    ~~AirWaves!!~~
    Sunday, November 7, 2010 12:16 AM
  • RegisterKeyDownEvent

    RegisterKeyUpEvent

    RegisterMouseUpEvent

    and all the register things don't work.


    ~~AirWaves!!~~
    Sunday, November 7, 2010 2:38 AM
  • When using code:

     

    GameMouse.MouseDown = OnMouseDown

    GameControls2D.AddButton("Button", 0, 0)

    Sub OnMouseDown

      TextWindow.WriteLine("Clicked")

    EndSub

     

    , The button click don't work if mouse is over control (button)


    ~~AirWaves!!~~
    Sunday, November 7, 2010 3:37 AM
  • Also, GameMouse.IsLeftButtonDown doesnt work when clicked on control. so this makes it impossible to get a button clicked

    [EDIT]

    Sorry, you can use original Mouse library in gamewindow.


    ~~AirWaves!!~~

    Sunday, November 7, 2010 3:40 AM
  • GameControls2D.GetText

    don't work, and neither does GameControls2D.GetValue


    ~~AirWaves!!~~
    Sunday, November 7, 2010 10:19 PM
  • electro.n, you can show the gamewindow by using following code:

    GameWindow.Show()

    GameWindow.Closing = OnClosing

    While "True" 'use the infinite loop to ensure the window doesn't hide

    EndWhile

    Sub OnClosing 'use this so when the window closes, the program ends, and isn't running on in the background

      Program.End()

    EndSub


    ~~AirWaves!!~~
    Tuesday, November 9, 2010 2:35 AM
  • GameControls2D.GetText and GameControls2D.GetValue does work.

    The easiest solution for GameWindow closing problem is to make sure your code will not finnish.

    When SmallBasicCompiler compiles code it adds

    TextWindow.PauseIfVisible()

    SmallBasicApplication.EndProgram()

    int end of your code.

    And code inside SmallBasicApplication.EndProgram() is something like:

    If GraphicsWindow is visible = "False" Then

    Program.End()

    EndIf

    ,I think.

    So if you add

    While "True"

    EndWhile

    SmallBasicApplication.EndProgram() can't close GameWindow.

    I add GameWindow.ReplaceGraphicsWindow() in 0.9.1.1 to fix this program, but using GraphicsWindow after that function is not recommended.



    Sorry My Bad English
    Tuesday, November 9, 2010 2:52 PM
  • Thank you, AirWaves. Your code was very helpful for me, I tried to make something like this, but I couldn't.
    Tuesday, November 9, 2010 6:05 PM
  • FilePlus.GetNumberOfLines works only with Unicode files, and FilePlus.WriteLine writes ANSI.

    Wednesday, November 10, 2010 6:31 PM
  • When is v0.9.1.1 due?
    ~~AirWaves!!~~
    Friday, November 12, 2010 3:36 AM
  • Only unstable object is GameControls3D and I like to get it work. If I leave GameControls3D out from 0.9.1.1 I can publish 0.9.1.1 right now.


    Sorry My Bad English
    Friday, November 12, 2010 2:21 PM
  • Hardware.CPUSpeed returns 1178 on my 2.27 GHz dual-core processor.


    Your Signature
    Friday, November 12, 2010 8:14 PM
  • Hardware.CPUSpeed just reads value from the Registry. Are you sure your Current clock speed isn't 1,18 Ghz?

    You can also check your current clock with this program : http://www.cpuid.com/softwares/cpu-z.html


    Sorry My Bad English
    Friday, November 12, 2010 9:24 PM
  • Read from top or visit Data Extension Blog .

    Sorry My Bad English
    Sunday, November 14, 2010 3:19 PM
  • Whoa, Oskariok! Read your blog. Over 5000 lines of code, and 26 objects?!?!?!?! Amazing!
    ~~AirWaves!!~~
    Sunday, November 14, 2010 6:10 PM
  • Oskariok, could you return Game.EnableFullScreen() & Game.DisableFullScreen() for GraphicsWindow to the next release of Data, please? And can you publish all versions of your extension to your blog?
    Wednesday, November 17, 2010 7:49 AM
  • Maybe, but that can be hard because I have Installers only for 0.9.0.8 - 0.9.1.1 and source code only for 0.9.1.2. If I have old dll and xml files I can easily remake all Installers.

     


    Sorry My Bad English
    Wednesday, November 17, 2010 1:15 PM
  • Oskariok, I have created an extension for your gamewindow (not many functions)

    *Fade in and out controls/shape -- AirEffects.Fade(shape, delay, "In" or "Out")

    I'll post it here when I'm finished


    ~~AirWaves!!~~
    Sunday, November 28, 2010 11:36 PM
  • Hi. I love your extension. I have big plans for it's use (mwahahaha*).

    But try as I might, I cannot ping my other computer. I have used it's IP exactly, so I think there must be something wrong with my syntax. I wrote a small program that will ping my other computer and print the result:

    Textwindow.WriteLine(NetworkPlus.Ping("myIP", 60000))

    Am I not supposed to put the IP in quotes? I made sense at the time, because when it's not the SB compiler complains about the number of arguments. Can you think of any other reason why it would keep returning false?

    Sunday, February 6, 2011 6:12 PM
  • Ping works fine with these lines:

    TextWindowPlus.WriteLine(NetworkPlus.Ping("google.com",1000))'ping google.com with max 1 second timeout and write return to console.

    TextWindowPlus.WriteLine(NetworkPlus.Ping("###.###.#.###",1000))'  Replace IP



    Sorry My Bad English
    Sunday, February 6, 2011 8:05 PM
  • Alright, but Small Basic isn't recognizing "TextwindowPlus".
    Sunday, February 6, 2011 8:51 PM
  • I can not download the extension from http://download.dataextension.webatu.com/Data.exe , what to do? Please help me!
    Monday, May 2, 2011 9:49 AM
  • http://download.dataextension.webatu.com/Data.exe redirects to html page where you must fill recaptcha. After submitting right answer to recaptcha and pressing download button your download will start. The page is designed for Firefox 4 and IE9, but it also works with latest chrome and opera and IE8.

    Sorry My Bad English
    Monday, May 2, 2011 10:28 AM
  • This code:
    TextWindow.WriteLine(MathPlus.GetRandomNumber(1, 100))

    returns "FAILED"


    ~~AirWaves!!~~
    Monday, May 2, 2011 8:51 PM
  • I correctly enter the captcha and click "download", save the file to my desktop. File size 2kb, and interesting content - HTML code. Download the file to some other file-hosting service, please. Download the file could not and my friends.
    Friday, May 6, 2011 8:51 PM
  • @AirWaves, fixed that bug

    @ReZOH, What browser are you using?

     


    Sorry My Bad English
    Saturday, May 7, 2011 1:49 PM
  • Opera 11, Firefox 4, Google Chrome 11, IE 9

    + video http://www.youtube.com/watch?v=bih2HZK-bbk

    Saturday, May 7, 2011 3:41 PM
  • In the site: the "Download" button is spelled wrong (it displays "Downlod")

    It downloads a 2kb file, wich gives a error and closes instantly.


    Check out my website: http://k-dev.webs.com/
    Tuesday, May 10, 2011 10:26 PM
  • Working on it
    Sorry My Bad English
    Wednesday, May 11, 2011 11:35 AM
  • What software did you use to make your logo? I am thinking of making one for another purpose, and yours looks pretty cool.
    ~~AirWaves!!~~
    Friday, May 13, 2011 4:27 AM
  • Adobe Photoshop and other image editing programs in Adobe CS5 Master Collection and Paint.NET
    Sorry My Bad English
    Friday, May 13, 2011 12:11 PM
  • Do you have any idea on an approximate date of the next release of the Data Extension? I am really excited about the 3D
    ~~AirWaves!!~~
    Monday, May 16, 2011 5:35 AM
  • I can't download the extension. Please, upload  to any file-hosting!
    Monday, May 16, 2011 6:41 AM
  • Downloading should work now and I don't know when next release will be.
    Sorry My Bad English
    Tuesday, May 17, 2011 5:06 AM
  • Read from the Blog
    Sorry My Bad English
    Saturday, July 2, 2011 4:16 PM
  • Thank you very much Oskariok!
    ~~AirWaves!!~~
    Saturday, July 2, 2011 7:29 PM
  • I can't get your GameController sample to work. What should I do to make it work? Do I need to make a CD or something?
    ~~AirWaves!!~~
    Saturday, July 2, 2011 7:54 PM
  • Does it say "Unaible to connect to controller"? Or does it crash? Do you even have Xbox controller for windows? Operating system, Installed DirectX version and Xbox 360 Accessories driver version also could be helpful information.

     


    Sorry My Bad English
    Saturday, July 2, 2011 9:26 PM
  • When you click "Cancel" on the save file or open file dialogues, there is an error, and the program crashes.
    ~~AirWaves!!~~
    Sunday, July 3, 2011 10:29 PM
  • What windows are you using? (Vista and Seven uses different dialog than XP)
    Sorry My Bad English
    Wednesday, July 6, 2011 10:14 AM
  • I am using Windows7
    ~~AirWaves!!~~
    Thursday, July 7, 2011 4:53 AM
  • The encryption crashed my computer. addbutton or background color commands don't work, using windows xp
    Wednesday, July 13, 2011 1:18 PM
  • Oskariok, I think your website is down, when I try to visit it, it redirects me to this:


    ~~AirWaves!!~~



    • Edited by AirWaves Friday, July 15, 2011 1:19 AM Change Image size
    Friday, July 15, 2011 1:10 AM
  • Yes it is, change webatu.com to hostoi.com.
    Sorry My Bad English
    Friday, July 15, 2011 7:56 AM
  • Data extension isn't working for small basic v1.0
    Monday, July 18, 2011 12:53 PM
  • Data Extension 0.9.X.X works only with Small Basic 0.9.X

    Now I am testing Data Extension 1.0.0.0 that works with Small Basic 1.0


    Sorry My Bad English
    Monday, July 18, 2011 2:08 PM
  • Why doesn't it work with version 4?

    Monday, July 25, 2011 9:58 PM
  • Do you mean version 1.0?

    If so, then this is because Oskariok needs to rebuild his extension with the new SmallBasicLibrary.dll for version 1.0, and then it will work.


    ~~AirWaves!!~~
    Monday, July 25, 2011 10:59 PM
  • i have tried the new media object (v0.9.1.3), media.getposition(mediaplayer) works now, but media.getlength(mediaplayer) does not work and the program crashes. error code:

       bei OskariPrograms.SmallBasic.Library.Media.GetLength(Primitive MediaPlayer)
       bei _SmallBasicProgram._Main()

     

    example:

    med = Media.CreateMediaPlayer(Program.Directory + "\cp.avi", 0, 0, 768, 432)
    Media.Play(med)
    l = Media.GetLength(med)
    TextWindow.WriteLine(l)


    Friday, July 29, 2011 2:23 PM
  • found some new bugs:



    media.setmedia(player, mediapath) :

    bei OskariPrograms.SmallBasic.Library.Media.SetMedia(Primitive MediaPlayer, Primitive FilePath)
    bei _SmallBasicProgram._Main()

    dialogs.askfordirectory() (if cancelled) :

    bei System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    bei System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    bei System.Delegate.DynamicInvokeImpl(Object[] args)
    bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
    bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
    bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
    bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
    bei System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
    bei System.Threading.ExecutionContext.runTryCode(Object userData)
    bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    bei System.Windows.Threading.DispatcherOperation.Invoke()
    bei System.Windows.Threading.Dispatcher.ProcessQueue()
    bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
    bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
    bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
    bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
    bei System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
    bei System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
    bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
    bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
    bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
    bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
    bei System.Windows.Threading.Dispatcher.Run()
    bei System.Windows.Application.RunDispatcher(Object ignore)
    bei System.Windows.Application.RunInternal(Window window)
    bei System.Windows.Application.Run(Window window)
    bei System.Windows.Application.Run()
    bei Microsoft.SmallBasic.Library.Internal.SmallBasicApplication.<>c__DisplayClass1.<.cctor>b__0()
    bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    bei System.Threading.ThreadHelper.ThreadStart()
    Saturday, July 30, 2011 11:59 AM
  • DataExtension 1.0 is released for SmallBasic 1.0? Cool! So is there going to be 3D soon? (Not trying to bug you, or anything....)

    Also, you forgot to change "Version : 0.9.1.3 RC1: Download Installer" to "Version : 1.0.0.0 RC1: Download Installer"


    ~~AirWaves!!~~
    Monday, August 1, 2011 9:50 PM
  • I still have not gotten the Gamewindow to work yet. It appears but does not show anything. I've tried putting buttons in or changing the background color but that doesn't seem to work.

    Saturday, August 13, 2011 4:59 PM
  • Can I see your code?
    ~~AirWaves!!~~
    Sunday, August 14, 2011 6:02 AM
  • @msbraun1, Which windows do you have? XP, Vista or Seven?

    Sorry My Bad English
    Sunday, August 14, 2011 6:04 AM
  • Umm... so this DATA extension provider multiplayer functions to make multiplayer games, chat programs; and what else... i don't really understand what all it provides...

    Ah you just put it there and works omg this extension is as big as 1/3 of Small Basic itself, i am glad to see people like you extending it. I really would love if there were even more extensions to make this language to be able to do anything.

    I am wrong again... this dll is almost AS BIG AS Small Basic itself omg thank you very much, you have added full networking and a lot of other things to it with just one extension omg i love you (not literally ) =) !!!

     


    I love game design and programing.

    Wednesday, August 24, 2011 7:32 PM
  • The Data Extension (Made by Oskariok) lets you do much more with Small Basic than every before! Here is a list of classes:

    -Aero

    -Clipboard

    -ClockPlus

    -CMD

    -DataExtension

    -Dialogs

    -FilePlus

    -GameController

    -GameControls

    -GameKeyBoard

    -GameMouse

    -GameWindow

    -GWPlus

    -Hardware

    -MathPlus

    -Media

    -NetworkClient

    -NetworkPlus

    -NetworkServer

    -OperatingSystem

    -PictureTools

    -Printing

    -Process

    -ProgramPlus

    -SecondTimer

    -SoundPlus

    -Speech

    -TextPlus

    -TextWindowPlus

     

    I think this has many more classes than the Small Basic Library.


    And yes, omg I love this extension (literally!)


    ~~AirWaves!!~~
    Wednesday, August 24, 2011 8:47 PM
  • I counted that Small Basic has 20 libraries and this extension has 30, but the plus ones of existing ones don't need actual existing fuctions, but only the plus ones so it's 15 libraries because they are tiny, i really hope he puts only the PLUS ones he added not the official ones in plus libraries of existing ones... really man. And also SecondTimer should be named TimerSecond because in Intelisense it's positioned away from actual Timer library so it takes time to find it.

    One question though... well why do i get this error using this code:

    Code: 

    'Getting the psyhical memory size in KB

    memory = Hardware.PhysicalMemory

    TextWindow.WriteLine(memory)

     

    ERROR: Value was either too large or too small for an Int32

     

     at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)

       at OskariPrograms.Core.Hardware.get_PhysicalMemory()

       at OskariPrograms.SmallBasic.Library.Hardware.get_PhysicalMemory()

       at _SmallBasicProgram._Main()

     

    Please help... if this is an actual extension mistake well... can you Oskari fix it please ?

     

    EXTRA: Well function Shapes.Animate well i don't know what file type to add for animate argument to work and i don't know if it has to be in "" or with .type or no.


    I love game design and programing.

    Thursday, August 25, 2011 12:24 AM
  • Looks like Hardware.PhysicalMemory has small glitch in type conversation, I will fix that.

    Reason for Data.dll being larger than SmallBasicLibrary.dll is partial obfuscation. 25% of the size is just "air".


    Sorry My Bad English
    Thursday, August 25, 2011 2:15 PM
  • Ok good and please think about Plus libraries, what i posted in last post please...
    I love game design and programing.
    Thursday, August 25, 2011 4:57 PM
  • So what new features, libraries are you thinking (i hope you are) to add more ?

    I would love to have this extension have even more stuff. Especialy because it's such a cool language, i just can't stop using (Games stop me though <.<).

     

    OH and look what i found:

    at OskariPrograms.SmallBasic.Library.Aero.set_IsDesktopVisible(Primitive value)
       at _SmallBasicProgram._Main()

     

    This error came from Aero.isDektopVisible = "True"...

    Well i used same code i shown with value of "False" and it worked, it hidden the desktop. Now when i want to revert it back using "True" i get this bad ass error... im desktop-less now ;(.


    I love game design and game programing.
    Sunday, August 28, 2011 10:42 AM
  • Try logging out of your acount, then logging back in.
    ~~AirWaves!!~~
    Sunday, August 28, 2011 5:12 PM
  • Or just task manager kill explorer.exe and start a new explorer.exe =). I am still waiting for Oskariok for extension news.
    I love game design and game programing.
    Sunday, August 28, 2011 5:16 PM
  • Are you using Windows XP?

    This code worked well in windows 7

    Dialogs.ShowMessageBox("Hiding Desktop Icons","","","")
    Aero.IsDesktopVisible = "False"
    Dialogs.ShowMessageBox("Showing Desktop Icons","","","")
    Aero.IsDesktopVisible = "True"


    Sorry My Bad English
    Sunday, August 28, 2011 6:18 PM
  • Yes i am using Windows XP. I can hide desktop, but i can't show it up back later.

     

    And also what are your plans for your extension in the future ?


    I love game design and game programing.
    Sunday, August 28, 2011 6:50 PM
  • @Primoz128

       That information is classified, but I made this picture.

    And maybe few other new features...


    Sorry My Bad English
    Monday, September 19, 2011 2:42 PM
  • @Oskariok

     

    Would it be possible for you to add more Hardware. things?

    Stuff like Hardware.CurrentCPUSpeed as Hardware.CPUSpeed doesn't show the overclocked speed, just the default one.
    Or one to list the capacity of hard-drives instead of the indicator?

    Anyway, really great extension, just hoping for some more Hardware. related things :) 

    Sunday, September 25, 2011 12:00 PM
  • Would it be possible for you to add more Hardware. things?
    I'll see what I can do. Maybe I add something new.

    Sorry My Bad English
    Monday, September 26, 2011 7:03 PM
  • I am happy to pronounce that Data  Extension is going to be released as planned on next Saturday.

    Almost all major bugs (file dialog crashing, few functions not working... ) reported to me are fixed and the extension works better than ever.

    If you want make request for any new feature or post a bug report please open new ticket before Friday or you will have to wait another month.


    Sorry My Bad English
    Wednesday, September 28, 2011 6:36 PM
  • Complete List of Fixes, Changes and Updates in Data Extension 1.0.0.1:
     
    -Fix! Fixed many bugs caused by obfuscation.
    -Fix! Fixed crashing error in windows dialogs.
    -Fix! ClockPlus.DaysInMont to ClockPlus.DaysInMonth.
    -Fix! Fixed small in glitch CMD.RunCMDcommand. (It works again)
    -Fix! Fixed Hardware.PhysicalMemory.
    -Fix! Fixed memory usage crash/failing in PictureTools.Crop and PictureTools.TakeScreenShot().
    -Fix! Fixed Aero Glass in GameWindow.
    -Fix! Fixed over 200 Code Analysis Security and/or Performance Warnings.
    -Fix! Small optimizations to Networking objects.
    -Fix! Fixed xml documentation in GameControls.
     
    -Change! Small special optimizations to Clippoard.
    -Change! Optimizations to parameter handling in Aero object.
    -Change! Encryption used in server/client communications is now more secure.
    -Change! Changed program ending handler in GameWindow from OnClosing to OnClosed
    -Change! Renamed GameControls.GetEnabled() to GameControls.IsEnabled().
    -Change! Renamed GameControls.GetFocus() to GameControls.IsFocused().
    -Change! Renamed GameControls.GetVisibility() to GameControls.IsVisible().
    -Change! GameControls.Zoom() to GameControls.Scale() with bigger range.
    -Change! GameControls.SetPosition() to GameControls.Move() with few improvements.
    -Change! Improved GameControls.SetText, GameControls.SetValue, GameControls.GetText and GameControls.GetValue.
    -Change! SecondTimer to TimerPlus with few tiny improvements.
     
    -New! DataExtension.SortArray, new fast function for sorting arrays.
    -New! ClockPlus.Format(), new function for formatting time & date.
    -New! Globalization functions to ClockPlus.
    -New! Reqular expression support, TextPlus.RegexIsMatch() & TextPlus.RegexReplace()
    -New! 'Big' opearations to MathPlus to calculate numbers that crash with Primitive and Int.
    -New! Functions that provide access to Shell32.
    -New! PrintPreview dialog that looks much better than default dialog. (It also uses Aero Glass)
    -New! New MoveLine() function to GameControls.
    -New! CanMove property to GameWindow.
    -New! New Get Usage functions to Hardware.
    -New! New GetDriveInfo() function to Hardware.
     
    -And some other small fixes and optimizations to all 4 libraries
    -Improved Installer
    -Known Issues:
    	None

    Sorry My Bad English
    Saturday, October 1, 2011 11:47 AM
  • I think you may have a problem with Hardware.RAM, Oskariok.

    Saturday, October 1, 2011 10:39 PM
  • I think you may have a problem with Hardware.RAM, Oskariok.

    Hardware.RAM returns value in Kb.

    3010660 / 1024 = 3MB

    But it looks like I put Mb in documentation for some reason?

    I also made same mistake with Hardware.RAMUsage. It also returns value in Kb.

    I'll fix this to 1.0.0.2


    Sorry My Bad English
    Sunday, October 2, 2011 8:21 AM
  • Would it be possible for you to add something along the lines of a Process.CheckExists(<process_name>)? (Returns "True", "False", "FAILED")

    That could come in useful if a program has various executables to run, and something is dis- or enabled when a certain process exists, or doesn't exist.

    Sunday, October 9, 2011 3:50 PM
  • Oskariok,

    I tried to post this in the issue tracker, but it didn't work.  So, I am posting it here.

    NewFont=Printing.CreatePrintFont("Times New Roman",10,"Black")
    Data=File.ReadContents("c:\temp\testing.txt")
    TextWindow.Write(Data)
    Printing.PrintPreview("c:\temp\testing.txt",NewFont)
    TextWindow.Write("Printing File")

    This data file only has 10 lines in it and in each line is 1 number like:

    1

    2

    3

    etc.

    It doesn't make any difference if I use preview or print the text comes out as 1 line with garbage characters.  Any idea as to what is wrong?

    Thanks,

    JR


    Jricestk
    Thursday, October 13, 2011 11:24 PM
    Answerer
  • @LMcSherry Process.ExistsByName and Process.ExistsByID can included. 

     

    @jricestk

    Tracker is currently down. I will install new tracker on Sunday.

    What kind of file your testing.txt is?

    Ansi encoded text file created with notepad or file generated using File perhaps?

    Posting a link to screenshot of print preview also might help.


    Sorry My Bad English
    Friday, October 14, 2011 10:44 AM
  •  

    Oskariok,

    Here's the screen print showing what it is doing.  The file is just a simple ascii text file. 

    JR

     

     

     

     

     


    Jricestk
    Saturday, October 15, 2011 3:33 PM
    Answerer
  •  The file is just a simple ascii text file. 

    That's the problem. Printing uses Unicode so when unicode reader reads ascii encoded file output is that.

    I added BOM detection to printing functions so now it should be able to print and preview files that use other encodes.


    Sorry My Bad English
    Sunday, October 23, 2011 8:51 AM
  • Oskariok,

    Glad you know what the problem was.  When will the Data extension be revised to include the fix?

    Thanks,

    JR

     


    Jricestk
    Monday, October 24, 2011 11:23 PM
    Answerer
  • Tomorrow. (Hopefully)
    Sorry My Bad English
    Monday, October 31, 2011 2:46 PM