billthecreator Posted July 14, 2008 Share Posted July 14, 2008 (edited) Prommand ComptLeave some comments, I'd like to hear of what you think, and if there is anything i can add. Thank you.Script:commandprompt.au3 Edited March 4, 2009 by billthecreator [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
Xand3r Posted July 14, 2008 Share Posted July 14, 2008 very cool muttley nice job bill i really needed a console udf some time ago but i was to lazy to make it my self Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro Link to comment Share on other sites More sharing options...
billthecreator Posted July 14, 2008 Author Share Posted July 14, 2008 Thanks!!! [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
TehWhale Posted July 14, 2008 Share Posted July 14, 2008 (edited) It'd be nicer if the writer was a little bigger, and able to use the command 'cd' in the actual CMD. As in, Change Directory, to change to that directory, and if it's windows, change to windows directory, etc! Thanks mucho! It'd be cool to make a compiled version. So you don't have to download the extras muttley Edit: Nevermind, CTRL + + increases size Edited July 14, 2008 by Alienware Link to comment Share on other sites More sharing options...
billthecreator Posted July 22, 2008 Author Share Posted July 22, 2008 Wow, i did it. You can now use the CD and DIR commands. it was hard work, but i got it. Thanks all for all your downloads. [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
DexterMorgan Posted July 22, 2008 Share Posted July 22, 2008 This is crazy muttley Really good job I love it ! code Link to comment Share on other sites More sharing options...
NELyon Posted July 22, 2008 Share Posted July 22, 2008 I like it, but could you add the ability to run programs in directories specified in the PATH? The way it is right now, it must be in the current directory. Link to comment Share on other sites More sharing options...
martin Posted July 23, 2008 Share Posted July 23, 2008 Some good features but also a lot of problems.I had to comment out these lines to stop errors;$aOSInfo[$i][12] = $objItem.DataExecutionPrevention_32BitApplications ;$aOSInfo[$i][13] = $objItem.DataExecutionPrevention_Available ;$aOSInfo[$i][14] = $objItem.DataExecutionPrevention_Drivers ;$aOSInfo[$i][15] = $objItem.DataExecutionPrevention_SupportPolicyThe drive is assumed to be C: even though it imight not be and it would be easy to find the current drive.The line$hC = FileGetTime("C:")does not return an array so the next line fails, (and so DIR doesn't work).No command I typed would run any programs even though they were in the folder given by the prompt.CD\ doesn't work for me.Typing C: doesn't work, but typing cd.. untill you get to the route folder suddenly switches to C: even though before that it was D:\somefolder, and then I can't get back to D:If I used run to get the run prompt I couldn't see how to get back to the initial command prompt.Not an "enhanced user experience" I'm afraid. muttley Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
crzftx Posted July 23, 2008 Share Posted July 23, 2008 $size is on line 49, for all those people with resolutions above 1024x768 muttley Otherwise a great mirror of cmd. I can't figure out "cd"... I tried: C:\ C: C:\Windows Windows C:\Windows\ Windows\ Can I only pick a directory within the current directory? Lastly, it'd be nice if pressing UP brought up the previous entry. Link to comment Share on other sites More sharing options...
TehWhale Posted July 23, 2008 Share Posted July 23, 2008 $size is on line 49, for all those people with resolutions above 1024x768 muttley Otherwise a great mirror of cmd. I can't figure out "cd"... I tried: C:\ C: C:\Windows Windows C:\Windows\ Windows\ Can I only pick a directory within the current directory? Lastly, it'd be nice if pressing UP brought up the previous entry.I cannot get the cd to work either! Link to comment Share on other sites More sharing options...
billthecreator Posted July 23, 2008 Author Share Posted July 23, 2008 yes, so far its a directory within the directory. and ive tried to do the up down thing. but ill work on them. this isnt an easy script... maybe you can help me help you, you know? [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
billthecreator Posted July 23, 2008 Author Share Posted July 23, 2008 to change font, press ctrl+f and sometimes the font window is hidden. but you can change the font size and name [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
billthecreator Posted July 24, 2008 Author Share Posted July 24, 2008 its there. its CLEAR [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
sensalim Posted July 24, 2008 Share Posted July 24, 2008 When I type "dir" I get error: Subscript used with non-Array variable Link to comment Share on other sites More sharing options...
sensalim Posted July 24, 2008 Share Posted July 24, 2008 its there. its CLEARWhy not cls? It's cls not clear... in ms-dos anyway. Link to comment Share on other sites More sharing options...
billthecreator Posted July 24, 2008 Author Share Posted July 24, 2008 that only happens when i try to view hidden folders. i have no idea how to fix that. sorry, try it with another directory... maybe it'll work [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
billthecreator Posted July 24, 2008 Author Share Posted July 24, 2008 Why not cls? It's cls not clear... in ms-dos anyway.cause thats what i have it as. if you want to change it, go to line: 105 and 1054 [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
WeMartiansAreFriendly Posted July 24, 2008 Share Posted July 24, 2008 Well congrats. This is awesome, I hope you don't limit this to command prompt functions, this has a whole world of new features. Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
billthecreator Posted July 24, 2008 Author Share Posted July 24, 2008 thanks, im having the hardest time trying to figure out how to call the up down func to recall used commands [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
Xand3r Posted July 24, 2008 Share Posted July 24, 2008 (edited) Here's something from an older program of mine i used it to calculate paths likec:\windows\..\Documents and Settings\..\Program Files\or if the path is relative .... cd ..\whateva\whateva2If _isfolder($string[2]) Or _isfolder($udir[$z]&"\"&$string[2]) Then If StringRegExp($string[2],"(?i)[a-z]:") Then;if path is absolute Local $fp = FileGetLongName($string[2],1) Else;path is relative Local $fp = FileGetLongName($udir[$z]&"\"&$string[2]) EndIf $fp=StringRegExpReplace($fp,'(?i)\\([^\\])+\\\.\.',"");replace \..\ _rdWrite($rd,"changed dir to: "&$fp,1) $udir[$z]=FileGetLongName($fp) Else _rdWrite($rd,"Folder does not exist or it's not a folder!",1) EndIf Func _isfolder($file) $attrib=FileGetAttrib($file) If StringInStr($attrib,"D") Then Return 1 Return 0 EndFuncsome explanations ... $udir[$z] was the active directory of the current user cause the app is multi user and $string[2] was the path to cd to ([0]=2,[1]=cd,[2]=path )here's the full script if you want to have a better look through it muttley oh and btw i wanted to do that history thing too but i wanted to make it serversite and i was to lazy to finish it #513504my approach for the command history was .. write commands to a file and remember the line of the file u are at ... when u push uparrow or downarrow serve the line of the file that is -1 or +1 row in the file Edited July 24, 2008 by TheMadman Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now