| View previous topic :: View next topic |
| Author |
Message |
emperus Expert Cheater
Reputation: 0
Joined: 24 Jul 2007 Posts: 142 Location: Amd Phenom 2.2ghz Triple Core
|
Posted: Sun Dec 16, 2007 7:47 am Post subject: Updating text(Visual Basic) |
|
|
i create a properties window and then a textbox says: google
what code should i use on a button to update the text??
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sun Dec 16, 2007 7:51 am Post subject: |
|
|
What do you mean by updating?
You mean replacing?
_________________
|
|
| Back to top |
|
 |
emperus Expert Cheater
Reputation: 0
Joined: 24 Jul 2007 Posts: 142 Location: Amd Phenom 2.2ghz Triple Core
|
Posted: Sun Dec 16, 2007 7:54 am Post subject: |
|
|
| yes
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sun Dec 16, 2007 7:55 am Post subject: |
|
|
Well that's easy, I'm not sure if you meant this though
Add this to the command1 click event:
| Code: | | Text1.Text = "Google2" |
_________________
|
|
| Back to top |
|
 |
emperus Expert Cheater
Reputation: 0
Joined: 24 Jul 2007 Posts: 142 Location: Amd Phenom 2.2ghz Triple Core
|
Posted: Sun Dec 16, 2007 7:59 am Post subject: |
|
|
no it's not that.
like on firefox your homepage is google you change to cheatengine and click apply
apply button click event
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sun Dec 16, 2007 8:01 am Post subject: |
|
|
I don't use FF so I'm not sure what you're talking about
You can set the textbox to get a certain property using a timer such as:
Text1.Text = Webbrowser1.LoactionURL
_________________
|
|
| Back to top |
|
 |
emperus Expert Cheater
Reputation: 0
Joined: 24 Jul 2007 Posts: 142 Location: Amd Phenom 2.2ghz Triple Core
|
Posted: Sun Dec 16, 2007 8:14 am Post subject: |
|
|
no...
a textboxbox contains your homepage and when you change it and click apply button it replaces
aplly code
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Sun Dec 16, 2007 8:16 am Post subject: |
|
|
| You can't do that because you're not using your own browser engine.
|
|
| Back to top |
|
 |
emperus Expert Cheater
Reputation: 0
Joined: 24 Jul 2007 Posts: 142 Location: Amd Phenom 2.2ghz Triple Core
|
Posted: Sun Dec 16, 2007 3:15 pm Post subject: |
|
|
| and with my own browser?
|
|
| Back to top |
|
 |
TheIndianGuy Advanced Cheater
Reputation: 102
Joined: 14 Jan 2007 Posts: 85
|
Posted: Sun Dec 16, 2007 5:51 pm Post subject: |
|
|
| your going to have to be a little more clear if you want an answer. from what i have read i'm not sure if you want the text from the textbox to navigate on the web browser control or if you want a textbox to display the name of the website. i may be wrong and you may want something else. if you do try to be more clear, maybe tell us what your trying to make.
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Sun Dec 16, 2007 7:37 pm Post subject: |
|
|
| emperus wrote: | | and with my own browser? |
Hahahaha.
You REALLY don't get it do you? You're not using your own browsing engine - only Internet Explorer.
Last edited by Pseudo Xero on Mon Dec 17, 2007 2:54 am; edited 1 time in total |
|
| Back to top |
|
 |
emperus Expert Cheater
Reputation: 0
Joined: 24 Jul 2007 Posts: 142 Location: Amd Phenom 2.2ghz Triple Core
|
Posted: Mon Dec 17, 2007 2:53 am Post subject: |
|
|
on internet explorer on tools... options you can change your homepage when you click ok the changes are saved and the ok button as a code.
whats the code
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Mon Dec 17, 2007 6:39 am Post subject: |
|
|
i think he's trying to "make the text box display the same thing everytime"... aka saving settings
there's a high chance that i get this one wrong though
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Dec 17, 2007 7:21 am Post subject: |
|
|
| blland wrote: | i think he's trying to "make the text box display the same thing everytime"... aka saving settings
there's a high chance that i get this one wrong though |
Not sure if thats it, sounds more like he wants to set the default homepage when the browser loads like Internet Explorer and such do.
If this is the case, save the settings of your browser into a configuration file, or use Internet Explorers default page which can be read from the registry at:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
The key is 'Start Page'.
Read up on how to read and write to the registry to obtain this value and to change it. Then when your program starts, read this keys value and have your browser navigate to it if you wish to use the users default homepage from IE.
_________________
- Retired. |
|
| Back to top |
|
 |
Haxory' Grandmaster Cheater Supreme
Reputation: 92
Joined: 30 Jul 2007 Posts: 1900
|
Posted: Mon Dec 17, 2007 1:36 pm Post subject: |
|
|
i think i get it
| Code: | Private Sub BACK_Click()
WebBrowser1.GoBack
End Sub
Private Sub Form_Load()
WebBrowser1.Navigate ("www.google.com")
End Sub
Private Sub REFRESH1_Click()
WebBrowser1.Refresh
End Sub
Private Sub GO_Click()
WebBrowser1.Navigate (Text1.Text)
End Sub
Private Sub FORWARD_Click()
WebBrowser1.GoForward
End Sub
Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
Text1.Text = (WebBrowser1.LocationURL)
c.Caption = (WebBrowser1.LocationName)
End Sub |
so if the form you load should open your homepage use this
so change this:
| Code: | Private Sub Form_Load()
WebBrowser1.Navigate ("www.google.com")
End Sub |
To
| Code: | Private Sub Form_Load()
Dim Bla As String
Bla = Val(Yourhomepage.Text)
WebBrowser1.Navigate Bla
End Sub |
im not sure if it works but i atleast tried
|
|
| Back to top |
|
 |
|