Topics - CodeTRUCKER [ switch to compact view ]

Pages: [1] 2 3 4 5 6 ... 27next
1
Hello,

How do I read in text as string instead of an integer?

Code: Python [Select]
  1. start = content.find("SimVars.0")
  2. latstart = content.find("Latitude=")
  3. latend = content.find("Latitude=",latstart+1)
  4. longstart = content.find("Longitude=",start)
  5. longend = content.find(",",longstart)

These lines are supposed to read in data as text, but all the values I get are these numbers (respectively)...

5628
5639
-1
5664
8795

The raw data from text file...

[SimVars.0]
Latitude=N21° 20' 47.36"
Longitude=W157° 27' 23.20"

What is wrong? 

Thanks.
Calvin

2
Hello,

I do not know if this is the best place to post, but I have to start somewhere. @Mods - please move it to a better home if necessary.

Like the subject says, I am looking for a utility that I can attach on top of or lay on top of Windows 10 "windows."

I normally run a dark themed computer environment both on the screen and in my room due to a strong light sensitivity. I have about 85% of my computer visuals darkened, but the last 15% has been stubborn. As a result I am seeking a filter which will darken those blinding assaults which melt my eyes. LOL

I have some apps which require a natural color environment, so using the native Magnifier to globally reverse screen color values is not an option. I have tried.

Thoughts, ideas, links?

Thanks.   

3
Hi,

First off, I'm not even sure this utility request would be qualified as a "Coding Snack," but hey, what do I know? So, here's hoping! :)

There are numerous "Find In Page Search" (FIPS) utilities available. My need is for a FIPS which will find all character strings, but instead of searching for a single string the "Find All In Page Search" (FAIPS) would need to find all items from a list on the page. Here are some specifics...
    [*] The purpose is for research. Essentially, the researcher would populate an "Always On Top," floating and resize-able "word list" box to take to candidate websites and execute the search which would locate any/all hits.
    [*] A "No Hits On Page" pop-up message box if no words from the list are found.
    [*] The word list would need to have at least 100 user-entered words to search, but for the prototype we can use 10 words to test the function. The candidate resources are very long.
    [*] All hits would need to have persistent background highlights.
    [*] Highlight color would be user-configurable. Different websites use different colors.
    [*] "Select All" button to highlight all hits for all words in the word list.
    [*] If a word in the list were selected each hit for that word would be the only hit(s) highlighted.
    [*] "Find First" button to locate the first hit on the website.
    [*] "Find Next" button to locate the next hit.
    [/list]

    The effect would be like doing a word search once instead of a 100 different "Find In Page" word searches. I have no idea how feasible it would be to make this work and I would understand why no one would want to tackle it, but I thought I would ask anyway.

    I will be trying to make this work myself, but the outcome is dubious. I used to be a fair programmer, but nowadays, eh not so much. I have looked into AHK and have submitted a request for help, but there are some pretty sharp folks on DC too!

    I am thinking the first thing I need to do is to make a working copy of the webpage itself. It is the only way I can think of to write additional HTML which I believe the highlighting would need. I also suspect there would have to be a recursive function for each word searched from the list which seems like each successive search would have to re-write the HTML before going to the next word in the list. If there is an easier way I am not aware of it. Anyway, any assistance would be appreciated.

    Please let me know if I can be of any help clarifying, etc.

    4
    Post New Requests Here / Idea: Global Word Counter (GWC)
    « on: October 08, 2019, 02:01 PM »
    Hello,

    I am a writer who works on many projects in parallel (books, novels, white papers, etc.). As a writer it is important to have a way to keep one's motivation and progress front and center. I have found numerous word counters and writing analytics on the Internet, but they only work online. Some have to have the text copy/pasted to use. The other present limitation is my writing app has word counters, but only for the current project. When I write I have several projects open and "bounce" from one window to another as my writing juices direct. I know this is unconventional, but it is how I work best. So, I need an app which can be...

    Here are the needs in order of priority...

    Version 1 (essential features)
    • Small and concise as possible, but with no text or labels smaller than 14 point font. I have vision challenges.
    • Used offline on my Windows 10 laptop. It would be something like a keylogger, but would not record any keystrokes only the fact a key was pressed and increment a counter.
    • Keystroke count incrementer.
    • User-configurable keystrokes per word entry box.
    • Word counter with reset.
    • Word goal entry box with a "Words to Go" readout.
    • Pause feature to prevent counting typing out an email, grocery lists, etc.
       

    Version 2 (if a developer wishes to enhance the GWC further in no particular order, but all features would be nice).
    • A meter bar or "speedometer" to see progress visually.
    • A user-configurable minute timer with visual and audible alert to remind the writer to take a break from looking at the screen.
    • Optional "Always on Top" switch.


    Gratefully,
    Calvin

    5
    I am toying around with giving the old Microsoft Train Simulator (MSTS) new life by manipulating some functions with an AutoHotKey script. Does anyone know of a list of these MSTS vars and where I can find it?

    Thanks.

    Pages: [1] 2 3 4 5 6 ... 27next
    Go to full version