garmon648 Posted November 19, 2008 Share Posted November 19, 2008 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 More sharing options...
Andreik Posted November 19, 2008 Share Posted November 19, 2008 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 More sharing options...
garmon648 Posted November 19, 2008 Author Share Posted November 19, 2008 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now