Jump to content




SelectOS v.1.4.4 Alpha [ Colours ] [ Programs ]



130 replies to this topic

Poll: SelectOS - Poll (63 member(s) have cast votes)

What do you want me to add?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.

What do you think of SelectOS

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.

What programs do you want?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Vote Guests cannot vote

#61 AnthonyD98™

  • Members
  • 193 posts
  • LocationAuckland, New Zealand

Posted 14 February 2013 - 02:50 PM

:D It's useful for me.

What I'm doing now:

Making a taskbar sort of thingy.

#62 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 14 February 2013 - 02:57 PM

View PostAnthonyD98™, on 14 February 2013 - 02:39 PM, said:

On another note I've improved the space() function :D
-- Code
local function space(times)
for rep = 1,times do
  print("")
end
end
Further improvement
local function space(times)
  write(string.rep(" ",times))
end
string.rep is repetition :)

#63 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,458 posts

Posted 14 February 2013 - 03:02 PM

No, the point was the skip lines, so you'd need to use \n rather than space. It'd still be better to use scroll and setCursorPos, though.

#64 AnthonyD98™

  • Members
  • 193 posts
  • LocationAuckland, New Zealand

Posted 14 February 2013 - 03:03 PM

View PostTheOriginalBIT, on 14 February 2013 - 02:57 PM, said:

View PostAnthonyD98™, on 14 February 2013 - 02:39 PM, said:

On another note I've improved the space() function :D
-- Code
local function space(times)
for rep = 1,times do
  print("")
end
end
Further improvement
local function space(times)
  write(string.rep(" ",times))
end
string.rep is repetition :)

That just makes a space on the current line, anyway it is still useful. Thanks TheOrginalBit :D

Also here is a picture of the current Menu for SelectOS
Attached File  SelectOS Sneak Peak.JPG   17.88K   16 downloads

#65 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 14 February 2013 - 03:08 PM

View PostAnthonyD98™, on 14 February 2013 - 03:03 PM, said:

View PostTheOriginalBIT, on 14 February 2013 - 02:57 PM, said:

View PostAnthonyD98™, on 14 February 2013 - 02:39 PM, said:

On another note I've improved the space() function :D
-- Code
local function space(times)
for rep = 1,times do
  print("")
end
end
Further improvement
local function space(times)
  write(string.rep(" ",times))
end
string.rep is repetition :)

That just makes a space on the current line, anyway it is still useful. Thanks TheOrginalBit :D

Also here is a picture of the current Menu for SelectOS
Attached File  SelectOS Sneak Peak.JPG   17.88K   16 downloads
Very nice!

#66 AnthonyD98™

  • Members
  • 193 posts
  • LocationAuckland, New Zealand

Posted 14 February 2013 - 03:12 PM

Now I need to implement the mouse_click & keyboard functionality for [ File ] Which I will need Skullblades help with the mouse part of that since I don't know how his mouse code works.
For the keyboard functionality though, I think you should press ctrl then use the directional keys to navigate the taskbar (The grey bar at the top) Or I could have it so when you press Ctrl+F it opens the [ File ] Bit.

What File is for you may ask?

It will have the following selections in it:

* Run
* Edit
* List

Run will open up a text input box which you then input what program you want to run and then it runs it
Edit will do the same as Run but instead of running the program it will edit it.
And List (Which may be removed) will list all the programs that you can run.

#67 AnthonyD98™

  • Members
  • 193 posts
  • LocationAuckland, New Zealand

Posted 14 February 2013 - 03:13 PM

Thanks SuicidalSTDz :D

#68 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 14 February 2013 - 03:17 PM

View PostAnthonyD98™, on 14 February 2013 - 03:12 PM, said:

Now I need to implement the mouse_click & keyboard functionality for [ File ] Which I will need Skullblades help with the mouse part of that since I don't know how his mouse code works.
For the keyboard functionality though, I think you should press ctrl then use the directional keys to navigate the taskbar (The grey bar at the top) Or I could have it so when you press Ctrl+F it opens the [ File ] Bit.

What File is for you may ask?

It will have the following selections in it:

* Run
* Edit
* List

Run will open up a text input box which you then input what program you want to run and then it runs it
Edit will do the same as Run but instead of running the program it will edit it.
And List (Which may be removed) will list all the programs that you can run.
How would u like me 2 help u w/ the file browser (thats what u need right?)?

EDIT:Do you need basic knowledge of the mouse api or do you want me 2 show you what i did to implement it specifically?

EDIT EDIT: look at the grammar in red :P

#69 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 14 February 2013 - 03:18 PM

View PostAnthonyD98™, on 14 February 2013 - 03:12 PM, said:

Now I need to implement the mouse_click & keyboard functionality for [ File ] Which I will need Skullblades help with the mouse part of that since I don't know how his mouse code works.
For the keyboard functionality though, I think you should press ctrl then use the directional keys to navigate the taskbar (The grey bar at the top) Or I could have it so when you press Ctrl+F it opens the [ File ] Bit.

What File is for you may ask?

It will have the following selections in it:

* Run
* Edit
* List

Run will open up a text input box which you then input what program you want to run and then it runs it
Edit will do the same as Run but instead of running the program it will edit it.
And List (Which may be removed) will list all the programs that you can run.
Mouse click detection is quite simple:

--Code
local event, button, xPos, yPos = os.pullEvent("mouse_click")
if button == [1 or 2] then--One being left click, two being right click
if (xPos >= [First pos] and xPos <= [Last pos] and yPos == [y pos]) then --Something
end
Im sure Skullblade can go into more detail for you, since Im not a "great" teacher ;)

EDIT: Forgot to close my if statement D: (Noob mistake...)

#70 AnthonyD98™

  • Members
  • 193 posts
  • LocationAuckland, New Zealand

Posted 14 February 2013 - 03:21 PM

View PostSkullblade, on 14 February 2013 - 03:17 PM, said:

View PostAnthonyD98™, on 14 February 2013 - 03:12 PM, said:

Now I need to implement the mouse_click & keyboard functionality for [ File ] Which I will need Skullblades help with the mouse part of that since I don't know how his mouse code works.
For the keyboard functionality though, I think you should press ctrl then use the directional keys to navigate the taskbar (The grey bar at the top) Or I could have it so when you press Ctrl+F it opens the [ File ] Bit.

What File is for you may ask?

It will have the following selections in it:

* Run
* Edit
* List

Run will open up a text input box which you then input what program you want to run and then it runs it
Edit will do the same as Run but instead of running the program it will edit it.
And List (Which may be removed) will list all the programs that you can run.
How would u like me 2 help u w/ the file browser (thats what u need right?)?

No not the file browser, the [ File ] Button on the taskbar.

View PostSuicidalSTDz, on 14 February 2013 - 03:18 PM, said:

View PostAnthonyD98™, on 14 February 2013 - 03:12 PM, said:

Now I need to implement the mouse_click & keyboard functionality for [ File ] Which I will need Skullblades help with the mouse part of that since I don't know how his mouse code works.
For the keyboard functionality though, I think you should press ctrl then use the directional keys to navigate the taskbar (The grey bar at the top) Or I could have it so when you press Ctrl+F it opens the [ File ] Bit.

What File is for you may ask?

It will have the following selections in it:

* Run
* Edit
* List

Run will open up a text input box which you then input what program you want to run and then it runs it
Edit will do the same as Run but instead of running the program it will edit it.
And List (Which may be removed) will list all the programs that you can run.
Mouse click detection is quite simple:

--Code
local event, button, xPos, yPos = os.pullEvent("mouse_click")
if button == [1 or 2] then--One being left click, two being right click
if (xPos >= [First pos] and xPos <= [Last pos] and yPos == [y pos]) then --Something
end
Im sure Skullblade can go into more detail for you, since Im not a "great" teacher ;)

EDIT: Forgot to close my if statement D: (Noob mistake...)

I know how to use the mouse_click detection. Its just that SkullBlades code is some pretty advanced stuff so I'm not sure what to do :D

#71 AnthonyD98™

  • Members
  • 193 posts
  • LocationAuckland, New Zealand

Posted 14 February 2013 - 03:22 PM

Sorry about my grammer, but sometimes I'm in a rush ;)

Skullblade could you tell me how your mouse code works?

#72 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 14 February 2013 - 03:32 PM

View PostAnthonyD98™, on 14 February 2013 - 03:21 PM, said:

I know how to use the mouse_click detection. Its just that SkullBlades code is some pretty advanced stuff so I'm not sure what to do :D
Its not really advanced but if you pm me a link to the current code i cant look at what your doing with the [File]

How i did mouse
I checked if the Y you clicked minus the space above options (space above 1st option) isn't nil in the table of options. (Checking Y)
I then checked if the X was within the text for the option (this is were it gets complicated...i had to reverse engineer the print center function...)

View PostAnthonyD98™, on 14 February 2013 - 03:22 PM, said:

Sorry about my grammer, but sometimes I'm in a rush ;)

Skullblade could you tell me how your mouse code works?
Just pointing the grammar out for you ;)

#73 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 14 February 2013 - 03:39 PM

View PostSkullblade, on 14 February 2013 - 03:32 PM, said:

View PostAnthonyD98™, on 14 February 2013 - 03:21 PM, said:

I know how to use the mouse_click detection. Its just that SkullBlades code is some pretty advanced stuff so I'm not sure what to do :D
Its not really advanced but if you pm me a link to the current code i cant look at what your doing with the [File]

How i did mouse
I checked if the Y you clicked minus the space above options (space above 1st option) isn't nil in the table of options. (Checking Y)
I then checked if the X was within the text for the option (this is were it gets complicated...i had to reverse engineer the print center function...)
That is acutally I nice way of mouse_click detection. Never thought of that before :)

#74 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 14 February 2013 - 03:41 PM

View PostSkullblade, on 14 February 2013 - 03:32 PM, said:

Its not really advanced but if you pm me a link to the current code i cant look at what your doing with the [File]
You can't look at his code? D:

#75 AnthonyD98™

  • Members
  • 193 posts
  • LocationAuckland, New Zealand

Posted 14 February 2013 - 03:44 PM

View PostSuicidalSTDz, on 14 February 2013 - 03:41 PM, said:

View PostSkullblade, on 14 February 2013 - 03:32 PM, said:

Its not really advanced but if you pm me a link to the current code i cant look at what your doing with the [File]
You can't look at his code? D:

I've PM'ed him the code. Yes nobody can view the code unless they request to by asking me :D

I don't want to spoil any suprises xD

#76 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 14 February 2013 - 04:01 PM

View PostAnthonyD98™, on 14 February 2013 - 03:44 PM, said:

View PostSuicidalSTDz, on 14 February 2013 - 03:41 PM, said:

View PostSkullblade, on 14 February 2013 - 03:32 PM, said:

Its not really advanced but if you pm me a link to the current code i cant look at what your doing with the [File]
You can't look at his code? D:

I've PM'ed him the code. Yes nobody can view the code unless they request to by asking me :D/>

I don't want to spoil any suprises xD
I'm not on my computer right now and I refuse to code on my shitty iPhone "keyboard", is it ok if
I help u 2marrow?

#77 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 14 February 2013 - 04:14 PM

View PostSkullblade, on 14 February 2013 - 04:01 PM, said:

View PostAnthonyD98™, on 14 February 2013 - 03:44 PM, said:

View PostSuicidalSTDz, on 14 February 2013 - 03:41 PM, said:

View PostSkullblade, on 14 February 2013 - 03:32 PM, said:

Its not really advanced but if you pm me a link to the current code i cant look at what your doing with the [File]
You can't look at his code? D:

I've PM'ed him the code. Yes nobody can view the code unless they request to by asking me :D/>

I don't want to spoil any suprises xD
I'm not on my computer right now and I refuse to code on my shitty iPhone "keyboard", is it ok if
I help u 2marrow?
Apple - Dissapointing customers since... When did they begin? Oh well, you get where I am going :P

#78 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 14 February 2013 - 04:19 PM

View PostSuicidalSTDz, on 14 February 2013 - 04:14 PM, said:

Apple - Dissapointing customers since... When did they begin? Oh well, you get where I am going :P
Not just Apple. its quite annoying to code on any smart phone or tablets keyboard.

#79 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 14 February 2013 - 04:21 PM

View PostTheOriginalBIT, on 14 February 2013 - 04:19 PM, said:

View PostSuicidalSTDz, on 14 February 2013 - 04:14 PM, said:

Apple - Dissapointing customers since... When did they begin? Oh well, you get where I am going :P
Not just Apple. its quite annoying to code on any smart phone or tablets keyboard.
My Verizon Stellar is quite nice for the occasion... Unless there are some "people" tapping on your shoulders the whole time you are trying to type (True story :P)

#80 AnthonyD98™

  • Members
  • 193 posts
  • LocationAuckland, New Zealand

Posted 14 February 2013 - 04:33 PM

View PostSkullblade, on 14 February 2013 - 04:01 PM, said:

View PostAnthonyD98™, on 14 February 2013 - 03:44 PM, said:

View PostSuicidalSTDz, on 14 February 2013 - 03:41 PM, said:

View PostSkullblade, on 14 February 2013 - 03:32 PM, said:

Its not really advanced but if you pm me a link to the current code i cant look at what your doing with the [File]
You can't look at his code? D:

I've PM'ed him the code. Yes nobody can view the code unless they request to by asking me :D/>

I don't want to spoil any suprises xD
I'm not on my computer right now and I refuse to code on my shitty iPhone "keyboard", is it ok if
I help u 2marrow?

Yeah its fine





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users