Executing An External Program In Powerpoint And Waiting For It To Finish Before Moving On To More Code?

Nov 23, 2011

I would like to execute an external program within powerpoint after the presentation has loaded so i can see if its working. In short my overall objective is to execute the external program which will open up the command prompt and use the sendkeys method to sendkeys to command prompt which help it to run a script at the correct time (which is after presentation is loaded).

View 9 Replies


ADVERTISEMENT

Waiting For A Thread To Finish?

Mar 11, 2009

I am trying to make a marquee progress bar run while my long function is running. When the function is done running, I want the progress bar to disappear.

[code]...

If I don't do t.Join(), the progress bar disappears right away and then the thread runs. If I do Join(), the progress bar doesn't appear until the message box pops up after the thread is done!How would I get the effect of the progress bar running while the thread is running and then stopping when it's done?

View 15 Replies

VS 2010 Waiting For Webbrowser To Finish?

Sep 30, 2010

I need to let my webbrowser finish loading before continuing. the problem is, i have the stuff that needs to be done in a do loop, so i can't use documentcompleted.

i currently have

Form2.wb.Navigate(url)
While Form2.wb.IsBusy = True
'do nothing
End While

to check if the webbrowser is loading, but it doesnt really work.

View 5 Replies

Stop A Page Waiting For A Usercontrol To Finish Loading?

Jan 28, 2011

Is there a way of stopping the main page waiting for a usercontrol to load before it can finish loading?

I have a usercontrolthat has to do a lot of DB calls which can take a few seconds making the page slow to load. Ideally I'd like the main page to load straight away and then the usercontrol content appear when it is ready.

View 4 Replies

VS 2008 : Blocking In DoWork() While Waiting For Another Thread To Finish?

May 6, 2009

In my DoWork() function I register with our sip server. Then I have to wait for a response back. However, the response I get is received in another event. However, before I am able to check the flag in the DoWork() the DoWork() has all ready finished and the response comes after.

I am trying to find a way to wait in the DoWork() until I get a response in the Diagnotic event. I have a global flag that is set in that event that I have to check in the DoWork().I was thinking of maybe blocking in the DoWork() until the other event is finished. Maybe using a join.

' Do work in background worker
'Will return less than 8 if there are no error message from the library
If (Not Me.bgwProcessLogin.CancellationPending) Then
' Register and wait for response

[code]....

View 3 Replies

VS 2010 Waiting For A Screen Re-draw To Finish Before Continuing?

Oct 16, 2011

I'm writing a simple program that takes a screenshot of tab1 of the GUI, then takes a screenshot of tab2, then tab3, etc. I've got the screenshot code down pat, but the problem with my current code is that it's taking the screenshot of each tab before the screen has a chance to fully redraw, so the resulting images are screwed up.Is there a way to get the program to wait for each tab (and all the controls in it) to be fully visible before each screenshot is taken?I'd like to avoid using a timer for this, as the screen redraw speed will vary depending on the user's computer, and the contents of each tab, etc.[code]

View 2 Replies

WaitForExit() Runtime Exception (Waiting For Cmd Process To Finish)

Aug 29, 2011

Can you kindly tell me why I am getting a runtime exception when trying to run this code?

[Code]...

View 1 Replies

Waiting For A Shelled Process To Finish Before Continuing With Application?

Mar 7, 2011

I'm currently making a Computer Cleaner, my program launch's rundll32.exe's to clean IE's history.

Like to clear the add-on settings I would put:

Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351")

But I need to wait for it to wait before letting it to go on to the next thing like clear cookies, which would be: Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2")

View 3 Replies

Waiting For Webbrowser Control To Finish Loading Page?

Dec 25, 2011

I have been tasked to do a project, and have been given a list of links from the client - what the Project needs to do is:1 - open google with a specific search phrase - no problem2 - look on that page for any links containing any member of the list of links, if found, invalidate the entry in the list, and auto-click the link, then go back3 - repeat for any other "finds" on that page4 - when done, auto-click on "Next" (no problem) and go back to step 2For now, I am not even attempting to auto-click the found link and go back, I am just listing all found links in a TextBox. The problem I am having is waiting for the next pages to load before looking for a match in the list of links. I tried using webBrowser.DocumentCompletedto set a Boolean - I tried testing WebBrowserReadyState in the DocumentCompleted event ar the code below gives the best results but it is inconsistent, meaning it completely misses some pages that I know have links on them that match.

View 6 Replies

Program Not Waiting For Called Code To Execute ?

Feb 16, 2012

I'm writing a program and have run into a bit of a snag. I have the code perform a button click on certain buttons, the reason for this is I have a bunch of buttons that each do something and one that does everything automatically. I suppose I could rewrite everything under that one button but that would essentially double the size of my program, I could use an if statement to catch the fact that the program is in automatic mode but that would be about 15 conditions (not looking forward to writing that statement ;p)

Clicking the buttons is a nice simple, clean solution. The exception being the program performs the click then continues on executing the rest of the code in the actually clicked button while at the same time executing the code called by the code click. Main problem with this is the data that needs to be populated by the code click isn't being populated fast enough for the code in the main button so then there is errors, blank data, program doing nothing. A simple sw timer to delay could work (I know how to make one of those) but the problem with that is the program is executing against a webpage and if the webpage takes a few seconds longer to load then anticipated everything is out of wack again. I'm looking for a simplish way to cause the program to wait for ALL code called by any raised event to finish before proceeding.

i.e. Call Button.clickEvent > Wait for code and subroutines executed by Button.clickEvent to finish > continue with rest of code in button.

Below is the code I'm using so far for the user clicked button.

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Button4.PerformClick()
'Need to wait for all code executed by Button4 and anything it calls to finish
x = 0

[CODE]..........................

View 7 Replies

Waiting For External EXE To End Before Doing More

Apr 23, 2011

I keep trying different things I find on the net, but I can't get VB.net express to wait for exit. Hopefully someone can point me in the right direction here. Here is my code and all of this works but there is no way to tell when mugen stops.

[Code]....

View 6 Replies

Waiting For Browser To Finish After InvokeMember "click"?

Jun 29, 2011

I have seen people use the code

Do Until WebBrowser1.IsBusy = False
Application.DoEvents()
Loop

or use the WebBrowserReadyState however, this doesnt seem to work after I invoke a member For example, I use "invokemember("click")" and then after that, use the WebBrowser.IsBusy or ReadyState, and do another InvokeMember, it doesnt work. It seems after I invoke a button and it navigates, it doesnt seem to matter?

View 2 Replies

PowerPoint GetClickIndex When Moving Animations?

Jun 30, 2010

I use GetClickIndex when I receive a Powerpointall_SlideShowOnNext event to move the selected index of a list of animations (built previously from the Timeline object). The first animation returns 1, the second 2 and so on.

This works fine until I manually move animations up or down the Animations Pane list using the PP Animations ribbon and re-start the slide show. Now GetClickIndex returns 1 for each SlideShowOnNext event I receive.

View 7 Replies

Executing A Piece Of Code Before The Program Closes?

May 18, 2009

Having read the rules I don't have much code to show apart from these lines I want to have executed just before the program or a form closes.

If My.Computer.FileSystem.FileExists("File.file") then
My.Computer.FileSystem.DeleteFile("File.file")
End if

View 2 Replies

Executing An External App?

Oct 1, 2010

im working in a windows app that execute another apps.. writing the name of the app in a text box (i.e firefox.exe) and click enter to run it im using >> (System.Diagnostics.Process.Start(app_name.Text)) to run apps it works fine with me .. but it didnt with some apps like when I write for example ares.exe it says:Win32Exciption was unhandled :The system cannot find the file specified

View 1 Replies

Executing An External Application In A Form?

Apr 23, 2010

i'm working on visual basic with an external program and want to lunch this program from visual basic like withe the shell but what i need the most is to make him incorporated into the form means that the executable is lunched within the form included into it in order to make them like one part for the user is there any way to make it with any version of VB or .net or visual studio even the 2010 ?

View 12 Replies

Moving Lines In Code Of A Program While Running

Oct 27, 2011

I want to go back to the input line in the four places in the code that say something like strinputmessage = strnegative or strinputmessage = strnonnumeric.I need to be able to go back to where you input the data so that the index does not increase.I tried using a GoTo <23> to go back up to the line i needed but then it gave me all these weird errors about the End and Next were missing.[code]

View 3 Replies

Program To Display The Text "Waiting For Connection..." While The Program Is Actually Waiting For A Connection?

Aug 10, 2010

I want the program to display the text "Waiting for connection..." while the program is actually waiting for a connection. However, when I run the program, the form doesn't even appear because the TCPListener is waiting. What can I do to have the program appear and show the text while it's waiting for a connection?

Imports System.Net.Sockets
Imports System.IO
Public Class frmMain
Dim client As TcpClient

[code].....

View 5 Replies

.net - Yield/Sleep/throttle Another Thread While It Is Executing A Method In An External Library - Specifically Jurassic?

Jun 25, 2012

I am using a .Net JavaScript implementation called Jurassic to run user-controlled scripts within my .Net 4 WPF application coded in VB.Net - C# answers are fine. The script engine runs on its own thread and provides an API for the script to interact with my application. This all works really nicely until a user executes a script that causes an infinite loop and takes out a core of the processor.

[Code]...

The reason I care about keeping the thread alive is because the user who wrote the script and the user who is running it may not be the same, and I want to keep the experience as smooth as possible the the user running the thread. There also might be legitimate situations in which a single JavaScript function would run for a long time and I do not want to kill that, I just want to stop being allowed to hog the resources.

Solutions that involve stopping the thread from slowing down the system but that still show high CPU usage are not preferable because I do not want the user to wrongly feel that the application is resource intensive.

View 1 Replies

How To Finish Code By Using Only Do Until - And If Then

Oct 31, 2009

Does anyone know how to finish this code by using only do until, do while, and if then statements? Also, does anyone know how to have the combobox display only 1-4 and not repeat as well?

The objective is to be able to select numbers 1-4, hit result, and have the label display female voters in that precinct out of total voters.

View 15 Replies

Api Call - Moving And Resize External Window From Application

Jun 5, 2009

I had been looking for a way to move and resize an external window from my application and I came across this method: [Code] now this does not work, after looking around I many threads about how api calls in .net are different.

View 6 Replies

IDE :: Code Of Opening Powerpoint Won't Work

May 23, 2010

how to use access to automate the process of opening the power point from the VBA code. So what it does is if the user clicks on the open button, the power point will open...The path and file of the power point have been set correctly.Here is the code for the button click, private sub:

Private Sub cmdAutomatePowerPoint_Click()
Dim strFileName As String
strFileName = "C:PracticeAccessVBA_Programming5Ws.ppt"

[code]....

But whenever I click on the button I got the error message, saying power point could not open the file.

View 4 Replies

How To Set A Powerpoint Presentation As Powerpoint.application.activepresentation

Jun 22, 2010

how to set a powerpoint presentation as the powerpoint.application.activepresentation? In the program below, when the form is loading, it will open 2 powerpoint files (Test1.ppt and Test2.ppt). After Test2.ppt is opened, it will be the activepresentation because it is opened last.What I am trying to do is when I press button1, it will set Test1.ppt as activepresentation so that when I press button4, it will show me "C:Test1.ppt".The same also goes to button2 making Test2.ppt as activepresentation..But what I get is, no matter how many times i press button1, Test2.ppt is always the activepresentation.[code]

View 1 Replies

Finish A Program That Will Report A Set Of Data From The User?

Apr 2, 2009

I need to finish a program that will report a set of data from the user following the guidelines below.I done most of the code I could figure out by myself. But help is still needed to make the data from being displayed on the lstReport box as well as validating the user inputted data.

User Interface - standard window/form formatting with correct tab order
o The form is non-sizable and non-maximizable but can be minimized and will open center screen. It will have a caption of Project1: <your name>, a company logo, and the name of the company.

[code]....

View 16 Replies

VS 2008 Wait For A Cmd Line Program To Finish?

May 18, 2009

I've made a gui for a cmd line program and I need to wait for the cmd line program to finish running before continuing.nd I have some code that starts the cmd line program and then calls a subroutine when it's finished running. But this method won't work since now I'm trying to run the cmd line program in a loop.Edit:Is there a way to just have the runtsmod subroutine (shown below) wait until the cmd line program is finished, instead of relying upon a subroutine starting when the cmd lineprogram finishes. This would simplify things greatly being able to call the sub tha starts the cmd line program and having it finish when the cmd line program is done.

Sub runtsmod()
'If the tsmod program exists in the directory the GUI is run from it is ran
Dim tsmod As String = Application.StartupPath & " smod_GUI.exe"

[code].....

View 3 Replies

Restarting The Program And Waiting?

May 8, 2012

is there a function that makes the program wait? and is there something that makes the program restart itself?

View 6 Replies

Create PowerPoint Presentations Using Program?

Jul 17, 2009

I am in the process of writing a program that takes a .xls file of raw data, runs some calculations on the data, and then creates appropriate tables and charts. It then copies the charts into a PowerPoint presentation, formats each slide correctly with all the necessary information and saves the presentation with a new file name. That part alone works fine and takes about 12 seconds for the whole process (its roughly a 12 slide presentation).

View 5 Replies

Synclock A Section Of Code While Waiting For ShowDialog To Return?

Jun 1, 2010

I'm having trouble working out how to lock my application out of a section of code while it waits for a response from an external program've used Synclock on a section of code with the Me object in the expression. In this Synclock I call an overridden ShowDialog method of a dialog box, which has a timeout parameter, but does return the value from the underlying ShowDialog function call ,once the timer is setup. Works like this.

SyncLock Me
Dim frmDlgWithTimeout As New frmDlgWithTimeout ' dialog box with overridden ShowDialog '
Dim res As DialogResult = frmDlgWithTimeout.ShowDialog(10 * 1000) ' 10 sec timeout '

[code]....

View 1 Replies

Excel To Powerpoint Macro - Copying Excel Range And Pasting As HTML Or Default In Powerpoint?

May 11, 2011

I'm trying to copy a Range from Excel and Paste the information in powerpoint in either the HTML or the default format, however, I am having some difficulties. I am able to get the code to work for pasting the Range as an OLE Object but nothing else. The problem with doing this is that having the embedded excel documents in the powerpoint makes the file extremely large and unstable. I just need to be able to paste the information without the embedded information where it is editable (so, not as a bitmap or picture).

With ppt2Slide
Sheets(index2).Activate
Range("CP12:CT" & RangeIndex2).Copy

[code]....

View 1 Replies

Executing SQL From Code ?

Jun 22, 2010

I am running SQL 2005 Standard Server. I am using Visual Studio 2010 for development.

Let me just say that what I have below works, I would just like to have some constructive critisism.

CODE:

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved