|
The site did not accept sniffed traffic. Sorry, my mistake.
|
|
|
|
|
Just throwing out ideas: Can you host the web-page in a .net WebBrowser control? You can interact with DOM elements in it IIRC, and you might not need to render it. It's a brittle solution though, a change to the web site can smash the functionality.
|
|
|
|
|
Yes, I can host the web page in a web browser control, in fact it was my first approach to the problem... but this doesn't help, since the web page is a SunAwtFrame with only SunAwtDialogs and Java applets, so I have no access to buttons... they're seen purely like images.
|
|
|
|
|
IngValentini wrote: is at least possible to detect if PC monitor is powered on
You probably can because Windows needs the monitor to be powered up so it can determiine an appropriate resolution. I don't know how to go about doing this.
IngValentini wrote: detect if someone is sharing my desktop (perhaps using some kind of Windows APIs??)
Again, you probably can, and again, I don't know how you would go about doing it.
Google is your friend.
BTW, wbhen posting a question here, you have to consider that the majority of people that have any hope of answering questions are living in another timezone. You have to either learn patience, or develope your google foo to a finer art.
For what it's worth, I'd write a windows service to sit on the machine in question, and as long as the machine is on, it can be communicated with via TCP/IP or even HTTP.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Sorry, but I don't understand why you are blaming me... I already apologized for the misunderstanding. And yes, I googled before posting my question. I simply was wondering if other people could help me in some different way, with tricks known by experts. That's it.
|
|
|
|
|
The display drivers can get the EDID data from the montitor, including native resolution, without the monitor being turned on.
|
|
|
|
|
Dave Kreskowiak wrote: The display drivers can get the EDID data from the montitor, including native resolution, without the monitor being turned on.
That's what I thought as well. As long as the monitor is plugged in, it can be queried for this information, but chances are that most monitors will turn on automatically when a signal from the video adapter is sensed, so it is a moot point.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
PogoboyKramer wrote: but chances are that most monitors will turn on automatically when a signal from the video adapter is sensed
Not unless they're alreday actually powered on. They also only go "off" automatically when the computer goes into "sleep" mode.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Noted, and I stand corrected.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Just out of curiosity - what are you actually trying to do?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
The only way I can solve the problem, at this point, is to stop the app when monitor is powered on and restart it when the monitor is powered off. I've previously explained that my boss doesn't want users to see the 'bot' in action.
|
|
|
|
|
You should tell your boss not to sell functionality that he doesn't know is achievable
|
|
|
|
|
I have already told him... but unfortunately for me he doesn't understand 'no' as an answer.
|
|
|
|
|
After you've made sure the monitor is off, will you need to switch the mouse off too? And the keyboard? Because they would (probably more than the monitor) interfere with the running process?
|
|
|
|
|
Yes, you hit the point... I'm currently googling for this too. I asked for controlling the monitor because I thought this was the most difficult problem.
|
|
|
|
|
how to transmit msgs from pc to mobiles in c#.Please send me the source code for this task.
|
|
|
|
|
My vote as abuse:
- Effective Repost - Attempt to get answer quicker
- No information given about what has been tried or what the problem is: we will assume you have done nothing - read the FAQs
- Asking for source code. We are not here to do your work for you - read the FAQs
|
|
|
|
|
Repost.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
can any one send the code snippet for how to transmit msgs from pc to mobiles in c#
|
|
|
|
|
public void Main()
{
Message msg = new Message();
Mobile mobile = new Mobile();
msg.SendToMobile(mobile);
}
Now all you have to do is fill in the trivial implementation details. It would be wise also to wrap the SendToMobile call in a try/catch block.
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
Hi,
is there a way to prevent PC monitor from powering on while my .NET application (C#) is running? I need this feature because I don't want users could see what's happening on the screen during program execution. Moreover, is it possible to prevent other to share desktop by using apps like TeamViewer, etc.? And if yes, how?
Any help would be appreciated. Thank you in advance.
|
|
|
|
|
IngValentini wrote: is there a way to prevent PC monitor from powering on while my .NET application (C#) is running?
No, but you could hide your application, or try to hide the desktop. Or run under your own user-context with your own credentials.
IngValentini wrote: Moreover, is it possible to prevent other to share desktop by using apps like TeamViewer, etc.? And if yes, how?
I'd go for the firewall, and temporarily block everything.
I are Troll
|
|
|
|
|
Thank you for your answer... but my application is based on a "bot" which moves the mouse pointer, clicks in various parts of the screen, sends keyboard characters and so on. Therefore I cannot hide it... this is the problem! As regards desktop sharing, my application is based on .net remoting and sharing of a sql database over a local network, so blocking the firewall is impossibile.
|
|
|
|
|
I am a little confused by this thread.
Your subject line is "Prevent monitor from power on". That's OK, I don't think that it's possible, but it's OK.
You then say that you cannot 'hide' your app/the desktop because it moves the mouse pointer etc. etc. What's the difference? If the monitor has been prevented from powering on they wouldn't be able to see it anyway, so why not just 'hide' it in some way? Same result.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
A better analysis of the problem would be to notify the user that you are about to run a macro and not to touch the keyboard until completed. Once completed, notify the user that the macro has completed
Under no circumstances turn off the monitor. As soon as a user sees that, they will freak out.
|
|
|
|