About   Users   Help
Users & Guests Online
On Page: 1
Directory: 2 & 73
Entire Site: 6 & 1109
Page Staff: tgags123, pokemon x, tgags123, supercool22, SonicOlmstead, SonicOlmstead, Barathemos, Furret, geeogree,
07-16-26 12:16 AM

Forum Links

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

Thread Information

Views
562
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: 350
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: 901468
CP: 1766.7
VIZ: 95653

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: 3082 days
Last Active: 2256 days

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

Juliet
Level: 152


POSTS: 6684/6750
POST EXP: 348455
LVL EXP: 43933402
CP: 10738.8
VIZ: 1380871

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: 2382 days
Last Active: 388 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: 901468
CP: 1766.7
VIZ: 95653

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: 3082 days
Last Active: 2256 days

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

Juliet
Level: 152


POSTS: 6687/6750
POST EXP: 348455
LVL EXP: 43933402
CP: 10738.8
VIZ: 1380871

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: 2382 days
Last Active: 388 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.

×