Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1747

KEYSTACK and someone else's MessageBox?

$
0
0
I want to automate pressing "Y" when my editor prompts "OK to create ..." with a message box. Here's my attempt so far, TPAD.BTM.

Code:
::TPAD.BTM
setlocal
echo on
set noexist=0

do i=1 to %#
    if not exist %[%i] set noexist=%@eval[%noexist + 1]
enddo

d:\TextPad7\TextPad.exe %$

iff %noexist GT 0 then
    do i=1 to %noexist
        keystack /w18 "Y"
    enddo
endiff

If I issue tpad.btm xx1.txt xx2.txt (both files non-existent), I see

Code:
set noexist=0
do i=1...

Read more

Viewing all articles
Browse latest Browse all 1747

Trending Articles