|
Dim cAutoit As New AutoItX3Lib.AutoItX3
cAutoit.Send("{DOWN}")
System.Threading.Thread.Sleep(150)
cAutoit.Send("{ENTER}")
Using this code on a hotkey, I'm trying to make the hotkey navigate the halo trial menu to start a server.
The problem is that no natter how I adjust the pause it is always incomplete, (It will skip keypress, or do nothing all together.)
I need it to press: "down, enter, down, down, down, down, Enter" consistently without fail can someone PLEASE help me?
|
|
|
|
|
Here at CP? Probably not.
But, at the AutoIt forums, here[^], yes, they probably could.
|
|
|
|
|
|
Hi
Is there any software using VB on Production Planning for Manufacturing Company with Source Code.
Thanks
|
|
|
|
|
Quite possibly; a Google search would give you some answers.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Google It...
Tarun Mangukiya
|
|
|
|
|
Jagjit Saini wrote: Is there any software using VB on Production Planning for Manufacturing Company with Source Code
Yes
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
I have an MDI Parent with menu strip. There are two MDI Child forms. I want the first MDI Child to fill the parent for which I have used the Dockstyle.Fill which is working fine. But the second child form I want it to be Center screen and have set the Start Position in the properties. But when I open the second child first time from the menu it fills up the Parent. If I close it and open again then it shows center screen. Can anybody help me to solve this problem?
|
|
|
|
|
Set the WindowState of the first MDI-child to Maximized, would work better ith Windows - the docking works better if you're dealing with controls inside a panel-control. Once that is fixed, the other Window will no longer be confused by the Docked Window.
Make sure the second window is neither docked, nor maximised.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Thanks a lot Eddy.
It actually started working after removing the Dockstyle property.
Thanks again
|
|
|
|
|
Great, glad it worked
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
It is a known problem with MDI.
if the first window is set with either dock or windowstate all subsequent windows will inherit that setting.
The only way I have around it I have found is to either change these settings before opening the second window or to set the size of the first window manually, i.e. Form1.size = new size(100,100) where you would replace the "100" with the actual size that you want etc.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Yes Simon, You are absolutely right. It worked once the Doskstyle settings were removed.
Thanks for the explanation.
|
|
|
|
|
your welcome
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
It's not really a "known problem", but is, in fact, the expected behavior.
Too many people use MDI without knowing what it's really designed to do. The vast majority of those people don't even need to use MDI.
|
|
|
|
|
How do I to change the cursor for a left-mouse-button drag initiated from the shell (not the form)?
I don't want to use the standard vb.net cursor, I'd like to use a custom cursor and even better, use the cursor that the shell is using before it hits my form.
Can you point me in the right direction please
Mark
|
|
|
|
|
Well, it's possible to override the default cursors you see during a drag'n'drop operation, but it's not pretty.
See this series of articles on MSDN[^]. Yeah, it's so complicated that it's covered by a series of articles!
It's not that bad really, depending on your skill level of course.
|
|
|
|
|
Thanks Dave! I did read through that article and boy, you're right. The amount of code it takes to duplicate the behavior of the shell is more then the syntax check parser I've been writing.
I'm thinking out loud here but I wonder if I could simply trap the cursor through the message pump instead. I would still need to create a custom cursor and deal with the int24 already being captured by the left mouse button press but maybe I wouldn't have to write a novella to produce the same results
Mark
|
|
|
|
|
You could trap the cursor, but as soon as it crosses the border of your form the image changes. You basically have no control over the cursor image during a drag'n'drop operation unless you implement the interfaces in that article.
You don't have to code all this yourself. I went through it and found that, in one of the downloads in the last (?) article in the set, there is a compiled .DLL you can just add to your project. You'll have to go through the article to find out how to use it. It's not that hard to use.
|
|
|
|
|
Hello all,
I have a small vb program that converts xml file into csv format. My problem is the save part. When I choose a different folder to save to, it saves the ‘csv file’ to the same folder I chose the ‘xml file’ from. And there is nothing in the folder that I had chosen to save to. I’ve tried a few things with the FileStream and adding SaveFileDialog with no success. Any suggestions would be appreciated.
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click
Dim xdoc As XmlDocument = New XmlDocument
Dim xnode As XmlNode
Dim outwriter As StreamWriter
Dim outfile As FileStream = New FileStream((txtFile.Text + ".csv"), FileMode.Create)
Dim SaveFileDialog1 As SaveFileDialog = New SaveFileDialog()
SaveFileDialog1.Filter = "csv.files(*.csv)|*.csv|All files (*.*)|*.*"
SaveFileDialog1.FileName = txtFile.Text
SaveFileDialog1.RestoreDirectory = True
If SaveFileDialog1.ShowDialog() = DialogResult.OK Then
xdoc.Load(txtFile.Text)
xnode = xdoc.DocumentElement
outwriter = New StreamWriter(outfile)
getsubnode(xnode, outwriter)
outwriter.Close()
outfile.Close()
End If
End Sub
|
|
|
|
|
Why are you not doing anything with the SaveFileDialog other than showing it?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
You're not using the filename specified by the SaveFileDialog. You're using the filename specified by a textbox with a csv extension added to it.
The problem lays in this line:
outwriter = New StreamWriter(outfile)
|
|
|
|
|
can i ask a code for round robin using visual basic? tnx for ur help
|
|
|
|
|
mikel19 wrote: can i ask
Sure you can ask. It's unlikely you will get anything. You have not specified what it is that you think that "round robin" is and you have not told us what you have tried to do for yourself.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Round Robin Scheduling? Your question is pretty vague. Most people are not going to try and guess what you are talking about. Please be more clear as to what you are trying to accomplish and what you have done so far.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|