Jump to content

marshallprank

Active Members
  • Posts

    45
  • Joined

  • Last visited

marshallprank's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. thank you very much. Now its working with EXIT after Send("{ENTER}")
  2. this is all my script. My tool (converter) is not possible to share it because of rights.
  3. i tried also. The same problem is occured.
  4. i tested now with sleep(20000) on the end of script and i have assertet that as long as the script run it is unable to open the second OpenFile Dialog. when the sleep time is expred ,i tried to put manualy the link, the second OpenFile Dialog is coming. Is this issue familiar?
  5. The second OpenFile dialog is specific to my tool , that you can add a referenc xml file. You have to put in the first OpenDialog File the txt file and in the second the xml file.
  6. Here the code: #include <file.au3> #include <Process.au3> $Timeout=IniRead(@ScriptDir & "Config.ini", "TimeOut", "Timeout","NotFound") ; $ReportingPath=IniRead(@ScriptDir & "Config.ini", "ReportingPath", "ATSSystemTester","NotFound") $ScriptPath=IniRead(@ScriptDir & "Config.ini", "ScriptPath", "Script","NotFound") $LogFileName = "test.txt" $LogFilePath= $ScriptPath & $LogFileName ClipPut($LogFilePath) run($ReportingPath) WinWaitActive("ATS SystemTester","...",$Timeout) ControlClick("ATS SystemTester","...", "...") Send("^v") Sleep(3000) Send("{Enter}") Sleep(2000) till the step Send("{Enter}") works. After Send("{Enter}") the second OpenFile Dialog does'nt appear.
  7. Here is the actual code: $LogFilePath= $ScriptPath & $LogFileName ; this is on the Console: C:ABCtest.txt ClipPut($LogFilePath) run($ReportingPath) WinWaitActive("xx","...",$Timeout) ControlClick("xx","...", "...") WinWaitActive("Select file","",$Timeout) ControlClick("Select file","", "") Send("^v") Sleep(3000) Send("{Enter}")
  8. my tool working. And run($ReportingPath) works. If i do the same steps but wihout Send("^v") and when script ends than i put manualy with the keyboard Enter, than works and the second OpenFile Dialog appears. See the Code: $LogFileName = test.txt $ScriptPath=C:ABC $LogFilePath= $ScriptPath & $LogFileName ;C:ABCtest.txt $temp = FileOpen("temp.txt", 1) FileWrite($temp, $LogFilePath) $readLine=FileReadLine ("temp.txt", 1) run($ReportingPath) ; to call my tool WinWaitActive("ATS SystemTester","...",$Timeout) ; to open the first OpenFile Dialog ControlClick("ATS SystemTester","...", "...") ; to open the first OpenFile Dialog ClipPut($readline)
  9. This is my code: $LogFileName = test.txt $ScriptPath=C:ABC $LogFilePath= $ScriptPath & $LogFileName ;C:ABCtest.txt $temp = FileOpen("temp.txt", 1) FileWrite($temp, $LogFilePath) $readLine=FileReadLine ("temp.txt", 1) run($ReportingPath) ; to call my tool WinWaitActive("ATS SystemTester","...",$Timeout) ; to open the first OpenFile Dialog ControlClick("ATS SystemTester","...", "...") ; to open the first OpenFile Dialog ClipPut($readline) Send("^v") ; this will put the path C:ABCtest.txt in the field After the last step Send("^v"), the second OpenFile Dialog should appear. Also if i delete Send("^v") from my code and run the script, then i put manualy with the keyboard Enter, than works and the second OpenFile Dialog appears.
  10. Hi, i have a tool (txt in xml converter) which contains a OpenFiel dialog Button. If a click on this Button, i should choose a txt.file on my PC, when i choosed it the OpenDialog will disappear and another OpenFile Dialog will appear to select another file. i would to do this steps with AutoIt. It is not working properly. When the first OpenFile Dialog appear, i put the link of txt.file (C:\ABC\test.txt) with ClipPut(...) then i sent ENTER (Send("{Enter}")). After this Step the second OpenFile dialog does not appear. What is wrong? manualy wihtout AutoIt it is working when i put C:\ABC\test.txt then i put ENTER with the keyboard the second OpenFile Dialog will appear. thanks and Regards
  11. Hi, i have a txt file (@ScriptDir & "\temp.txt) with this Content (a link): C:\ABC\test.txt I do now: $readLine=FileReadLine ("temp.txt", 1) How can i copy now this link (like ctrl+c by windows) to use it in other application? (for example to be able to paste it with ctrl+v). Regards
  12. but i want this with XMLDomWrapper . I start to write my Code. It is like this; #include <Array.au3> #include <_XMLDOMWrapper.au3> $file = FileOpen("test.txt", 1) $XML = FileOpenDialog("", @ProgramFilesDir & "\autoit", "XML (*.xml)", 1) $XMLopen = _XMLFileOpen($XML) ConsoleWrite("Debug: $iRET = " & $XMLopen & @LF) $XMLcount = _XmlGetNodeCount("AutoitShare/Script") For $i = 1 To $XMLcount . . . Next any Idee how can i do my FOR-Loop ? Regards
  13. Hi, i have the following xml file: <DirectoryRef Id="FIRST"> <Component Id="X" Guid="{XX}"> <File Id="base.dll" Source="XXX"/> <File Id="x86.dll" Source="BBBB"/> </Component> <Component Id="Y" Guid="{YY}"> <File Id="base2.dll" Source="YYY"/> <File Id="x862.dll" Source="CCC"/> </Component> </DirectoryRef> <DirectoryRef Id="Second"> <Component Id="X" Guid="{XX}"> <File Id="base.dll" Source="XXX"/> <File Id="x86.dll" Source="BBBB"/> </Component> <Component Id="Y" Guid="{YY}"> <File Id="base2.dll" Source="YYY"/> <File Id="x862.dll" Source="CCC"/> </Component> </DirectoryRef> how can i get with _XMLDomWrapper.au3 the 'File ID' in 2 txt file --> txt files should be have in my Case: 1.txt file (for DirectoryRef Id="FIRST"): ------------------------------------------ base.dll x86.dll base2.dll x862.dll 2.txt file (for DirectoryRef Id="Second"): ------------------------------------------ base.dll x86.dll base2.dll x862.dll 10x :-)
×
×
  • Create New...