About   Users   Help
Users & Guests Online
On Page: 1
Directory: 345
Entire Site: 2 & 2544
Page Staff: tgags123, pokemon x, tgags123, supercool22, SonicOlmstead, SonicOlmstead, Barathemos, Furret, geeogree,
11-28-26 07:25 AM

Forum Links

Batch Help
Do you know Batch? If so, can you help me?
Related Threads
Coming Soon

Thread Information

Views
643
Replies
3
Rating
1
Status
CLOSED
Thread
Creator
Fancdew
06-12-16 01:47 PM
Last
Post
Juliet
06-14-16 02:20 PM
Additional Thread Details
Views: 393
Today: 0
Users: 1 unique

Thread Actions

Thread Closed
New Thread
New Poll
Order
 

Batch Help

 

06-12-16 01:47 PM
Fancdew is Offline
| ID: 1276025 | 67 Words

Fancdew
Chart
Level: 50


POSTS: 265/527
POST EXP: 17036
LVL EXP: 912389
CP: 1769.7
VIZ: 95953

Likes: 0  Dislikes: 0
I have a code that pretty much goes like this:

echo Holk Hogen: Okay, I'm going to throw a punch at you. Try to block it within 10 seconds using B.
pause
cls
echo Holk Hogen: Okay, now!
SET /T timeout 10=
if %10% == B goto tf3
if else goto tf3f



I want to be able to have the user press B within ten seconds. Help?
I have a code that pretty much goes like this:

echo Holk Hogen: Okay, I'm going to throw a punch at you. Try to block it within 10 seconds using B.
pause
cls
echo Holk Hogen: Okay, now!
SET /T timeout 10=
if %10% == B goto tf3
if else goto tf3f



I want to be able to have the user press B within ten seconds. Help?


Layouts by Sidewinder
Member
TECH WIZAAAAARD


Affected by 'Laziness Syndrome'

Registered: 05-03-11
Last Post: 3218 days
Last Active: 2391 days

06-12-16 04:11 PM
Juliet is Offline
| ID: 1276060 | 50 Words

Juliet
Level: 153


POSTS: 6684/6750
POST EXP: 348455
LVL EXP: 44404584
CP: 10740.6
VIZ: 1381046

Likes: 1  Dislikes: 0
Hm... I'm not well-versed on batch... but maybe the command you're looking for is "timeout /t 10"?

On a different note: Why use batch anyway...? Object-oriented languages like Python and Java should be easier for this type of task (not to mention they have more tutorials floating around the web).

Juliet's Post

Hm... I'm not well-versed on batch... but maybe the command you're looking for is "timeout /t 10"?

On a different note: Why use batch anyway...? Object-oriented languages like Python and Java should be easier for this type of task (not to mention they have more tutorials floating around the web).

--------------------
Where words fail, music speaks. -HC Andersen
Vizzed Elite

3rd Place in the July 2009 VCS Competition!




Affected by 'Laziness Syndrome'

Registered: 05-10-09
Location: Manila, PH (Asia)
Last Post: 2517 days
Last Active: 117 days

Post Rating: 1   Liked By: no 8120,

06-14-16 12:55 PM
Fancdew is Offline
| ID: 1276437 | 6 Words

Fancdew
Chart
Level: 50


POSTS: 266/527
POST EXP: 17036
LVL EXP: 912389
CP: 1769.7
VIZ: 95953

Likes: 0  Dislikes: 0
Juliet : What would the variable be?
Juliet : What would the variable be?


Layouts by Sidewinder
Member
TECH WIZAAAAARD


Affected by 'Laziness Syndrome'

Registered: 05-03-11
Last Post: 3218 days
Last Active: 2391 days

06-14-16 02:20 PM
Juliet is Offline
| ID: 1276447 | 53 Words

Juliet
Level: 153


POSTS: 6687/6750
POST EXP: 348455
LVL EXP: 44404584
CP: 10740.6
VIZ: 1381046

Likes: 0  Dislikes: 0
There would be no variable. You can't specify a specific key input when using the timeout command, all it does is wait for specific time until a key press has been detected, or if declared with /nobreak, it will pause the system despite having multiple key presses. You'd need the choice command instead.

Juliet's Post

There would be no variable. You can't specify a specific key input when using the timeout command, all it does is wait for specific time until a key press has been detected, or if declared with /nobreak, it will pause the system despite having multiple key presses. You'd need the choice command instead.

--------------------
Where words fail, music speaks. -HC Andersen
Vizzed Elite

3rd Place in the July 2009 VCS Competition!




Affected by 'Laziness Syndrome'

Registered: 05-10-09
Location: Manila, PH (Asia)
Last Post: 2517 days
Last Active: 117 days

Page Comments

Dove4JS - 12-12-20 05:26 AM
no image
joldboy70 - 07-10-20 11:13 AM
test
joldboy70 - 07-10-20 11:12 AM
test
savage23157 - 04-08-20 01:33 PM
Hi im new vizzed
zokuza - 11-18-19 09:08 AM
final got playstaion games unlock yes baby digimon world here i com
yoshirulez! - 02-10-17 08:45 PM
MAY MAYS
yoshirulez! - 02-10-17 08:45 PM
maymays
yoshirulez! - 02-07-17 11:13 PM
OwO what's this?
yoshirulez! - 02-07-17 11:13 PM
OwO what's this?
yoshirulez! - 02-07-17 11:13 PM
OwO what's this?

Adblocker detected!

Vizzed.com is very expensive to keep alive! The Ads pay for the servers.

Vizzed has 3 TB worth of games and 1 TB worth of music.  This site is free to use but the ads barely pay for the monthly server fees.  If too many more people use ad block, the site cannot survive.

We prioritize the community over the site profits.  This is why we avoid using annoying (but high paying) ads like most other sites which include popups, obnoxious sounds and animations, malware, and other forms of intrusiveness.  We'll do our part to never resort to these types of ads, please do your part by helping support this site by adding Vizzed.com to your ad blocking whitelist.

×