|
Go for wild cards.. ie *@*.??? meaning "anything@anything.three letters"..
For the domain, you can ping it and see if it exists, that's your best bet.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Muammar© wrote: ie *@*.??? meaning "anything@anything.three letters"
abc@company.co.uk
|
|
|
|
|
Hi!
i m developing web portal in C# asp.net web application. i want to display image in hyperlink control rather than text. i can do it by using hyperlink's property that is 'imageurl', but problem is that in hyperlink,image displays in actual size not in that size which i have given in hyperlink height and width property.
can u plz tell me how i can restrict size of hyperlink upto my own requirment i mean i want to display all the images in hyperlink of size 100/100,even if image actual size is 500/500. just as i can do in image control.No matter how big image is but it always displays in that fixed size which i give to it.
Thanx
|
|
|
|
|
EEmaan wrote: i m developing web portal in C# asp.net web application.
People in the asp.net forum can be of more help.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
When I used theis code to copy file works fine.
File.Copy("w:\\DDBE\\Models.xml", "c:\\MODELS\\Models.xml");
How can I save the file with date,time or any other suggestion
mode1245
or
model120pm
or
anything that does not exist so won't overwrite prevoius file
using VS2003, C#
thanx in adcance
|
|
|
|
|
Use File.Exists. I usually just build a loop and append a number to the filename, until I get one that isn't there already
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
What would you recommend a beginner for some good C# books to learn from? I've checked Deitel, SAMs Teach Yourself, and O'reilly's books but not sure if their great. Suggestions? Thx in advance.
|
|
|
|
|
Make sure you get a C# 2.0 book, if you're using 2.0. O'Reilly books are always good. Sams books are always a great place for a beginner to start.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Complete C# from Sybex
But as Christian said, make sure you get C# 2.0
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi
I need to upload chunk to proxy server using Http Post multipart.
have two parameters
ChunkId - datatype long
ChunkBody- binary
Please advise how to send this two parameters thru HttpWebRequest..
Thanks in advance
|
|
|
|
|
|
Hello Gentlemen,
I have a less elementary question this time.
I have application that runs both full screen and in a window. Text appears on the screen. I want to take each frame of this application or perhaps a new snap shot every few seconds, and then OCR the frame to extract the text. I'd like to do this in c# but I do not know of a way to get the handler for this application and extract and store it's pixel information. This is probably going to be really resource intensive and I'd like to keep it as fast as possible.
What i'm basically looking for is a starting point. How can I get that pixel data from the external application into a format I can edit. I only need to monitor a certain section of the screen of this application. Is there a FCL class that I can look at to get me on my way?
Thank you.
|
|
|
|
|
If you're in C# 2.0, then you can use a method on the Graphics object to copy data from the screen to a bitmap. THe OCR stuff is a little more difficult. If you know what the app is and can get the window handle of the controls displaying text, GetWindowText is probably a better option ( that's a C API ).
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The application i'm trying to get the text out of is a video game that can run in full screen or in window. Most likely the test being displayed is through some kind of proprietary direct x game engine that I have no control over. The only thing I can do is monitor the games' frames and pick out of them the information I want to perform OCR on. I like the idea about getting the window handle of the app. If I get the window handle of the app, how can I gain access to it's pixel data, or does that just intrinsiclly come with it? I'm a bit confused when you mention the "controls displaying text" because, as far as I know there are no controls (at least as far as I know of their definition goes in C#, ex, button, textbox, etc. I could easily be confused about the definition of controls, so don't rule that out.
I was hoping to avoid having to copy data from the screen to bitmap as that could take a very very large amount of data and cpu cycles if i'm doing that 30 frames per second. But the nice thing is that the text isn't constantly altering data and just kind of sits there until it scrolls away.I probably just need to capture 1 frame every second, but will the OCR (which can be pretty heavy itself) be able to compute and recognize that text before the next frame is pulled? It probably doesn't even need to be that quick as I could create an ocr buffer that checks to see if it already got that text and I can put a time in milliseconds next to that text to rule out the OCR not reporting duplicates.
This is just a hobby project by the way, ambitious as it may sound.
|
|
|
|
|
There's a problem with this. You can probably get the image from the screen, but only probably. There's no guarantee that you will be able to do this. Since this is a game, the screen updates will be happening VERY rapidly. This causes you two problems.
Since your talking about scrolling text, there is an issue of shearing. This is when you start to grab a shot of the area of the screen and it changes DURING the grab. This can make the OCR part fail quite easily.
The second problem IS the OCR part. This will be a very CPU heavy process that can hog the CPU and slow down the game performance. You definitly won't be getting this at 30 frames a second. Frame a second will be far more likely and this will leave more CPU time to the game itself.
|
|
|
|
|
I'm glad you brought shearing to my attention, i was not aware of it.
As far as the OCR goes, I would have a very fast machine dedicated to doing this one function of monitoring text.
I do not need to get every single frame. The text is only entered by humans and in a sense can be logged graphically. I could easily limit things to grabbing 1 frame every 60 or even every 120.
What I do need to be able to do is to get past the shearing.
The only thing i can think of to get past this is to somehow preempt the rendering pipeline of the graphics card and capture a complete frame buffer. If i capture a complete buffer then I'm pretty much assured that its not half of the new frame overwriting half of the old frame. If the screen was updateing during that z-buffer flip then i can just have the OCR drop everything that it doesn't pick up. If one line of the text has an unrecognizeable character, I just drop the posting of that line and wait until the text scroll animation has been completed. Remember, none of the frames have to actually be displayed to screen, which saves some cycles. It just has to be captured into a readable format. Hopefully there is another way without haveing to use the screen output as a proxy to the z-buffer.
Anyone know how I can get the z-buffer information? Is there an API method that lets me pipe the graphic output of the game into another app for processing?
|
|
|
|
|
Kataric wrote: Is there an API method that lets me pipe the graphic output of the game into another app for processing?
Is there an API to do this?? No.
Kataric wrote: The only thing i can think of to get past this is to somehow preempt the rendering pipeline of the graphics card and capture a complete frame buffer
Good Luck with that. The only way you could even come close to doing this is if you injected code into the game process. This is something that cannot be done with managed code. You'll have to write this part in unmanaged C++ to support the exports and static linking required to do DLL injection.
|
|
|
|
|
I'd like to use c# by the way to do this. If no managed code can handle it, I'll go back to c++.
|
|
|
|
|
I have added a large number of jpg files to my project's resource file of a windows application. How do I programmatically get to these images in C# code. I need a code sample please.
joe
|
|
|
|
|
Your_Name_Space.Properties.Resources.Your_Resourse;
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
I am having issues with the NewWindow event of the WebBrowser control in .NET 2.0. If I click on any links with a target of _blank I am expecting it to open my new form with the browser control in it. What happens is that it opens my form and then Internet Explorer 7 on top of that with the contents I was expecting to appear in my form. Is there a way for me to stop it from opening IE? Has anyone had this issue before?
-Mike S.
|
|
|
|
|
You can suppress popups, but any popups will open IE ( and IE is what you've got open all along, it has no idea it's in your form )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
That is still confusing to me. It is not really your typical popup because it was a link that I clicked on. I wasn't something opened by script code in the HTML code. So if I am controlling the event and telling it to open a new form with a browser control in it why would it override that and open a second window on top of that? I did see in my Google searches that people referenced something called NewWindow2 and NewWindow3 but that doesn't seem to be available for trapping under the web browser control.
|
|
|
|