how to transfer txt to another window
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
9 posts
Page 1 of 1
Hi i have yet more help needed i am using shell to open a exe but i want textbox1 and textbox2 to copy that data in the exe that opens how could i go about doing this?
<a href="http://www.points2shop.com/s/xbox_point ... 5082"><img src="http://points2shop.com/images/promotion ... ricoxg.gif" border="0"/></a>
I myself haven't tried it, though I do know it is through command line arguments.
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

Tutorial about this a while ago: viewtopic.php?f=38&t=7320
You could put both TextBoxes' value in the same String, and then use it as an array in the other program
You could put both TextBoxes' value in the same String, and then use it as an array in the other program

comathi wrote:Tutorial about this a while ago: viewtopic.php?f=38&t=7320This is getting closer but not quiet i mean my exe is like a client like runescape or wizard101 or lol and wow so let's say i am making launcher like i am for lol i want textbox1 to fill user of lol and textbox2 to enter password on launch so like
You could put both TextBoxes' value in the same String, and then use it as an array in the other program
Code: Select all
shell("\path to file\continued\program.exe")
"what code here for textbox1 and textbox2 to paste for launcher then click start"
<a href="http://www.points2shop.com/s/xbox_point ... 5082"><img src="http://points2shop.com/images/promotion ... ricoxg.gif" border="0"/></a>
Using the code I posted, this is how it could be done:
First application:
First application:
Code: Select all
Second application:
Process.Start("\path to file\continued\program.exe", username & ";" & password)
Code: Select all
Note: the code for the second application could be placed in the Form_Load event.Dim msg As String = Command()
Dim commands() As String = msg.Split(";")
TextBox1.Text = commands(0)
TextBox2.Text = commands(1)
comathi wrote:Using the code I posted, this is how it could be done:oh ok i get error on username password it say like due to protection level something...
First application:Code: Select allSecond application:Process.Start("\path to file\continued\program.exe", username & ";" & password)
Code: Select allNote: the code for the second application could be placed in the Form_Load event.Dim msg As String = Command() Dim commands() As String = msg.Split(";") TextBox1.Text = commands(0) TextBox2.Text = commands(1)
this is my code:
Code: Select all
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim msg As String = Command()
Dim commands() As String = msg.Split(";")
TextBox1.Text = commands(0)
TextBox2.Text = commands(1)
Shell("\ProgramData\KingsIsle Entertainment\Wizard101\Wizard101.exe", TextBox1.Text & ";" & TextBox2.Text)
End Sub
<a href="http://www.points2shop.com/s/xbox_point ... 5082"><img src="http://points2shop.com/images/promotion ... ricoxg.gif" border="0"/></a>
If the program accepts command line arguments you could use those, otherwise you might need to set the text with other methods such as window messages.
#mandai
Can i have a example maybe like if what you loading is a client like a game launcher i want to take like wow or lol or wizard101 and make it as you type user and password in text boxes to transfer to that window and launch game.
Can i have a example maybe like if what you loading is a client like a game launcher i want to take like wow or lol or wizard101 and make it as you type user and password in text boxes to transfer to that window and launch game.
<a href="http://www.points2shop.com/s/xbox_point ... 5082"><img src="http://points2shop.com/images/promotion ... ricoxg.gif" border="0"/></a>
I'm not familiar with those games but the code would depend on how the windows are designed and what controls are being used.
There is an example here that can set the text of a notepad window: viewtopic.php?f=21&t=5727&p=43511#p43452
You can use EnumChildWindows to get a list of control handles from a window.
There is an example here that can set the text of a notepad window: viewtopic.php?f=21&t=5727&p=43511#p43452
You can use EnumChildWindows to get a list of control handles from a window.
9 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023