VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
control another application from vb.net Posted by gmorgulis on 15 Nov 2008 at 4:12 PM
I need to control another application from vb.net by simulating keyboard and mouse entries.
The idea is to auomatize tasks of changing prices on an e-commerce solution's control panel because I have no direct access to the database.
Can somebody help me?


Report
Re: control another application from vb.net Posted by seancampbell on 17 Nov 2008 at 7:59 AM
Sure! Look up the SendKeys command in google. Its pretty cool feature that allows you to send Keyboard commands to the processor. (so you can hit tab to go through fields and punch in numbers with it). Also, there is a command (off the top of my head I cannot recall it but if you don't come across it in your search just ask again I will find it for you) that allows you to do mouse input, so you can move your mouse cursor to a specific Pixel x Pixel coordinate and do clicking and that sort of thing.

To date I don't really know a way to acquire information from an application's objects (I am no means an expert in this field, so it doesn't mean its not doable) to check things, so doing sendkeys is pretty dependent on having the same prompts each time or ones that you can check the case of by the input values.

Hope this helps,
Sean Campbell -firesickle.com

: I need to control another application from vb.net by simulating
: keyboard and mouse entries.
: The idea is to auomatize tasks of changing prices on an e-commerce
: solution's control panel because I have no direct access to the
: database.
: Can somebody help me?
Report
Re: control another application from vb.net Posted by vbDev on 17 Nov 2008 at 11:54 PM
I made something myself for my workplace using vb6. Can't be that hard using .Net.
As for thre remote thingie. I was able to see another computer's screen in a textbox every so seconds and i was able to move the mouse around. Not using it or finished antything . Reply and I can send it to you.

HP



: : I need to control another application from vb.net by simulating
: : keyboard and mouse entries.
: : The idea is to auomatize tasks of changing prices on an e-commerce
: : solution's control panel because I have no direct access to the
: : database.
: : Can somebody help me?
:



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.