AutoHotkey Community

It is currently May 27th, 2012, 4:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: March 4th, 2010, 11:00 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Because AutoHotkey is better than Ruby.

Code:
DllCall("AllocConsole")
DllCall("SetConsoleTitle", "Str", uname := "ahkunix 1.0")
FileAppend, You have no mail., con
While l != "halt"
{
   FileAppend, `n$%A_Space%, con
   FileReadLine, l, con, 1
   FileAppend, % l == "uname" ? uname : "command not found", con
}

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 4th, 2010, 11:10 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
My little modification to this funny script:
Code:
DllCall("AllocConsole")
DllCall("SetConsoleTitle", "str", uname := "ahkunix 1.1`n")
FileAppend, You have no mail.`n`n, con
while l != "halt"
{
   FileAppend, %A_UserName%@%A_ComputerName% ~$%A_Space%, con
   FileReadLine, l, con, 1
   FileAppend, % l == "uname" ? uname : ((l != "halt" && l != "") ? "command not found`n" : ""), con
}

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 5th, 2010, 1:28 am 
LOL, no quit or exit?...just halt?


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group