Jump to content

DeDee

Members
  • Posts

    9
  • Joined

  • Last visited

DeDee's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I found a solution, but I could not make it work with AdlibRegister() and AdlibUnRegister(). If anyone can explain how to use these functions it would help. while 1 If ($CurrentTime == $startTime) Then $timer = timerinit() do //execute function Sleep(1000) until timerdiff($timer) >= $duration*1000 ExitLoop Else $CurrentTime = _NowTime(4) EndIf WEnd
  2. Ok. First of all I tried to use AdlibRegister, and I don't understand how this is really working - though it says that checkes every x min/sec...it checks one time for me. Is AdlibRegister not a good option to solve my problem, or am I not using it correcty? #include <Date.au3> $StartTime = "18:24" AdlibRegister("_Check",1000*60) $duration=30000 While 1;just idle around Sleep(1000) WEnd Func _Check();every minute we check $CurrentTime = _NowTime(4);the current time ConsoleWrite("CurrentTime="&$CurrentTime&"---"&"StartTime="&$StartTime) If ($CurrentTime == $StartTime) Then MsgBox(0, "Test", "Execute my function") $timer = timerinit() do ;here will execute function until timerdiff($timer) >= $duration; EndIf AdlibUnRegister();unregister the running function Exit;and exit EndFunc
  3. Hi I'm trying to write a program where I need to have a function executed at a certain start time and then repeat execution for a duration. I tried different combinations, but it does not seem to work. Can you share some ideas please?
  4. Hi I'm trying to create an autoit script to execute remotly some UI web tests. I tried the examples from this page, used psexec, and I was able to execute remotly the script BUT in kid of silent mode, no UI. I saw that the process was started, and remains opened.I don't see the tests being launched. Can you help with some suggestions? Thanks
  5. Thank you, jdelaney The script works perfectly.
  6. Thanks for the replies. I guess I was not that clear in my initial description - I need to write an autoit script that will return me the XPaths (to attributes and nodes) from an xml. The script should be able to parse any xml file and send all the XPaths. Thanks
  7. Yes, that was the first thing to check. But, as I said, the functions use XPath as input data, not return data.
  8. Hi How can I get all XPaths from an XML file - (any xml file and any xpath)? I see that all functions for XMLs will retrieve data based on XPaths but I did not see any example for getting the XPaths. What would be the best approach to to this? Thank you,
  9. Hi Is there a script for Fast Array Write from Excel? I see that it takes a lot of time for this as well - when using big Excel files. Thank you!
×
×
  • Create New...