Jump to content

Kryten68

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Kryten68

  1. Hi, Despite searching help and buying the .pdf ( Your Quick Guide ), I'm still at a complete loss as to how to begin automating Internet Explorer. I do a lot of Powershell Scripting..I thought that AutoIT would be pretty straightforward to pick up, but I'm really struggling. Please, could someone point me in the right direction. Maybe a sample script to even just activate IE and send some text, move the mouse and send a click, would be great. I don't mean to sound ungrateful, but I've posted here before and got replies like "Yes it can be done". Or "Yeah thats easy." I'd really appreciate a little bit more. Normally with a new technology I buy the book, read it then expect to be able to do a little bit with it. AutoIT not so, which is a shame as it seems to offer so much. Thanks, Stuart
  2. Hi, Thanks for this, yes. I've been using Aspect for a very long time and I'm a huge fan of it. However, for the applications that I have in mind either AutoIt or Powershell will be better for two main reasons:- [1] For example, depending on what the terminal window gets back from my session host I may need to query a database..populate a GUI etc. Which tends to get a bit more involved in that language than I want to get. [2] My customer is considering pulling the plug on the use of telnet. Curses. No telnet means no Procomm. Thats why I'm now keen to use AutoIt or Powershell. So far I can get EVERYTHING I need going, except reading the input going to the terminal window. Hope this explains why I want to use AutoIT. Cheers, Stuart
  3. Hi, I'd like to be able to read data coming into my data terminal session in Procomm Plus and have my AutoIt script analyse that data, then automate what is done next. I can get AutoIt to start Procomm and make the (telnet) connection to the target(s), I can automate the keys that are sent, generally this is fine, but figuring out how to read the incoming strings from the targets is the final bit in the jigsaw for me. Would be very grateful for any pointers. Thanks, Stuart
  4. Look at what you are doing. Your exactly right. Thats all that was wrong. Thanks for pointing out my schoolboy error! Cheers, Stuart
  5. Hi, Thanks for this. When I run this code notepad pops up but nothing else happens Any thoughts appreciated! Cheers, Stuart
  6. Hi, I'm trying to put a script together to automate same data input to a 3rd party GUI. My data exists as line separated variables in two .txt files (tns.txt and dns.txt). I need to read the first line from tns.txt and send it, then do stuff. Then send the 1st line from dns.txt and do a bit more. Then repeat with line two from each file, and so on. Here is what i have so far:- Sleep(5000) ; Just to give me time to activate the 3rd party GUI. $tn = FileOpen("D:\posh\tns.txt", 0) ; Open first file $dn = FileOpen("D:\posh\dns.txt", 0) ; Open second file ; Read in lines of text until the EOF is reached While 1 ; Begin LOOP $tn = FileReadLine($tn) ; Read first tn value $dn = FileReadLine($dn) ; Read first dn value If @error = -1 Then ExitLoop ; test for error condition Send($tn) ; send first tn value Send("{enter}") ; send an enter key press Send($dn) ; send the dn value Send("{enter}") ; send an enter key press Sleep(500) ; wait half a sec WEnd ; repeat until ... This is a simplified example of what I'm struggling with. If this would work then my bigger script will work too. This example reads the first values and sends them just fine but just sends enter key presses for the other values. It also seems to damage my tns.txt and dns.txt file too, filling them with return presses? Any guidance much appreciated! Thanks, Stuart FileClose($dn) FileClose($tn)
  7. Hi, I'm a Powershell scripter bleeding over into AutoIT as I 'think' for this challenge AutoIT would be better. I also have experience scripting in Aspect and VBScript. I'd really appreciate a steer on whether AutoIT is my friend for the task in hand... There is a IE based web app which my customer uses for managing various aspects of their business. Nothing too clever about it, a few controls etc but mostly just buttons and textboxes. I would like to both automate this application & gather data out of this web app and use that data as input arguments to another IE web application completely different to the first one. Essentially users are manually taking the data out of one app and typing it all into the other one. Repeat ad-infinitum. I'm not really asking how to do this, as I'm happy to go away and learn. I'd just like to know if I'm in the best place by trying to use AutoIT for this. Thanks! Stuart
×
×
  • Create New...