News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Capitalize text

Started by Magnum, February 17, 2013, 04:52:32 PM

Previous topic - Next topic

Magnum

Because of my eyesight, I need more things in all capital letters.

I found this.

I would like some way to select text by right clicking on selected text and have it capitalized.

Qeditor can do it along with some other programs, but I would like a more global method if that is possible.

Thanks.


; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

    .486
    .model flat, stdcall  ; 32 bit memory model
    option casemap :none  ; case sensitive

    .code

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

OPTION PROLOGUE:NONE
OPTION EPILOGUE:NONE

align 4

szUpper proc text:DWORD

  ; -----------------------------
  ; converts string to upper case
  ; invoke szUpper,ADDR szString
  ; -----------------------------

    mov eax, [esp+4]
    dec eax

  @@:
    add eax, 1
    cmp BYTE PTR [eax], 0
    je @F
    cmp BYTE PTR [eax], "a"
    jb @B
    cmp BYTE PTR [eax], "z"
    ja @B
    sub BYTE PTR [eax], 32
    jmp @B
  @@:

    mov eax, [esp+4]

    ret 4

szUpper endp

OPTION PROLOGUE:PrologueDef
OPTION EPILOGUE:EpilogueDef

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

end

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

jj2007

Try fat tooltips, see attachment.

Magnum

Thanks, I will study it.

Andy
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

hutch--

Ummmm, whats wrong with increasing your font sizes ?

dedndave

i went and got new glasses   :biggrin:
i told the eye doctor i wanted to see things that were 18-24 inches away - lol
(i put my hand out in front of my face and said "that's the distance i want to see")

i can still use my old glasses for driving
and, really close, i don't need any glasses
for tiny stuff, i have a set of eye-loupe's


Magnum

Quote from: hutch-- on February 18, 2013, 12:47:43 AM
Ummmm, whats wrong with increasing your font sizes ?

I messed with that, but ran into issues with text wrapping over, a lot of web pages look funny,

etc.

I capitalized the whole bookmarks.html file with qeditor but got a lot of error 404s when I went to a lot of sites.

I want to learn how to create plugins for qeditor to customize it.

Andy

Someone suggested used sed.exe and I am looking at it.

I have been rear ended about 5 times in my life, once the guy hit my Pinto station wagon at about 45 mph.

I think it messed with my eyes in addition to my back and neck.
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

Andy,
i know this isn't exactly what you are asking for, but....

there are a couple other tricks i use to reduce eye-strain, as well
during the course of a day, i do a lot of reading, as well as looking at drawings, schematics, etc

so, when i want to search the web for something, i look at pictures, rather than text
i have a bookmark for Google - as most of us do
i have another one for Google Images
go to google.com - at the top, click "Images" - and create the bookmark
it is much easier to find things by looking at pics than by doing a lot of reading
i can get about 25 or 30 pics on a page at once
whereas, with text, i may see only 8 hits or something

another trick that is handy with google is to use "site:" if you know what site you want results from
try putting this string into Google Images....

site:www.codeproject.com dialog box

MichaelW

Andy,

At least part of the problem with your eyesight is likely to be the lack of accommodation that comes with age. Accommodation, the ability to focus on objects at varying distances, starts decreasing typically in your mid forties and virtually ceases by about age 60. Now that my eyes are operating at a practically fixed focal length, because I started out with normal vision objects close to me are out of focus, forcing me to use reading glasses for close work. People who started out myopic (nearsighted), seem to retain the ability to focus on close objects, without aid. I use cheap, nonprescription reading glasses, +1.5 with full-sized lenses for computer work, and +2.5 to +3.5 for close work, and for really close work I combine two pairs.

Well Microsoft, here's another nice mess you've gotten us into.

Magnum

I can see clearly to about 1 foot without my glasses.

So, if I am not driving, I take off my glasses.

I like your idea of some magnifying glasses.

I have been having to use a 3x -> 6x magnifying glass to read the writing on packages.

I think the manufactures are using a .3 size font on their packages.

It kinda irritating when they have to squeeze in spanish too.

Andy





Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

hutch--

I have relatively normal sight for my age, at about age 50 I had to start holding reading material further away and it got worse quickly. I started using glasses for reading a few years later and these days I use a weak pair of cheapies (1.5 - 2.0) for computers and reading and a jewelers headband for any close work. I try to avoid wearing glasses all the time as it makes your eyes weaker faster and regularly go outside to get some eyesight back but depending on both the technology and price I may eventually get the eye operations done to improve my eyesight. Fortunately I have no other problem with my eyesight apart from normal aging where I have gone long sighted.