Jump to content




Test Windows 1.0.12 for Developers

lua

30 replies to this topic

#21 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 04 March 2013 - 07:29 PM

 Sammich Lord, on 04 March 2013 - 07:28 PM, said:

This is in my bookmarks as "Weird anime music video".
What do you do in your free time?!

#22 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 04 March 2013 - 07:33 PM

 SuicidalSTDz, on 04 March 2013 - 07:29 PM, said:

 Sammich Lord, on 04 March 2013 - 07:28 PM, said:

This is in my bookmarks as "Weird anime music video".
What do you do in your free time?!
Code, watch anime, forums, IRC, movies and Youtube. That good enough? :P

#23 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 04 March 2013 - 07:40 PM

 Sammich Lord, on 04 March 2013 - 07:33 PM, said:

 SuicidalSTDz, on 04 March 2013 - 07:29 PM, said:

 Sammich Lord, on 04 March 2013 - 07:28 PM, said:

This is in my bookmarks as "Weird anime music video".
What do you do in your free time?!
Code, watch anime, forums, IRC, movies and Youtube. That good enough? :P
The second one answered my question... In reply to your video, I give you this:

EDIT: I reject this video for sake of keeping this "thread" clean. I counter-act this with another video! Darn Sammich, now you have Anime videos coming in my youtube's "Recommended For You" spot...



#24 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 04 March 2013 - 07:44 PM

 Mendax, on 04 March 2013 - 06:45 PM, said:

Windows itself is regarded as unreliable, and I know people who actively avoid Windows (including me!), that and the legality would possibly be a pain, but considering this is a program for a computer in a game running on a computer, I don't think it will be that much of a problem.

I agree with you, however I think we may be on either ends of the spectrum. Mac ftw.

Anyway, just a small problem Mr 'Microsoft'. It doesn't do anything, just a blank screen. A screenshot or even just working code would be nice.

#25 1lann

  • Members
  • 516 posts
  • LocationSeattle

Posted 04 March 2013 - 11:03 PM

 oeed, on 04 March 2013 - 07:44 PM, said:

Anyway, just a small problem Mr 'Microsoft'. It doesn't do anything, just a blank screen. A screenshot or even just working code would be nice.
The code is working, what you're looking at is the desktop
-- Desktop 0.1.1
local function desktop()
while true do
  local event, param1 = os.pullEvent();
 
  win.ui.render();
 
  if(event == "key") then
   if (param1 == 17) then
    -- Key W
    term.write("up");
   elseif (param1 == 31) then
    -- key S
    term.write("down");
   end;
  end;
end;
end;
local thread = win.nt.createThread(desktop);
thread:resume();
Found in: windows/ui/desktop.lua

#26 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 04 March 2013 - 11:18 PM

 1lann, on 04 March 2013 - 11:03 PM, said:

 oeed, on 04 March 2013 - 07:44 PM, said:

Anyway, just a small problem Mr 'Microsoft'. It doesn't do anything, just a blank screen. A screenshot or even just working code would be nice.
The code is working, what you're looking at is the desktop
-- Desktop 0.1.1
local function desktop()
while true do
  local event, param1 = os.pullEvent();

  win.ui.render();

  if(event == "key") then
   if (param1 == 17) then
	-- Key W
	term.write("up");
   elseif (param1 == 31) then
	-- key S
	term.write("down");
   end;
  end;
end;
end;
local thread = win.nt.createThread(desktop);
thread:resume();
Found in: windows/ui/desktop.lua

Oh... who'd have know.

#27 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 04 March 2013 - 11:29 PM

Except for the name the code looks pretty solid

#28 Minesoft

  • Members
  • 25 posts
  • LocationBelarus, Mogilev

Posted 05 March 2013 - 12:07 AM

Ok I rename my os to Squartus.

#29 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 05 March 2013 - 12:16 AM

 Microsoft, on 05 March 2013 - 12:07 AM, said:

Ok I rename my os to Squartus.
echoing voice says, "The damage has been dealt!"

#30 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 05 March 2013 - 04:59 AM

 nutcase84, on 04 March 2013 - 12:10 PM, said:

Hm... I see a lawsuit coming. Your username is Microsoft and your OS is called Windows. Try Microshaft Winblows.
Damn.. And I who secretly thought of creating WinBlows8..
Me and my frnd thought of that when we had A German lesson and I thought.. WinBlows8
(Yes I know I don't pay that much attention on my German lessons, But I have a stinking teacher since I had a better one)
Since I think Windows 8 is just plain bad :P

#31 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 05 March 2013 - 07:50 AM

Locked upon request.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users