TsunamiZ Posted August 3, 2012 Report Share Posted August 3, 2012 May I suggest to add a way to get system uptime? I want to make a macro that doesn't run unless a certain amount of system uptime has elapsed. BTW: I use Windows 7. Quote Link to comment Share on other sites More sharing options...
Cory Posted August 3, 2012 Report Share Posted August 3, 2012 I don't think so. But you could do it with the External Script command and a VBScript using WMI. Quote Link to comment Share on other sites More sharing options...
Dan Davis Posted August 4, 2012 Report Share Posted August 4, 2012 When I create a macro with nothing but "alt-tab" in it, the script it generates is as follows: ============================== <MACRO PLAYBACK SPEED Speed='1"/> <MOUSE MOVE Option ="\x01" X="195" _PROMPT="0x000A" /> ============================== So, where's alt/tab????? Quote Link to comment Share on other sites More sharing options...
Cory Posted August 5, 2012 Report Share Posted August 5, 2012 Dan why did you post this here? Quote Link to comment Share on other sites More sharing options...
lemming Posted September 19, 2012 Report Share Posted September 19, 2012 Hi, you can launch the built-in Windows util systeminfo.exe and capture the output in a variable. However, this util can be slow because it tries to gather a lot of other info about your system. Also it only shows "System Boot Time", so you'd have to parse through a lot of other info and also perform additional calculations to determine uptime. On the plus side, systeminfo.exe is installed on every Windows PC (since Win XP I believe), and you do not have to specify its exact location since it resides in the default Windows path. An easier method would be to use the uptime.exe utility which you can get for free at http://uptimeexe.codeplex.com/ It's a command-line util which does not have to be installed. Just copy it to anywhere. It runs in a split second and will report your boot time and also your uptime. I've written a script that parses the info from uptime.exe into separate variables. You can add additional logic for your purposes. -Lemming System Uptime for TsunamiZ.mex May I suggest to add a way to get system uptime? I want to make a macro that doesn't run unless a certain amount of system uptime has elapsed. BTW: I use Windows 7. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.