Sign in to follow this  
Followers 0
garmon648

Creating an output window

3 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

I had tried that but apparently I had syntax wrong. Yours worked though.

Thanks!

Share this post


Link to post
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
Sign in to follow this  
Followers 0