Jump to content

sleepy

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by sleepy

  1. I am changing a script to use variables rather than hard coded information. Most of the changed strings have work; except, where there are two variables. So how do I fix this stirng. $current = RunWait("file-check.au3.exe", $scriptpath, $count, "", @SW_MINIMIZE) NOTE! If I replace $scriptpath with the real path it works. Yet $scriptpath is working in other code lines in same script. I have tried a number of ampersigns with no luck. Any pointers???
  2. Well thanks for the direction, but still have the same problem, my three scripts do close all windows and then exits.
  3. I have a simple do loop and within the loop I need it to run commands one after the other. I have the loop set now to 3 and I expect each runwait to be called one after the other. I am however seing that each runwait is called 3 times then the next one. What am I missing here. ; Set the counter $count = 1 ; Execute the loop "until" the counter is greater than 5 Do ; Print the count ;MsgBox(0, "COUNT NUMBER", "Count is:" & $count, 3) RunWait("E:\share-main\Autoit\RGDK\reboot.au3.exe", "", @SW_MINIMIZE) RunWait("E:\share-main\Autoit\RGDK\telstar-getuptime.au3.exe", "", @SW_MINIMIZE) RunWait("E:\share-main\Autoit\RGDK\file-check.au3.exe", "", @SW_MINIMIZE) ; Increase the count by one $count = $count + 1 Until $count > 3
  4. Thanks Ill look into the use of this.
  5. This is a repost, still trying to figure this out. Yes I am new to Autoit so I have to ask. If you open a window say a dos or telnet window and you send a command. How do you get what is returned? Or can I some how poll or scan the window for text? Autoit has a buildin tool called "send" I did not find a get, read, or receive.
  6. Thanks that did it, man I spent way too much time on trying to figure that out. Thanks JS !!!!
  7. I want to use send("some text" & $somevar "somemore text" & $somevar2 "somemore text" & $var3) In my script I have the variables defined and I can use them one at a time. When I mix the plain test string with cariables I get script errors with the quote at the start, if I remove the quote I get missing " at the start. Anyone have an example of send using text and variables?? thanks!!! Sleepy
  8. AHHH Thanks!!!!
  9. I can't find a kill or quit control for autoit scripts and or exe file. Being new to this tool and developing I make mistakes and can't stop the script. If I bring up the process control the script seams to start interacting with that or any window I open. In automationanywhere you can just do escape?
  10. From Harry Nash New user! Hello, I use autoit to access an open putty ssh shell as well as windows command terminals. I am able to send in the window a command I just can find a receive function or read from terminal fuction. Currently I am sending commands to a lynux system that runs a test, I won't know when it is finished. I tried winGetText I only see a 0 returned.
  11. Thanks that worked, I will examin Control as well later.
  12. I was asked to do some testing of AUTOIT to see if it might fit into a framework to automate software testing. I am working with a device that needs configureations done through a browser I/O. So I find I am doing a lot of send("{tab}") followed by sleep(200). In some cases I may send 11 make a selection then send 15 more. I need to know how to make a function say named tapto; in this function it expects a number to be passed from the script. So I would do tabto 11 and expect the code to execute a tab with a sleep 11 times. While I did find function in the command instructions I can't get it to work. I did not find help in the FAQ. I guess I am looking for more examples how and where are they created and called. Thanks. OH I am using V3
×
×
  • Create New...