Detecting Argument Of Program?
Jan 31, 2012
I want to create program that Detecting Argument of Program, For example:There are 2 Program, just call them a.exe and b.exe, If a.exe is open, the a.exe will execute b.exe with some argument, for example, argument is "arg", and I want my program to Detect the Launch Argument of b.exe ("arg").
View 3 Replies
ADVERTISEMENT
Feb 24, 2010
I have an Access 2007 database that runs constantly, the form on the database basically runs a timer every 10 seconds and runs a Macro. The problem I have is that when the backups run at night the network connection the database is on disconnects for the backup, so the database crashes with the error.
"Your Network Access was interrupted. To continue, close this database, and then open it again."
What I would like to do is create a small VB Application that runs on the machine that the database runs on, detects when the database has a problem, closes down the database process then restarts the database.
View 2 Replies
Mar 6, 2012
I currently have a property in my program which returns a true/false depending on if the program is "portable" or not. I need this to know if I should do a certain thing or not.
It checks if it is by checking if the registrykey the installer creates exists, here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MyProgram
(And under the Wow node if the OS is 64 bit)
The problem is, I am trying to get rid of the need for admin rights, and this is the last function that needs to be fixed. But I don't have a clue on how.
Why I want this property is because then I don't need two separate versions of my program (like a set property in My.Settings which I set before I build).
The only files that differ using the portable vs the installer is one file, but the reason why I don't want to base the result on the existence of that file is because I want to warn the user if it's not there (if the program is not in Portable mode), so he can reinstall the program.
how I can check if the program is installed by an installer, without using admin
View 1 Replies
Aug 5, 2011
I have a program which when a button is clicked on a form sends the form to the back, so that Notepad can open on top, then it opens up notepad
Me.SendToBack()
System.Diagnostics.Process.Start("notepad.exe", myPath & "*********.txt")
Now what I want to do is to detect when the notepad has been closed then I can bring the form back to the front and I just do not know which commands to use for this to detect a program outside of VS 2010.
View 7 Replies
Feb 8, 2011
I have a query to do. I'm making an interface to run some programs that I have done in command line. My problem is that with the following code that I send, upload a file with a certain name. However, I have to upload files daily were part of the name change, a day ficovb.monday.txt, ficovb.tuesday.txt next day, etc. And do not know how to load the ficovb .*. txt file in the folder each time you run the application. net.
Dim p As New ProcessStartInfo
With p
.FileName = Environment.CurrentDirectory & "\ficobv2.exe"
[code]....
View 2 Replies
Dec 5, 2011
I made this procedure re-use a select query:
[code..]
And I use it like this if I would want the selected value placed in a textbox and it works fine
[code...]
However if I want the value to be passed in a string like so:
[code...]
The string ends up having an empty string value. How do I assign the value I queried to that String?
View 2 Replies
Aug 22, 2010
In a threaded app in VB 2010, I can do this[code]...
View 6 Replies
Aug 15, 2009
I am using VB from Visual Studio.net 2008. I need to understand how to build a VBScript or Application that will detect when a flash drive is inserted into a Windows XP SP2 system. Once the drive is detected, the VBScript/App must then automatically search for any available .ppt file (power point) located in the root directory of that flash drive. If the .ppt file is found, pptview.exe will launched opening the file in question.
This script will be located in the startup folder and will run until a flash drive is entered and then it should pause until the flash drive is removed and then start searching again. This is for a kiosk to be used at trade shows for a company I am working with. The company wants this to be simple and automated and only requiring that the user setup the kiosk, which has no keyboard or mouse, plug in a flash drive with a .ppt file on it. The system will then automatically load the slideshow and play until the system is shut down or the flash drive is removed.
I am pursuing this option because an autorun.inf file on the flash drive only adds another line item to the autoplay dialog. Although it may be possible to write a small script that will select that item, there is no guarantee that the user will have that autorun.inf installed on the flash drive in question.
Also it may be better to copy the .ppt file into a temp directory on the kiosk machine, so that in the event that the flash drive needs to be removed there is not data transfer taking place, minimizing the possibility of data corruption.
Most of the file handling I may be able to handle on my own, but it is the detection of the flash drive insertion and removal that is a problem. I am looking for some clarity on this point first. I may ask other questions later, but for now that is the biggest hurdle I have to cross. [URL]..
View 20 Replies
Apr 17, 2009
I need to be able to detect when an external program closes so that I can start another event within VB 2005. I have tried to do this by monitoring the processes on my computer. The problem is that this programs comes up as some weird sub-process. It has an Image Name, which is indented from the other Image Names, and it shows that the User Name is the Administrator. This is the only information you can get from the Processes tab. There is a Task Name under the Applications tab, however. I was wondering if there was some code to monitor the Applications tab instead of the Processes or if there is yet another way to do this.
View 1 Replies
Jan 4, 2011
I need to create a program that can run code each time the user clicks, I can't use windows forums since its on another program. If the code can detect global mouse clicks(system wide) or only on one program it's fine.
I've done some digging and it looks like windows API can solve my problem but i really suck at using windows API and it looks like SetWindowsHookEx() can solve my problem but i don't know how to use it correctly. This is the code from Pinvoke that I modified to hopefully work for a mouse click. i'm having trouble getting this to work.
Imports System.Runtime.InteropServices
Imports System.Windows.Forms
Module Module1
Sub Main()
Dim t As New MouseHook
[Code]...
View 5 Replies
Dec 6, 2009
FIRST = arguments checked against each other
SECOND = arguments checked against each other but are irregardless of the FIRST arguments.
If (FIRST and (FIRST or (FIRST and FIRST))) OR (SECOND or (SECOND or SECOND or (SECOND and (SECOND or SECOND)))) then As the program processes this line over a million times during the execution, only FIRST or SECOND section is needed during an execution, never both. How do I make the program use only the section that's needed for the current execution instead of checking every argument every time? Is there a way to turn a string into an argument list for an IF...THEN statement? [code]
View 13 Replies
Sep 15, 2009
I am writing a program that expands the usage of the clipboard, but I need to tell when the user has either cut, copied, or pasted something so I can write code accordingly to that. I need to know how I can check to see when the user has entered a command like this.
View 2 Replies
Aug 1, 2011
I do not understand why this is not being detected.when I do a test in the immed it comes back true for a match, but the code never run's.[code]
View 2 Replies
Jan 26, 2012
I have a query I am creating a Window App in vb.net (4.0) in which I have to use multiple databases although all databases are same with same db structure & stored procedures,just names are different. In the very starting of application, I need to give a option to the user that these are available db & user will select which one to connect & use.
So is it possible to detect how many db are available in the SQL Server through vb.net & how can achieve this (to provide options to the user) What would be the best approach?
View 3 Replies
May 4, 2010
I have worked with PHP and other programming languages but I am new to VB. I want to write an application that is run manually every day, and each time it is run it checks for modified and newly created files in a particular folder
View 4 Replies
Jun 6, 2011
i want to detect if listview has been updated
eg: there are listview1,listview2 and a button1 .u can send items to listview2 from listview1 .if the listview2 has an item button1 will enable if the listview2 is empty button1 will disable
what is the suitable event for this?? (there is an event called BindingContextChanged is it the suitable event?if so how to use it??)
View 1 Replies
May 7, 2009
In the app we use a third party dll for looking up names and addresses.This resides in the system32 directory.Before I try and access this dll I need to be able to find out if it has been registered on the PC.So in short does anyone know the code to be able to check if a dll has been registered in the registry?
View 1 Replies
Aug 16, 2011
I am facing problem while in detecting the multiple key combinations ..here is my cod
Private Function keyboardCallBack(ByVal nCode As Integer, ByVal wParam As Integer, ByVal lParam As IntPtr) As IntPtr
[code].....
View 1 Replies
Apr 26, 2009
I have a camera with a LiveView function (images aren�t snapped, but they are directly sent to my computer), which I managed to connect with VB.net, so I have got the image in a picture box on my form.The next thing I want to do, is to gather 3 spots from the image... The spots are all red, something very similar to #FF0000 (it is a camera + lights, etc... some tolerance needed). So, can anyone help me here?
I think the working "check list" could be something like this:
- Get red, green and blue channels separated
- Change green and blue into gray scale (100% blue / green = black, 0% b / g = transparent)
- Put these b / g both into 50% alpha and put them over the red (which means where is both green and blue = black, only one of them = 50% alpha black, none = transparent)
- Somehow select the areas with most red
- Get center of these areas - my points
View 12 Replies
Sep 13, 2009
I was just wondering if it was possible to make vb 2008 detect if there is or is not sound.As in my project i want vb to detect when a video has stopped playing and then do something else. So i waqs thinking maybe i could detect when sound has stopped and then perform my other actions..
View 1 Replies
Feb 15, 2012
FORTRAN allows one to use a procedure (function or subroutine) as an argument to another procedure. For example:
SUB Procedure1(x)
----
----
RETURN
[code]....
Does Visual Basic 2010 allow this functionality, directly or indirectly?
View 9 Replies
Dec 9, 2010
How do I detect a ctrl+tab keypress?
Reason for asking: I want to stop a user from changing tabs in a tab control.
View 1 Replies
Mar 7, 2011
I want to be able to detect when the user presses F10 or Ctrl+F10 outside of my program, and upon receiving the key press, it will send text to whatever they currently have selected (e.g. a text box). How can this be accomplished in the simplest way?
View 3 Replies
Jul 22, 2010
How do i detect ( ' and " or better still any char which sql cannot read)in textbox. this is my NOT working code there are codes before else if and after else so ya ...
[Code]....
View 5 Replies
Jun 6, 2011
I'm trying to set up a timer that counts up to ten and starts/resets when the left mouse button is clicked (anywhere on the screen even when the application is in the background). I'm struggling to find a code that suggests it is possible and now I am starting to wonder even if it is possible in VB?
View 4 Replies
Feb 2, 2012
I need to know the status of the mouse whether it is moving or being idle. How can I do that?
I have tried with form's mouse move event but, it doesn't work if the mouse is on any control.
View 5 Replies
Nov 9, 2009
I am developing a UI for an embedded device that I have designed and built. The device uses an FT232 chip which, when connected via USB is automatically assigned one of the COM ports. I was wondering if there is a way to set up a loop which would automatically detect which COM port the device has been assigned. I could then add some handshaking to verify that the port is correct.
View 4 Replies
Feb 1, 2012
I have written an application that monitors a log file. The Log file is locked by the writing application so I read it asynchronously:
Dim LicenseLog As New System.IO.FileStream("\serverLOGlicense.log", IO.FileMode.Open, IO.FileAccess.Read, IO.FileShare.ReadWrite)
View 2 Replies
May 19, 2010
I would like to detect a color on the screen... and then move the mouse to the coordinates of the color and then perform click. Is this possible and where do I start?
or - detect a collection of colors and then click?
View 10 Replies
Dec 19, 2009
I want to be able to isolate an area of my desktop (similar to a screen capture snip) and evaluate if it is changing. In this particalr case it is an appliacation I have (not mine) that flashes an icon upon completion
What I want to do is make a small app that will detect change when I am away and perhaps perform a specific action (the action is not relevant really - i can take care of that) Again,this is NOT hugely important, but if someone has an idea or has seen an app that does this, it would be useful for me...
I put this in the VB.NET forum because I write 75% of my code in VB.... so I chose this instead of a general area !!
View 3 Replies