Jump to content
Sign in to follow this  
gcue

dllcall disables other functions?

Recommended Posts

gcue

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)

Share this post


Link to post
Share on other sites
weaponx

Why would you try dllcall from a shared folder like that? You should be calling it from the local drive.

Share this post


Link to post
Share on other sites
gcue

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

Share this post


Link to post
Share on other sites
weaponx

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

Share this post


Link to post
Share on other sites
gcue

oooo so theres no way to get a remote pc's uptime?

Share this post


Link to post
Share on other sites
weaponx

You use WMI:

#126042

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  

×