C# - Mercurial, Writing Hooks Using A .NET Api?
Jun 9, 2011
how to write Mercurial hooks in a .NET language, including how to setup .hg/hgr
I have used the "Mercurial.Net" Api, but the information in the Windows environment variables is a bit limited and returning error messages on the standard error channel does not appear to work. I guess I am doing something wrong.
I am using .Net for a number of reasons , one being to link up with other systems using WFC
View 1 Replies
ADVERTISEMENT
Oct 6, 2011
I want to start using Mercurial on a VB.Net project, but I'm not sure which files should I add. Do I include the Project.sln file, bin/ and obj/ folders?
View 4 Replies
May 20, 2009
I need to write an application that works in background.I'm writing my application in vb .net, but I don't know how to intercept system hooks by using .net classes.I know that there are windows apis such as SetWindowsHookEx, etc, but I just wondering if there is a way to use .net classes or methods such as WndProc.I tried to use it, but it works only if the form has focus active. My application must work in background.
View 3 Replies
Feb 9, 2009
I have never written a hook before. Can anyone point me in the right direction of good tutorials to get starrted on hooks. I'm looking to write something so when a user right clicks on a file, they have an option to copy the path and filename of that file to the clipboard.
View 2 Replies
Jun 28, 2010
I have been trying to build an application for which I need to set low-level keyboard hooks. I thing I am trying to accomplish is that when I press the key "a" I want windows to think I have pressed the key "b". But the problem I am facing is that when I press key "a" it produces "ab". I am providing my code below.Also I would like to know how to detect double and triple key presses (e.g. shift + a and ctrl + alt + b). [code]
View 2 Replies
Feb 25, 2011
To make this short and simple, I'm developing a program that goes full screen but cannot allow the user to close or Alt-Tab out of it. The program is responsible for giving out tests that teachers create for various students and, to deter cheating, I was going to have the program block attempts to close it (I have that figured out already) and stop Alt-Tabbing out of it.
I looked up SetWindowsHookEx, but I was never good with PInvoke's and my attempts to get it to work have resulted in nothing.
This is my current
<DllImport("user32.dll", SetLastError:=True)> _
Private Shared Function SetWindowsHookEx(ByVal hookType As HookType, ByVal lpfn As HookProc, ByVal hMod As IntPtr, ByVal dwThreadId As UInteger) As IntPtr
[Code].....
View 1 Replies
Jul 9, 2009
I'm developing an VB.NET application which utilizes a webbrowser control. The browser control needs to navigate to a simple page which prompts the user for their user name and password. However, this prompt is not simply a web form, but it is a completely new dialog window. I need a way to automate filling in the username and password in this dialog by using locally stored credentials, so that there is no interruption in the webbrowser control's navigation. The only information that I have been able find so far that might be useful in solving this problem, involves using windows hooks in the user32.dll to intercept and negotiate with these windows at a low level.
View 2 Replies
Oct 23, 2011
I am wanting to find out how to use the Win32 hooks to allow me to add extra save locations to the save and open dialog box so as to allow as an option for files to be saved directly to a database rather than a file system.I have tried looking online but can't find anything remotely usable for this, the only data on hooks that I can find involves Window operation hooks, mouse, leyboard, and shell hooks, nothing to do with files.
View 2 Replies
Apr 3, 2010
How write folllowing into cmd schtasks /create /tn "savita"
Here savita is value in the textbox1, i dnt knw how to write " into cmd
View 1 Replies
Sep 7, 2009
It would be easy enough to make my own system for this, but I'm figuring that the .NET library, being as massive as it is, probably already has a class made for this very purpose.For hit detection, my VB.NET game uses two 2D arrays that store the state of each pixel in the level. Each element in these arrays is a Byte (or, more accurately, a value of a flag enumeration type based on Byte).
Public TiHD(,) As HitDT ''//State of each pixel in the level based on
''// its underlying tile.
Public SpHD(,) As HitDT ''//State of each pixel in the level based on[code].....
I would enjoy being able to just give each sprite & tile its own 2D array of hit detection data (defining which pixels of the object are solid, dangerous, etc) that can be directly written to TiHD or SpHD at a specified offset.I'm willing to bet that .NET has a class that can do this for me.Presumably I would just have to pass TiHD or SpHD to the constructor, and then I would be able to use the object to indirectly modify the array with extended functionality (similar to using a Graphics object to modify a Bitmap). Is there such a class?
View 2 Replies
Apr 18, 2009
I have a mail application. While sending to each recipient I am writing to an XML file named mail.xml. I use the following code:
Dim from As String = txtFrom.Text
Dim txto As String = txtTo.Text
Dim subj As String = txtSubject.Text
Dim body As String = txtBody.Text
[Code]...
View 3 Replies
Jun 21, 2010
I have been searching the net for information on backing up files to cd from vb.net application cannot find anything?
View 2 Replies
Mar 22, 2010
how to write such app? Or maybe knows some nice tutorial? I would like to use System.Net.PeerToPeer namespace, but everything I can find about it is MSDN which I can't read without getting mad. Or maybe using "old-school" TCP/IP would more efficient?
View 1 Replies
May 17, 2008
I am currently making an old school adventure game for a college project, it uses an Access database (dbGameStats) which has the primary key (gameStatsId) which is an auto number. The main form of the game holds the data bindings, dragged into text boxes, and the various screens of the game are shown over the top of the main form. So on the main form I have highscore and player name text boxes, bound to the corresponding database fields, when running the program, the user enters a name, the highscore field is altered as the game progresses and when the user exist the database is updated using this:
[Code]...
View 2 Replies
Sep 17, 2009
I have two files like this
File one
[2 11.63 39.7] X7.705 Y0.735 209.037
Open -209.037
18N694 P321 117461, 50374 100MIL;
[code]...
what i need to do is from file 1 let say my line is like this
[2 11.63 39.7] X7.705 Y0.735 209.037
Open -209.037
18N694 P321 117461, 50374 100MIL;
from the line i must take P321 and match with my File2 if i find the mathing line like this
12N709 11.3611 4.9474 P321 L6 BOTTOM 100MIL 43-CHISEL X11.3611Y4.9474 1922 0
then i must take the value beside P321 which is L6 and write it in my original file like this
[2 11.63 39.7] X7.705 Y0.735 209.037
Open -209.037
18N694 P321 117461, 50374 100MIL; L6
How we can do this. To get the P321 from my file 1 can i use regex pattern like this P*[0-9]. And how to match the regex pattern with file 2 write the content ?
View 1 Replies
Apr 13, 2012
i have made a program that converts a number you put into a text field into hex What i now want to is to be able to write that variable into the file as hex still [code]if that worked that is what i want to do but it doesn't can you help me
View 12 Replies
Apr 2, 2010
my problem is how i can write this code
SCHTASKS /Create /S system /U domainuser /P password /SC MINUTE /MO 5 /TN rtest2 /TR calc.exe /ST 12:00:00 /SD 15/09/2001 /ED 15/09/2001 /RU runasuser /RP *
in .bat flle using vb.net2003?
View 2 Replies
Oct 4, 2008
This is my first post and I'm not sure if this is the best place for this but I hope so. I am currently making my own very basic mp3 player. I have set it up to import songs and load their ID3 tags into a DataGridView. My problem is that I want to save these to a XML file. I know that I can easily save a DataSet to XML but I'm not sure how to convert my DataGridView into a DataSet or if there is another way to save it as an XML file.
View 3 Replies
May 17, 2011
I want to write a line into a text/.cfg filethe line is = name "ishtiak"i need a sapce between name & "ishtiak"the text "ishtiak" is loading from a textbox called textbox1....i dont want in the text box my name like this "ishtiak" it will be withot "" like this ishtiakbut in the text file it will add "" before & after my nameso the question is1.how to add space between name & "ishtiak"? like this = name "ishtiak"2.My textbox text will be ishtiak,but it will be written like this "ishtiak"Here is My Project Screen & Project Code
Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
[code].....
View 3 Replies
Jan 13, 2009
I am kinda a newbie to programming. I am looking to switch a KVM switch via a VB (express 2008) program.Which would require me to write {SCROLL LOCK}, {SCROLL LOCK}, and {UP ARROW} out of the PS/2 port (or out of a serial port). I have tried using the Keybd_event function, but this is apperently not what the KVM is looking for. Currently I have the PS/2 port hooked directly to the switching port of the KVM switch and an additional keyboard plugged in USB (the computer has found both ports).
View 1 Replies
May 20, 2009
I have information entered into a text box on an ASP.net 3.5 page. when i click the submit button i would like this information written to a sql server database. what I need to do to accomplish this. The end-user should not see anything.
I am using visual web developer 2008. the event handling code is placed in a separate file using vb.
View 5 Replies
Aug 12, 2009
i want to retrieved data from MS Access by select the date using date time picker. so my problem is how to write the sql statement.
My code is as below:
sql = "SELECT * FROM summary WHERE line = '" & cbLine.Text & "' AND date = '" & dtp.Text & "'AND plants = " & cbPlant.Text & ""
Mentor Edit:
View 1 Replies
Oct 24, 2009
I have an array that varries in number of values, depending on the information . I am trying to write the array values in a line in this format:Clients ("John,"Samantha","Joe")in this example I used Three values in the array, but in some senarios there might be more or less number of values.what would the best way to write this line in between brackets as I mentioned in the Eample.
View 4 Replies
Dec 23, 2010
Basically I want to write to a database, lets say called testdatabase, and I want to write to a table called dbo.Test_table, under three different colums named one two three. How do I go about this? I created a data set connection to the database but it sits on the right hand side with the other forms and I dont know how to use it or write to those colums in the tables.
View 3 Replies
Feb 17, 2010
Using vb.net asp.net 1.1 sql server 2005 I'm want to show content in a label. No need for binding just for show. I should know my way out of this but I'm having some trouble. I'm only displaying the last item in the label with this code below.
The XML:
<?xml version="1.0" encoding="utf-8" ?>
<Content xmlns="http://tempuri.org/Content.xsd">
<Item id="1">
[Code]....
View 1 Replies
Feb 20, 2010
I can't seem to write to my database. No errors came up These is my code and declarations
Imports System.Data
Imports System.Data.OleDb
Imports System.Net
Imports Microsoft.VisualBasic
Public Class frmChange
[Code]...
My mdb file has all the tables set. The database isn't being copied to the bin folder
View 4 Replies
Aug 21, 2009
I am throwing up my hands here a bit. I am long time VB programmer that "scuttled the ship" and moved to VB.NET recently. I have purchased a small fortune in some good books and read large swaths of them. I have also watched numerous online video, Beth Massi, etc. I have learned quite a bit. But I am really lost when it comes working with SQL Server. Do I use bound grids? Do I use datasets? Why would I not use a bindingset? How do I iterate over the retrieved dataset, the list seems to go on an on. It seems far to complicated to me. So here goes. I have a form to enter a vendors info into. I want to connect to the SQL server and grab various fields on the form and perform an Insert. Can somebody show me simple straight forward code to do this and why I would do it this way vs. the other seemingly million ways. Also how about an Update call to (modify an existing vendor, I have a unique id I can query on in the table)? I can put in all the error checking (Trys) and such - its the connection call and gory details of this that seem to perplex me. I have recipe books that spend to much time on more complex things. I need simple.Also can someone recommend a good classroom training series for VB.NET in the greater Boston area.Learning from experts in person is best for me. I will be back later to ask about datagrids some.
View 11 Replies
Jul 15, 2009
Okay im trying to write a TXT file, but also keep the contents already in the file.
For example
Before Program Run:
Sample123.txt reads:
[code].....
View 6 Replies
Jun 12, 2012
I am trying to wrote to the registry but it redirect to the wow6432node instead of where I want it, how do I fix this?
[Code]...
View 4 Replies
Mar 30, 2009
I'm starting to get into the microcontrollers and I was wondering if anyone had any experience using visual studio and/or visual basic writing drivers and application software for USB Devices and using different microcontrollers from Atmel and Microchip?
If you know of any good websites or anything out there that would get help get me started that would be great.
View 2 Replies