Jump to content

Kasteel

Active Members
  • Posts

    20
  • Joined

  • Last visited

Kasteel's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi How can I stop / exit my script after 5 min? Would like the rest of the script to run stuff during the 5 min though. But needs to exit when 5 min is reached. Would appreciate any help
  2. I need to simulate CPU usage for a performance test. In other words I need to keep the CPU busy where this will simulate as if a user is working on the computer.
  3. Hi I need to simulate 20% (more or less) of CPU usage. Is this possible to do with AutoIT? Thanks
  4. Thanks for your help
  5. Hi This is going to be a stupid question but I hope someone can help. I have a timer in my script which logs the time in seconds it took for the script to complete. In the middle of my script i use a sleep command of 5 seconds. I would like to subtract the 5 seconds from the total time before I write the final results. Any ideas would be appreciated. Here is my existing code: $timer=TimerInit() I DO SOME STUFF HERE sleep(5000) <------ I want to subtract this 5 seconds from the timer before I wright the results to the text file $handle = Fileopen("c:\logs\times.txt",1) ; Open the target file FileWriteline($handle,Round(TimerDiff($timer)/1000,1)) ; Append text to the target file FileClose($handle) ; Close target file
  6. I tried that but had no luck.
  7. Hi I am using WinWaitActive to wait for a screen to come up before I continue. The problem is that the screen header will sometimes say "Test1" and other times it would say "Test2". Is it possible to specify 2 dailog text strings for it to wait for? Example: WinWaitActive("Test1") OR WinWaitActive("Test2") Any help would be appreciated. Thanks
  8. Awesome!! Thanks for the replies.
  9. Hi Thanks for the quick reply. It does not have to be DateDiff. The code you showed me is very cool. Can you please explain how it works? Still new to AutoIT. Thanks
  10. Hi Is it possible to capture a "Start time" and an "End time" in AutoIT and then do a DateDiff between the 2 that will display the difference between the 2 times in seconds only? Any help would be appreciated. Thanks
  11. Wow - you are amazing!! Thanks for your help - I really appreciate it. Last night I came accross @DesktopCommonDir which gave me a bit more info but your code works 110% on my pc. Thanks.
  12. Hi I am able to list desktop icons that were created by a user with the following code: CODE#include <Array.au3> #include <File.au3> $DESK_FILES = _FileListToArray(@DesktopDir) _ArrayDisplay($DESK_FILES) Is there a way to get a list of everything on the desktop, including shorcuts and icons like My Computer, My Documents, etc. Would appreciate any help
  13. Hi The above code does not list the "My Computer", "My Documents" icons. It only lists user created icons on the desktop. Any idea how I can list everything?
×
×
  • Create New...