I was wondering if anyone has any experience using mruby( https://github.com/mruby/mruby ). My knowledge of C is limited and i had received errors trying to build the project myself.(http://gyazo.com/370d8789c16e8100bb59711dd586a602)
I am looking into making/obtaining a mruby module/pbi that can be ...
Search found 42 matches
- Tue Dec 16, 2014 1:13 am
- Forum: Coding Questions
- Topic: Embedding mRuby
- Replies: 0
- Views: 1341
- Fri Jul 25, 2014 8:27 pm
- Forum: Tricks 'n' Tips
- Topic: TaskBarProgress Module OOP Win7+
- Replies: 12
- Views: 7659
Re: TaskBarProgress Module OOP Win7+
Update:
; Version 1.3
; added optional setting for range of progress
; (min = 0 To max) (max = min To 9223372036854775807)
Great example. Modules are the perfect fit to fill really the only gap people could ask for when using oop in purebasic, as far as having private methods and vars. Hmm ...
; Version 1.3
; added optional setting for range of progress
; (min = 0 To max) (max = min To 9223372036854775807)
Great example. Modules are the perfect fit to fill really the only gap people could ask for when using oop in purebasic, as far as having private methods and vars. Hmm ...
- Wed Dec 25, 2013 5:22 am
- Forum: Feature Requests and Wishlists
- Topic: ReceiveHTTPFile Callback
- Replies: 0
- Views: 901
ReceiveHTTPFile Callback
Would be nice to be able to pass an optional callback function to the ReceiveHTTPFile() function. Just something that passes either the bytes received so far, or both the bytes received and the total. Its unfortunate to have to rewrite the entire ReceiveHTTPFile() by hand just to have this bit of ...
- Tue Dec 24, 2013 12:18 pm
- Forum: Coding Questions
- Topic: file size not updating while downloading file
- Replies: 6
- Views: 1324
Re: file size not updating while downloading file
I plan to add a snippet after i get home from work. No, the download is put in a seperate thread so that it doesnt hang the main application window. filesize is being used from the main thread to get a download progress by comparing the current filesize to the final file size.
- Tue Dec 24, 2013 10:23 am
- Forum: Coding Questions
- Topic: file size not updating while downloading file
- Replies: 6
- Views: 1324
Re: file size not updating while downloading file
I am using a text gadget, and its not an issue with the gadget updating. The problem is that that the filesize() function returns the same thing for about 5-10 seconds at a time while the download is happening in another thread(checked debug output to verify).
The strange part is that if i ...
The strange part is that if i ...
- Mon Dec 23, 2013 8:59 pm
- Forum: Coding Questions
- Topic: file size not updating while downloading file
- Replies: 6
- Views: 1324
file size not updating while downloading file
I have a program that downloads files with the standard library (receivehttpfile()).While the download is happening, in another thread i am having the file size updated on that file.
Something strange is happening though. Only after large chunks of the file being downloaded, will the size returned ...
Something strange is happening though. Only after large chunks of the file being downloaded, will the size returned ...
- Wed Feb 23, 2011 6:06 am
- Forum: Coding Questions
- Topic: Multiple file extensions in ExamineDirectory() ?
- Replies: 34
- Views: 7083
Re: Multiple file extensions in ExamineDirectory() ?
i prefer this method, its very similar to the pattern array by Rook Zimbabwe.
For x=1 To 3
Select x
Case 1
dir=ExamineDirectory(#PB_Any,"C:\","*.jpg")
While NextDirectoryEntry(dir)
Debug DirectoryEntryName(dir)
Wend
FinishDirectory(dir)
Case 2
dir=ExamineDirectory(#PB_Any,"C:\","*.rar ...
For x=1 To 3
Select x
Case 1
dir=ExamineDirectory(#PB_Any,"C:\","*.jpg")
While NextDirectoryEntry(dir)
Debug DirectoryEntryName(dir)
Wend
FinishDirectory(dir)
Case 2
dir=ExamineDirectory(#PB_Any,"C:\","*.rar ...
- Wed Feb 23, 2011 3:03 am
- Forum: Coding Questions
- Topic: Best approach for keyboard events...
- Replies: 5
- Views: 2036
Re: Best approach for keyboard events...
in case you hadn't figured it out already, i made a small example for ya
OpenWindow(0, 350, 195, 199, 238, "Example", #PB_Window_SystemMenu)
Frame3DGadget(#PB_Any, 10, 10, 180, 160, "Commands")
cmdoutput=ListViewGadget(#PB_Any, 20, 30, 160, 130)
cmdinput=StringGadget(#PB_Any, 10, 180, 180, 20 ...
OpenWindow(0, 350, 195, 199, 238, "Example", #PB_Window_SystemMenu)
Frame3DGadget(#PB_Any, 10, 10, 180, 160, "Commands")
cmdoutput=ListViewGadget(#PB_Any, 20, 30, 160, 130)
cmdinput=StringGadget(#PB_Any, 10, 180, 180, 20 ...
- Fri Feb 18, 2011 8:14 pm
- Forum: Coding Questions
- Topic: GetClientIP() returns 0.0.0.0
- Replies: 4
- Views: 1588
Re: GetClientIP() returns 0.0.0.0
You would be better off using the clientid as an identifyer for the client than the ip because it will always be shown whenever an event occurs by that client.
- Wed Feb 16, 2011 8:27 pm
- Forum: General Discussion
- Topic: [Your Thoughts] Macros for Cross-Platform API Functionality
- Replies: 4
- Views: 1384
Re: [Your Thoughts] Macros for Cross-Platform API Functional
Now you see the process required from the pb devs to add thing to purebasic itself. Essentially all pb commands are macros that change depending on the compilers os. If there is a good general knowledge of each os' api it shouldnt be too difficult depending on what commands your wanting to have
- Mon Jan 31, 2011 3:23 pm
- Forum: Coding Questions
- Topic: [solved] Reading a file that is used by another program.
- Replies: 4
- Views: 1544
Re: Reading a file that is used by another program.
nice. that would be something worth sharingcoldhands wrote:About the files: They're Age of Empires 2 Recorded Games. I'm streaming them from one computer to another live as they're being created, simulating a spectators mode for the game.

- Mon Jan 31, 2011 3:10 am
- Forum: Coding Questions
- Topic: whats the default frame rate for screen
- Replies: 3
- Views: 1441
Re: whats the default frame rate for screen
Ah ok thanks for the info. So what if the framerate was changed with SetFrameRate() how would i change it back to what it was before?
- Sun Jan 30, 2011 10:36 am
- Forum: Coding Questions
- Topic: whats the default frame rate for screen
- Replies: 3
- Views: 1441
whats the default frame rate for screen
anyone have an idea?
- Wed Dec 22, 2010 10:29 pm
- Forum: Announcement
- Topic: [Chipmunk2D4PB] 2D Physics Engine
- Replies: 53
- Views: 42622
Re: [Chipmunk4PB] v0.1 is released (2D Physic Engine Wrapper
would be nice to see the sourceIceSoft wrote:A window with 10 bouncing boxes
Development time: 10min
http://www.morty-productions.de/icesoft ... Bounce.zip
- Fri Dec 17, 2010 5:50 am
- Forum: Feature Requests and Wishlists
- Topic: Make startposition optional in FindString()
- Replies: 20
- Views: 3920
Re: Make startposition optional in FindString()
how hard is it to add ", 1" to the end of a command?
why dont you just wrap it in another procedure if its that much of a hastle?
why dont you just wrap it in another procedure if its that much of a hastle?
Code: Select all
Procedure fFindstring(string.s,stringtofind.s,startposition=1)
ProcedureReturn FindString(string,stringtofind,startposition)
EndProcedure