PJSantos100
New member
- Joined
- Apr 28, 2014
- Messages
- 2
- Programming Experience
- 3-5
Hi Guys, first of all let me say this forum is great and there are a lot of expert people here....
I'm facing a problem when i try to run my app. I have a code to click and extract info from a website and based on that information i need to do some calculations and send it again to the site, the code is working well but i need to put some messagebox in the middle to work (i started just to debug the code).
So let's say i have 3 main functions like (Calculation, Right and wrong)... When it does the calculation the app see if I'm right or wrong and base on that i'll call the right/wrong function.... then I'll come back to the calculation....
This is the calculation function: In the 1st and 3rd line its the messagebox that i placed just to debug ......
Anyone has a clue???
I'm facing a problem when i try to run my app. I have a code to click and extract info from a website and based on that information i need to do some calculations and send it again to the site, the code is working well but i need to put some messagebox in the middle to work (i started just to debug the code).
So let's say i have 3 main functions like (Calculation, Right and wrong)... When it does the calculation the app see if I'm right or wrong and base on that i'll call the right/wrong function.... then I'll come back to the calculation....
This is the calculation function: In the 1st and 3rd line its the messagebox that i placed just to debug ......
Private Sub calculos() MessageBox.Show("start calculos", "Inicio") System.Threading.Thread.Sleep(5000) MessageBox.Show("timer passed") TextBox5.Text = Ultima_App Dim htmlElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("input") For Each el As HtmlElement In htmlElements ' Le o Bet Size do SITE If el.GetAttribute("id").Equals("BetSizeInput") Then TextBox2.Text = el.GetAttribute("value") End If Next Ultimo_Val = CDbl(Val(TextBox2.Text)) Dim allelements As HtmlElementCollection = WebBrowser1.Document.All Resultado = WebBrowser1.Document.GetElementById("LastBetInfoProfit").InnerHtml TextBox3.Text = Resultado If Resultado > 0.0 Then TextBox4.Text = "Acertou" Call Acerto() ElseIf Resultado < 0.0 Then TextBox4.Text = "Falhou" Call Falha() End If End Sub
Anyone has a clue???