#61
Posted 14 February 2013 - 02:50 PM
What I'm doing now:
Making a taskbar sort of thingy.
#62
Posted 14 February 2013 - 02:57 PM
AnthonyD98™, on 14 February 2013 - 02:39 PM, said:
-- Code local function space(times) for rep = 1,times do print("") end end
local function space(times) write(string.rep(" ",times)) endstring.rep is repetition
#63
Posted 14 February 2013 - 03:02 PM
#64
Posted 14 February 2013 - 03:03 PM
TheOriginalBIT, on 14 February 2013 - 02:57 PM, said:
That just makes a space on the current line, anyway it is still useful. Thanks TheOrginalBit
Also here is a picture of the current Menu for SelectOS
SelectOS Sneak Peak.JPG 17.88K 16 downloads
#65
Posted 14 February 2013 - 03:08 PM
AnthonyD98™, on 14 February 2013 - 03:03 PM, said:
TheOriginalBIT, on 14 February 2013 - 02:57 PM, said:
That just makes a space on the current line, anyway it is still useful. Thanks TheOrginalBit
Also here is a picture of the current Menu for SelectOS
SelectOS Sneak Peak.JPG 17.88K 16 downloads
#66
Posted 14 February 2013 - 03:12 PM
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
Posted 14 February 2013 - 03:13 PM
#68
Posted 14 February 2013 - 03:17 PM
AnthonyD98™, on 14 February 2013 - 03:12 PM, said:
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.
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
#69
Posted 14 February 2013 - 03:18 PM
AnthonyD98™, on 14 February 2013 - 03:12 PM, said:
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.
--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 endIm 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
Posted 14 February 2013 - 03:21 PM
Skullblade, on 14 February 2013 - 03:17 PM, said:
AnthonyD98™, on 14 February 2013 - 03:12 PM, said:
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.
No not the file browser, the [ File ] Button on the taskbar.
SuicidalSTDz, on 14 February 2013 - 03:18 PM, said:
AnthonyD98™, on 14 February 2013 - 03:12 PM, said:
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.
--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 endIm 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
#71
Posted 14 February 2013 - 03:22 PM
Skullblade could you tell me how your mouse code works?
#72
Posted 14 February 2013 - 03:32 PM
AnthonyD98™, on 14 February 2013 - 03:21 PM, said:
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...)
AnthonyD98™, on 14 February 2013 - 03:22 PM, said:
Skullblade could you tell me how your mouse code works?
#73
Posted 14 February 2013 - 03:39 PM
Skullblade, on 14 February 2013 - 03:32 PM, said:
AnthonyD98™, on 14 February 2013 - 03:21 PM, said:
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...)
#75
#76
Posted 14 February 2013 - 04:01 PM
AnthonyD98™, on 14 February 2013 - 03:44 PM, said:
I help u 2marrow?
#77
Posted 14 February 2013 - 04:14 PM
Skullblade, on 14 February 2013 - 04:01 PM, said:
AnthonyD98™, on 14 February 2013 - 03:44 PM, said:
I help u 2marrow?
#79
#80
Posted 14 February 2013 - 04:33 PM
Skullblade, on 14 February 2013 - 04:01 PM, said:
AnthonyD98™, on 14 February 2013 - 03:44 PM, said:
I help u 2marrow?
Yeah its fine
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users