Reading Strings from different programs - c#

I'd like to actually get some strings out of other programs and would like to display them on my program. On the picture, you'll be able to see it. If something is unclear, tell me. I'd like an advice on how to start on this - How I could get the data to my Form.
I've considered about finding out its address from something like Cheat Engine, but I'm not sure, whether that works and which address it might be exactly and stuff. Thanks in advance!

This did it: I've opened up Cheat Engine and tried to find the Address of my Level. I guess it was a 4 Byte value, so I searched for my Current Level. Each time I leveled up, I searched for a changed value. Only some addresses were left => Found the Address => Made a pointer scan on the address and found out the base address.
Afterwards I used "ReadProcessMemory" to read the Address its value. I put this in a timerloop which allowed me to refresh the level.
Hope this helps you guys.

Related

How to use Google.Apis.Sheets.v4.Data.FindReplaceRequest?

I do not know if you can help or not, but I will try)
I am writing a C # program that works with the Google Sheets API. I ran into a problem, namely: unfortunately very little information on working with the Google API :(
Now, I need examples of how the Google.Apis.Sheets.v4.Data.FindReplaceRequest request works, unless of course this is what I need.
The user enters data in the text field, after which the program must send a request to Google Sheets on Google Drive, find all the cells in which the entered data is located and delete or simply erase the lines with the coincidence of this data. I understand that FindReplaceRequest works best for this, but I can’t find an example of working with it, and in the directory at https://developers.google.com/resources/api-libraries/documentation/sheets/v4/csharp/latest/index.html very little information about this :(
I would be very grateful if you help solve this problem :)
Have a nice day!:)

Taking input in c sharp program from another screen

I have to develop a data base for calling center, they have a software provided by the company. when ever they get a call the number of caller is shown in a minor screen inside that calling program.
I have to take that caller ID as input for my database in order to save and search the address and other information about user.
A friend told me about Auto IT that you can take this type of input but i want to create it in c #, i dont even know what to search for it. can someone point me to right direction ? or share some example
Edit: suggestion given by one as i have to use the image processing. Thats the only way to solve this problem. No other solution yet.
What about the auto IT, can we do it easily from that ? i really dont want to get in to image processing.

How to read and write data from a LPT in C#?

I did some research around, some of the answers suggest using inpout32.dll, I tried it in C#, it always return 255 whenever I read from any address. sample code.
All I want to do is to read from 0x379 when my printer is power on and off, see if I can get two sets of different data, hence I can tell the printer is on or off!(I don't know if this will work, let me know if u know it won't work!)
If u happens to know any other way around to accomplish the task, please share it with me.

Email address format

I have an email address in a sql table in the following format:
clerk#weavers.org.uk
How can I convert it to the proper format?
I see it displays perfectly on a webpage but anywhere else it's like this. I am assuming it's codes for alphabets etc. (html) which get converted, but how do I update my table with the proper emails?
Thank you.
Take a look at the HttpServerUtility.HtmlDecode method, you should be able to write a loop to process all your data or write an extended stored procedure and call it from SQL.
If it's a small amount - you can use a tool like this: http://www.web2generators.com/html/entities
You can use the information found at http://www.lookuptables.com/ to write code to decode it yourself, or like Tony has suggested; use HttpServerUtility.HtmlDecode
I don't know of any good way to do this in with SQL - I'd write a small app to process the data.
If you're looking for a one-time fix for this one record: As you say it displays correctly on the screen, then cool: Display it on whatever screen that is, then copy and paste that value back into a database update, either a screen or a one-shot query.
If you're software is putting these escapes into the email address before saving to the database, I'd say: Don't. This is a bad idea, because then you can't search it or manipulate it. Store all values in "real" text. Do your HTML escaping when you are laying out a screen. Actually in ASP.NET I think most of the display functions do this automatically; some have flags to tell it to NOT HTML escape.
Addendum: I see Tony's answer assumes all your email addresses look like this. Is this correct, or is it just one? If it's all, then my suggestion for fixing one is impractical, you do indeed want to write a little program that loops through the db and fixes them all with HtmlDecode.

Help with a dictionary+ application?

I am thinking of making a dictionary application with some changes to suit my needs.But the problem is that I can't figure out how to get the word-list with their meanings.Any idea what I can do?
I found a word-list but it just had words not their meanings.
Edit- I am unable to add a comment.
Though I found this:
http://wordnet.princeton.edu/wordnet/download/
I am trying to see if I can use it in my app.
it's a bit generic question. Are you thinking to store all words in a database with their meanings? For example I imagine you could have two tables ( at least ), word and meaning, meaning has a FK to word so you could have multiple meanings for the same word.
is this ok as starting point?
You basically should search for an open dictionary (check the license carefully!) you can access through an API or download a set of data to use it offline.
This sites should be helpful for a start:
Wiktionary
Open Source Dictionary Downloads

Categories