well i do ruby programming language, that is a cmd script
when gf clicked repeat until <(timer) > [10]> go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs
Offline
dmlathouse wrote:
well i do ruby programming language, that is a cmd script
when gf clicked repeat until <(timer) > [10]> go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs
It's not really, it just uses CMD as I/O. Plus, Please don't randomly put blocks in your posts.
Offline
I know you can write your own commands.
Offline
TASKLIST Displays all currently running tasks including services.
TASKKILL Kill or stop a running process or application.
Copied directly from CMD
EDIT: Makes a "CMDtaskmanager"
Last edited by DigiTechs (2012-03-24 07:29:20)
Offline
DigiTechs wrote:
Hmmm.. I'm trying to make a BATCH version of a game I know very well.. and I don't know how to use IF statements in CMD...
IF statements in Batch are either followed by a single action or have to be coupled with a GOTO statement (that points to a label).
So something like this should work:
SET test=5
IF %test%==5 GOTO hello
GOTO goodbye
:hello
echo Hey!
:goodbye
echo Bye!
________
EDIT
************
If you really want to be professional, you can use this working example:
@echo off SET /P test=Input a number from 1 to 5: IF %test%=="hi" GOTO hello echo Bye goto end :hello echo Hey :end pause
Last edited by LS97 (2012-03-26 14:25:57)
Offline
LS97 wrote:
DigiTechs wrote:
Hmmm.. I'm trying to make a BATCH version of a game I know very well.. and I don't know how to use IF statements in CMD...
IF statements in Batch are either followed by a single action or have to be coupled with a GOTO statement (that points to a label).
So something like this should work:
SET test=5
IF %test%==5 GOTO hello
GOTO goodbye
:hello
echo Hey!
:goodbye
echo Bye!
________
EDIT
************
If you really want to be professional, you can use this working example:Code:
@echo off SET /P test=Input a number from 1 to 5: IF %test%=="hi" GOTO hello echo Bye goto end :hello echo Hey :end pause
Thanks!
Offline
DigiTechs wrote:
Try this
![]()
PING localhost
(it PINGs your computer, thats what localhost means)
Also, try this (you have to be running from where cmd is, System32):
shutdown.exe
This does exactly as the exe is named![]()
You can also use that command on a network too.
Also, you can make a short-cut in someone else's "startup" folder, which is on their start menu and type this for the location
shutdown.exe -l -t 0
When the person tries to login, it will run the short-cut, which logs them off.
Offline
DigiTechs wrote:
also, Try this; (I found it recently)
help
Brings up ALL of the commands in CMD
Also, if you type "help <command>" it shows help for that command. Another way is "<command> /?"
Offline
I would make a number guessing game in batch but I am not using Windows at the moment.
Offline