On Exit Do Command

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
Stergioss
Posts: 5
Joined: 12 Feb 2010 10:33

Re: On Exit Do Command

#16 Post by Stergioss » 12 Feb 2010 19:04

No really now do it!
You will get a Cookie(Yum!) :mrgreen:
I would love to see u 2 in the same forum!

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: On Exit Do Command

#17 Post by aGerman » 13 Feb 2010 07:36

Stergioss wrote:But still with some more research . . .!

No way using native batch.

Stergioss wrote:1)Bist du auf deutchland?

Ja, ich bin aus Deutschland ...
... that's not a secret. Have a look (to my username and) the location line under my username.

Stergioss wrote:2)Come to a good forum i am visiting ...

If I would find some interesting postings ...
You'll notice it. :wink:

Regards
aGerman

Stergioss
Posts: 5
Joined: 12 Feb 2010 10:33

Re: On Exit Do Command

#18 Post by Stergioss » 13 Feb 2010 10:23

aGerman wrote:
Stergioss wrote:
1)Bist du auf deutchland?

Ja, ich bin aus Deutschland ...
... that's not a secret. Have a look (to my username and) the location line under my username.


Well i went to germany for 3 month!
Awesome country!!

aGerman wrote:If I would find some interesting postings ...
You'll notice it. :wink:


Just post a topic with your most advanced batch code and then you will see a reply from a guy called "Tan" . . .

jeb
Expert
Posts: 1055
Joined: 30 Aug 2007 08:05
Location: Germany, Bochum

Re: On Exit Do Command

#19 Post by jeb » 20 Feb 2010 10:11

Hello,

I suppose you get your money per line :wink:

Code: Select all

@ECHO OFF
TITLE Keyboard Simulator
MODE CON cols=41 lines=5

:loop
call :ShowKeyboard %ERRORLEVEL%
CHOICE /C 1234567890qwertyuiopasdfghjklzxcvbnm /N > nul
goto :loop

::::::::::::
:ShowKeyboard <mark>   Shows a standard english keyboard
:: <mark>               Marks the key with the index <mark>
SETLOCAL
for /L %%i IN (1,1,36) DO (
  set "b%%i= "
  set "e%%i= "
)
set b%1=[
rem set /a idx=%1 + 1
set e%1=]
CLS
ECHO\%b1%1%e1%%b2%2%e2%%b3%3%e3%%b4%4%e4%%b5%5%e5%%b6%6%e6%%b7%7%e7%%b8%8%e8%%b9%9%e9%%b10%0%e10%
ECHO\ %b11%Q%e11%%b12%W%e12%%b13%E%e13%%b14%R%e14%%b15%T%e15%%b16%Y%e16%%b17%U%e17%%b18%I%e18%%b19%O%e19%%b20%P%e20%
ECHO\  %b21%A%e21%%b22%S%e22%%b23%D%e23%%b24%F%e24%%b25%G%e25%%b26%H%e26%%b27%J%e27%%b28%K%e28%%b29%L%e29%
ECHO\   %b30%Z%e30%%b31%X%e31%%b32%C%e32%%b33%V%e33%%b34%B%e34%%b35%N%e35%%b36%M%e36%   key=%1
ENDLOCAL
GOTO :eof


Jan Erik (also from good old germany)

Post Reply