Interact With Another Program?
Feb 18, 2009[URL]
I am trying to send keys to another program but i dont know how to write the code to do it and would i have to add a path to the other programs .exe?
[URL]
I am trying to send keys to another program but i dont know how to write the code to do it and would i have to add a path to the other programs .exe?
How I can make my program to interact with all files that associates with, for example when u install adobe reader all pdf file get the icon of adobe and then are opened using them.
View 2 RepliesHave a Windows app that needs to interact with a stand alone program that is accessed using cmd.exe. From Windows app, I can execute cmd.exe but cannot interact with it. Tried SendKeys, but this only sends one key at a time (sometimes more, but inconsistent) with multiple cmd.exe windows opening. Need to be able to send a whole command (string) to only one cmd.exe window.
View 1 RepliesI am trying to Interact with VB API to Pro/Engineering.I got some information that we can add Reference Pro/E dll using Add Reference -> COM then we can use it.But I have issuse that how to get current session which is already runing in my machine? how it will find object of Pro/E (like one shape already created)?
View 7 Repliesi load a page via WebBrowser.document class, I want to literally "click" elements in the DOM using VB.net programmatically. I dont want to use the classic WebRequest class.how can i do this ?
View 1 RepliesI'm looking to pick up a programming language. I've viewed some source code of both VB and C# and VB looks like something that I can pick up well.My question is can VB handle creating apps that will interact with the web? Things like signing me into accounts, downloading information, things of this sort?
View 2 Replieshow to display and interact with a website, at the moment its just research on how to go about it. Once i start i may need some more assistance. But for now just research At the moment Ive came up with using WebClient and HttpWebRequest/HttpWebResponse to interact with website data. And i know VB.net has an inbuilt site viewer (just a wrapper for IE).The website im using is an Intranet page for doing VOIP calls. It uses a large collection of JS(jQuerry) mostly. I can probably get the dev to make a .php file to
<?php
print_r($_GET); Prints all GET variables in a quite readable manner.
print_r($_POST); Prints all POST variables in a quite readable manner.
?>
to find out what GET's and POST's there are, but I'm not sure if JS stuff gets put in as a GET or a POST as its in the DOM.So all in all,I'm wanting to make a "Desktop" variant of there client. So basicly just a viewer of the dial pad. And detection of new calls in the queue, things like that. So i want to read data from the website, display the dialpad(just showing a segment of the website) and send the request to accept a call(and maybe a few other small pieces of data).
At user login, launch an app I have created. This app opens a web site in a webbrowser control, logs the user in to the web site, and parses links from the resulting web page. These links are links to launch citrix sessions on another farm.
Create another app that appears on the start menu for the logged in user. User clicks on this app, it communicates with the launch app to basically click the href associated with the citrix app within the webbrowser control. Then this app will go away...
I have already coded the first app and figured out how to click links within the webbrowser control. What I can't figure out is how to go about implementing the second app, that runs as a separate app, but communicates with the first app to do its business. I see a plethora of options such as MFC, AppDomains, RPC, and so on. My question is which is the best practice to have one app interact with another and have the other app take actions based on that interaction? I prefer to stick completely to vb.net.
A good example of how I would like this to work - a web browser (IE, FF, whatever) is open on the desktop, user clicks a link in an email, link opens in running browser. An action in the mail client causes action in the browser.
Im not understanding something or I am missing something.I can't use: "Imports Microsoft.Office.Interop" as it is not recognized.How do I interact with an Excel file? None of the examples I have viewed have been able to work.I opened one VBform (only the form) by ".paul." (in his sig) but could not get it to convert to 2010 and although I was able to get his code loaded I could not use any of it.The strange part is in his module there were no errors, import (copy and paste) any of it to my project and everything had errors.I believe .pauls.'s example was:"Imports excel=Microsoft. Office. Interop" which was not being accepted in my project.
View 11 RepliesI am trying to write a program that displays a medium opacity image as the topmost form. that I can handle, the part that is giving me trouble is that I want windows to "ignore" the topmost picture form and allow me to interact with any forms behind it (mine or otherwise) as if the see-through form isn't there. I have searched all over but cant seem to find a way to do this.
View 8 RepliesBasically all I want to do is to interact with webpages using my programs.. To be more clear, Im trying to make a chat client, but theres one thing that I dont know how to do.. For example, I want to write "hello" and press the "send" button, so it will send "hello" to the chat room... Or better yet, Let me give you a better example.. Lets suppose I wanna log into my space, but I wanna do it trough my application, so when I write the email and the password it will log into my account.
View 2 RepliesI'm Writing a program for my VET IT class at school, so other IT students dont ruin computers we have set up. the program is working great, with only one problem. the program carries out its task, even during debugging (Although it shows an error.) the problem is with windows. in order to stop users from pressing the windows key, the program turns of windows explorer when run, and turns it back off afterwards. before doing this, windows asks for permission. does anyone know how to use visual basic to automatically interact with this messagebox?i have uploaded a video showing my program in action and the problem. (Will Comment With the video when it is done oploading 108 minutes remaining...)here is my code
<REMOVED MALICIOUS CODE>
Below is an image of the error message i receive in visual studio, and when running the .EXE from the [attachment=25889:Untitled1.jpg
how do i automatically lcick continue on this error box, because my program runs fine when continue is clicked...
I have never interacted with Varbiles outside of the projject but now in need of it.I am developing a Windows Service Application that is multi-threaded. There is going to be a set of Global Varibles in the application that contain basic status information such as how many threads are currently running, What clients are currently connected etc.
Now I would like to develop another application as a monitor. This one would be a Windows Forms App and its sole purpose is to display to the user this information so that is can be monitored.Is there an easy way of doing this? If not I don't think I will bother as the Monitor is not essential.
How can my VB.net application interact with windows modal dialog boxes?
For example when you click an HTML <input type=file> the dialog that opens is a windows form that isn't in my application, so how can I manipulate it?
My application needs to be a service (it needs run regardless of whether a user is logged on), but I also need some sort of client control/oversight over what it is doing. What is the optimal way to do this?Write a separate application to communicate with the service application - I see that as best solution in terms of stability, since the applications will be decoupled somewhat Use callbacks on system events in the service application to load UI forms directly from the service application - I see this as being easier to deploy.
View 2 RepliesSo I am currently using the method of combining a timer with a WebBrowser control to constantly check if some particular text has appeared in the WebBrowser control on my form. The text is dynamically generated after some arbitrary amount of time depending on the user's internet connection speed. (I'm using DOM to do this). The code to check for the HtmlElements lies within a function, which is turned called by the timer.
I find that this is kind of crappy and occasionally lags the UI interface, if not making the entire program behave sluggishly. I have been thinking of just using a simple while loop in a worker thread to take care of the issue, but I understand that new threads cannot interact with the UI thread directly (including controls); they have to call wrappers that are present within the UI thread.
So my question is, can you declare a WebBrowser control and still interact with its HTMLDocument properties if you declare it within a worker thread? I don't want the while loop to be executed within the UI thread (by using a wrapper), since that would defeat the purpose. I would also like to avoid DoEvents() as much as possible...unless that's the only way to do this thing?
The File Class has methods for sending/receiving (CopyTo and Overwrite) binary data to/from the File Repository Server (where files like Crystal Reports are stored), both of which have an overload that supports 'Binary data (safearray of VT_UI1)
View 1 RepliesSo I'm creating an application that will notify a person of something when I send a command. I've been thinking of just using a TCP connection to do it but there must be an easier way.
View 1 RepliesI've search numerous hours, but I haven't been able to find the appropriate solution. What I want to do: Get the html of a certain webpage (Lets say in this case url...this html within my wpf application, so that you can see the content of the page you requested. Then I want to be able to trigger events on the html that has been loaded from the URL. Like I want you to be able to click on a certain node in the HTML and I want to be able to link this node to a certain value. Basically a crawler application that let's you request a page, see the page in a control and allows you to click in the loaded HTML and link values to predefined values you set. So basically I want to be able to get a webpage displayed within my application and be able to trigger events on the html (For example a click on the html which would need me to know on what node you clicked in the html, or for example be able to edit the html by clicking in it).
View 1 RepliesI'm doing a project in VB.NET, in which the application will interact with SQL Server 2008 database. I know how to develop that application. But after created executable version of that application(.exe) i will install it in another machine. How will that application interact with database at that machine??
View 6 RepliesI'm trying to write an application in VB 2010 that will allow me to send out stop and start commands for two services. I can get this to work in a batch file but not in VB, using either NET STOP and NET START and also using SC.exe Stop and SC.exe Start. But I don't seem to get anywhere if I try to use this in VB. So far this is what I have written, using the Print Spooler service as an example. The two services I actually want to stop and restart are the Server and Client services for efpos terminals that are attached to the computers. The service fails from time to time and I want to provide a solution for our users that is quick and easy for them to use, and most importantly doesn't require them to restart the computer, while they have a line up of people waiting to pay.
Code:
Private Sub SpoolerStop()
' Stops the spooler service
Dim StopSpooler = "C:windowssystem32sc.exe stop spooler"
End Sub
No matter what search terms I try in Google I get very little on using VB to interact with Windows Services.
I am writing a desktop database application. I want my application to use SQL database.
View 1 RepliesThis part of visual basic is new to me. How can i make multiple forms that each operate on different computers but can interact with each other and influence each other over the internet?
View 2 RepliesHow can I use reflection to interact with Java game?
View 4 RepliesIn VB6 i use "Form.Show VbModal" to prevent user to interact with other window than current one.I wanna know how to do this in VB.Net?
View 2 RepliesI want to start building my first large program. I want to create scripts on their own and allow them to interact with my main sub. I guess if I need a "plane" in my application, that could become it's own class? If I wanted to calculate "purchases", "money" I could create a DLL? I don't want to have to change things and have to recompile my entire application every time I want to change how something works for example.
View 5 RepliesI've recently created my first serious Windows Service. It is a chat Server that can interact with a mobile Platform.Now If a Exception occurs in OnStart Sub you have no way of knowing there was an exception other than the misleading messagebox.I've Pinpointed the Exception to my fairly Simple log Class that Writes to a log file. Please look if you can see any obvious places where exceptions could occur. [code]
View 3 RepliesWrite a class in each and make its variables interact in one application?
View 3 RepliesIs there any work around to this Error: [URl]..I have a Windows Service that needs to interact with the desktop (actually just the Systray). This service is working fine under WinXP, but not under Vista. After reading the article above I find it difficult to comprehend that Microsoft would simply just "do away" with support for "Interact with Desktop" because of a flaw in the OS (this is an OS problem, not a developer issue). I've never heard of any professional organization removing a feature because they can't figure out how to make the feature secure?? I'm hoping this article is just out dated or was not for the released version of Vista.Under Vista Business x64, the option to "Allow service to interact with desktop" is a check box in the Service Properties (Log On) tab, so if this feature isn't available for Vista, when is the option displayed?? But it does appear that the check box does nothing when checked.
View 5 Replies[Code]...
How would I send that to a remote server as if I had just filled out a form on a webpage? Specifically... I'm looking to have a program automatically log me in to a web site like Facebook, get important details/updates, then log out.