flat assembler
Message board for the users of flat assembler.

Index > Windows > change title in windows box

Author
Thread Post new topic Reply to topic
windwakr



Joined: 30 Jun 2004
Posts: 827
Location: Michigan, USA
windwakr
how do you change the title of the dos window thingy so it doesnt say the program name? (no this does not belong in windows....i think)
I saw some code but I cant get it to work through copy and paste (runs in fasm...originally for tasm code by Ed pizzi at http://pizzi.cjb.net/ )
Code:
org 100h
jmp overdata
DispString db "MessWin.com - Messes around with DOS-box windows commands.",0dh,0ah
           db " Run this from windows in a Dos box, windowed.",0dh,0ah,"$"
NameString db "Welcome to Messwin.com - press a key",0h
ClipString db "I can fool with the clipboard from Dos"
NameString2 db "Check the clipboard - hit a key",0h
NameString3 db "Done. (press any key to exit)",0h

overdata:
mov ax,cs
mov ds,ax
mov es,ax

mov dx,DispString
mov ah,09
int 21h

xor dx,dx
mov ax,0168Eh
mov di,NameString
int 02Fh

xor ax,ax
int 16h

mov ax,1701h
int 2fh
test ax,ax
jz noclipboard

push cs
pop es
mov bx,ClipString
xor si,si
mov cx,026h
xor dx,dx
inc dl
mov ax,01703h
int 02Fh

mov ax,01708h
int 02Fh

mov ax,0168Eh
mov di,NameString2
int 02Fh

xor ax,ax
int 16h

noclipboard:

mov ax,0168Eh
mov di,NameString3
int 02Fh

xor ax,ax
int 16h

mov ax,04C00h
int 21h
    

_________________
----> * <---- My star, won HERE
Post 30 Oct 2004, 18:36
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.