Click here to Skip to main content
15,899,825 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

hi friends
i am planning to prepare 1 .net application to automate the work
i.e
When we run our application it must be minimized and work should start..
What should happen is--
it should open specified software for ex - internet explore and then it must paste the word in previously specifed position(ex typing www.Facebook.com in url bar) then enter
that's it
Plz specify some links or sample codes for mouse and keyboard working events....
Thanks in advance :)

with regards,
Roshan
Posted

It is seems like you can use the class Interaction and the function of "shell"

VB.NET DEMO CODE
VB
Dim procID As Integer
        ' Run I.E.
        procID = Shell("the path of your exe file", AppWinStyle.NormalFocus)


you can add the url after the string of you exe file with a blank for example:
..\iexplorer.exe www.facebook.com

the AppWinStyle is a enum type include such styles
VB
 AppWinStyle.Hide

 AppWinStyle.NormalFocus

 AppWinStyle.MinimizedFocus

 AppWinStyle.MaximizedFocus

 AppWinStyle.NormalNoFocus

 AppWinStyle.MinimizedNoFocus


the return value is the process ID of exist exe file.
 
Share this answer
 
Yes Man U can Achieve this By Using Windows Application or ConsoleApplication

try This Add name Space using System.Diagnostics; Try with Console Application First
1)If you Want You Can Set date And Time So as to perform This Happen Automatically .

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{

main();
}

public static void main()
{
Process.Start("iexplore.exe", "http://www.google.com");

}

}
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900