4
Contributors
4
Replies
29
Views
1 Month
Discussion Span
Last Post by Reverend Jim
0

Perhaps you'd like to emply 'mates8.dll' (in the attached file there is an example). There needs to be a reference to the dll and the imports statement. Then, you may parse simple expressions calling the Expression.parseExpression method.

mates8daniweb.PNG

Imports m8 = mates8

Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click
        Try
             Dim expr As m8.Expression = m8.Expression.parseExpression(tBoxExpression.Text)
            tBoxResult.Text = expr.ToString
        Catch ex As Exception

        End Try
    End Sub
End Class

Edited by xrj

0

You can do it using AutoIt (free). If you create the AutoItX object within your program you can get the value in the calculator by

calc = "Calculator"

If aut.WinExists(calc) Then
    result = aut.WinGetText(calc)
Else
    MsgBox(calc & " window not found")
End If
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.