Jump to content

T0m4s

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by T0m4s

  1. I GET IT RUNNING ... Very amazing. I have to start the compiled script as Administrator. I am working in an active directory controlled company network. My account already have local administration rights, but it seems thats not enough. Thanks for help anyway!
  2. It shows only 1 window running with taht name. I was wondering also, but the space is correct. [47]0x0005063C [48] Installation0x000F076E [49]C:Windowssystem32cmd.exe0x001806D8 [50]AutoIt v30x001A077E [51]AutoIt v30x00280768 [52]AutoIt v30x00130746
  3. does not help. $res = ControlClick($kTitle, "", "[ID:1]") ConsoleWrite("Result of ControlClick: " & $res &@CRLF) Sleep(5000) $res = Send("!w") ConsoleWrite("Result of Send: " & $res &@CRLF) will result in 324 - 327 Result of ControlClick: 1 Result of Send: 1 So it seems to be that everything is ok, but in the setup program nothing happens. If nothings helps, i will try it on Windows XP
  4. Doesnt work, i tried several different methods, but no one work.
  5. Nope, and exactly this is the problem. No actions are startet if i use ControlClick() or Send().It seems that i cant send to this window, but the return of the functions is always ok.
  6. Thanks! This is my script: #cs --------------------------------------------------------- Automatic installation for CARD STAR /medic2 und CARD STAR /memo3 USB driver #ce ---------------------------------------------------------- ; start programm Local $result = Run(@ComSpec & " /c " & "setup_USB251.exe") Local $kTitle = " Installation" if $result > 0 Then WinWaitActive(" Installation", "") $aPos = ControlGetPos($kTitle, "", "[ID:1]") ; Do some errorchecking If IsArray($aPos) Then ; Now choose one of these and comment out the other ConsoleWrite($aPos[0] & " - " & $aPos[1] & @CRLF) $res = ControlClick($kTitle, "", "[ID:1]") ConsoleWrite("Result of ControlClick: " & $res &@CRLF) Sleep(5000) Else ; And then the matching one of these ConsoleWrite("Error" & @CRLF) EndIf Else MsgBox(0, "Error", "could not Run setup. error = " & @error ) EndIf Output from SciTe console: >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:tempautoItScriptstest1.au3" /UserParams +>10:49:33 Starting AutoIt3Wrapper v.2.1.0.33 Environment(Language:0407 Keyboard:00000407 OS:WIN_7/Service Pack 1 CPU:X64 OS:X86) >Running AU3Check (1.54.22.0) from:C:Program FilesAutoIt3 +>10:49:33 AU3Check ended.rc:0 >Running:(3.3.8.1):C:Program FilesAutoIt3autoit3.exe "C:tempautoItScriptstest1.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop 324 - 327 Result of ControlClick: 1 +>10:49:42 AutoIT3.exe ended.rc:0 >Exit code: 0 Time: 9.818 AutoIt Window Info Tool output: Uploaded with ImageShack.us
  7. Please read the first post. It includes all informations. Why AU3recorder show version 3.3.7.0 ? Maybe its the version of AU3recorder. Please read the first post. If the setup would be a java application then it would not be an exe file, is this correct? And as i wrote i use to start the setup : Run(@ComSpec & " /c " & "setup.exe") I also wrote in the first Post, that all the Controls are recognized by "Autoit Window Info Tool" so i assume that this is no Java programm. I have only 2 Posts left now. Please read the first post!
  8. It is a setup of a USB driver for german health care terminal, i am sure you will not know it. "What happens here" is the question regarding the output form AU3recorder. Why do the recorder not record? also this piece of code : #region ---Au3Recorder generated code Start (v3.3.7.0) --- #region --- Internal functions Au3Recorder Start --- Func _Au3RecordSetup() Opt('WinWaitDelay',100) Opt('WinDetectHiddenText',1) Opt('MouseCoordMode',0) EndFunc Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc AU3RecordSetup() #endregion --- Internal functions Au3Recorder End --- #endregion --- Au3Recorder generated code End --- is the output from AU3recorder. If you miss error checking here, then i can say, that i miss the recorded things also. If you miss error checking in the other code snipets, then pls have in mind that they are only examples to demonstrate what is not working for me. I think the problem i have is more general than only missing error checking Are there any issues with WIN 7 and Autoit or should it wourk without any problems?
  9. Hi Forum, i want to automate a setup. Normally it should work without problems but i struggled at the point when i want to start the setup. When i use Run("setup.exe"); it will not work. I have to use Run(@ComSpec & " /c " & "setup.exe") instead. Then the Nighmare begins. I want to use ControlClick() to simulate the clicks on the Buttons that will continue the Setup Process. I used Autoit Window Info Tool to examine the correct controll IDs, but with no success, no clicks are processed. Then i tried to send Keys. I checked the Keys i have to send and try to send them. WinWaitActive(" Installation", "") Send("!i") or Send("{ENTER}") But it seems that no keystrokes are send to the setup programm. Then i read about the AU3Recorder integrated in Scite editor. But this recorder does not record correct. Output from Au3recorder: #region ---Au3Recorder generated code Start (v3.3.7.0) --- #region --- Internal functions Au3Recorder Start --- Func _Au3RecordSetup() Opt('WinWaitDelay',100) Opt('WinDetectHiddenText',1) Opt('MouseCoordMode',0) EndFunc Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc AU3RecordSetup() #endregion --- Internal functions Au3Recorder End --- #endregion --- Au3Recorder generated code End --- What happens here? Please help My System: Win 7 32 Bit Pro SP1 Autoit 3.3.8.1
×
×
  • Create New...