Jump to content

Creating an output window


 Share

Recommended Posts

I am new to AutoIt so forgive me for being a noob. I am working on a script that takes user input through some calculations to come up with several dosing mutipliers. I want to display all of the variables in the same window. I have tried guicreate but I can not firgure out how display the values of the variables. What is the best way to do this?

The code I am pasting shows eah value in a msgbox one at a time. it is very crude and simple at this point.....

;Input parameters for vanc dosing calculation

$crcl = InputBox("CrCl","Enter CrCl for Patient")

$abw = InputBox("ABW","Enter ABW for Patient")

$Cl = 0.695 * ($crcl/$abw) + 0.05

$Vd = 0.7 * $abw

$k = (($Cl*$abw) * 0.06) / $Vd

$T = 0.693 / $k

;Display dosing value

MsgBox('Cl','The Cl is: ',$Cl)

MsgBox('Vd','Vd is: ' ,$Vd)

MsgBox('k','k is: ',$k)

MsgBox('T1/2','T1/2 is: ',$T)

Thanks

Link to comment
Share on other sites

I am new to AutoIt so forgive me for being a noob. I am working on a script that takes user input through some calculations to come up with several dosing mutipliers. I want to display all of the variables in the same window. I have tried guicreate but I can not firgure out how display the values of the variables. What is the best way to do this?

The code I am pasting shows eah value in a msgbox one at a time. it is very crude and simple at this point.....

;Input parameters for vanc dosing calculation

$crcl = InputBox("CrCl","Enter CrCl for Patient")

$abw = InputBox("ABW","Enter ABW for Patient")

$Cl = 0.695 * ($crcl/$abw) + 0.05

$Vd = 0.7 * $abw

$k = (($Cl*$abw) * 0.06) / $Vd

$T = 0.693 / $k

;Display dosing value

MsgBox('Cl','The Cl is: ',$Cl)

MsgBox('Vd','Vd is: ' ,$Vd)

MsgBox('k','k is: ',$k)

MsgBox('T1/2','T1/2 is: ',$T)

Thanks

MsgBox(0,"RESULTS",'The Cl is: ' & $Cl & @CRLF & 'Vd is: ' & $Vd & @CRLF & 'k is: '& $k & @CRLF & T1/2 is: '& $T)

When the words fail... music speaks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...