Jump to content

dllcall disables other functions?


Recommended Posts

once i run the script below, i cant run other functions within the same script

memory used up? i tried doing a dllclose but that didnt work.

any ideas?

$aTSB = DllCall ("\\" & $asset & "\c$\winnt\system32\kernel32.dll", "long", "GetTickCount")
$ticksSinceBoot = $aTSB[0]

dim $iHours, $iMins, $iSecs
_TicksToTime ( $ticksSinceBoot, $iHours, $iMins, $iSecs )

$iDays = int($iHours / 24)
$iHours = $iHours - ($iDays * 24)

$uptime = ($iDays& " days and "&$iHours &" hours, "&$iMins & " Minutes" )

    Local $aText[3] = ["Dashboard", @TAB & "Status", @TAB & @TAB & "Idle"]
    Local $aParts[3] = [200, 175, -1]
    $dSTATUS = _GUICtrlStatusBar_Create($dGUI, $aParts, $aText)

MsgBox(0, "Check Uptime", $asset_label & " has been up " & $uptime)
Link to comment
Share on other sites

im trying to check the uptime of a remote machine ;-)

Just because you are running or opening something from a share doesn't it mean it runs on the remote machine. You will only get your system's uptime...

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...