Jump to content

Rocker

Members
  • Posts

    4
  • Joined

  • Last visited

Rocker's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. xcaliber13, Thanks for the reply, I tried your suggestion and unfortunately it did not work, it's as if the code inserts the URL for the webpage and then the address bar looses focus, so the enter command has no effect. Rocker
  2. I apologize for my poor coding skills, but only on occasion do I have a need to automate a repetitious task to save time. In a nutshell the following code is supposed to go to a website, save the site using Scrapbook (a plugin used by an older version of Firefox), rename the folder in Windows Explorer that Scrapbook assigns a random name for and then moves on to the next website, of which there are hundreds. Everything works, except after the address bar gets populated with the URL, it's like the ENTER key never gets pushed. The weird thing is, this worked yesterday before I left to go home and when I came in this morning it didn't work. The next thing I'll be trying to learn is to loop this with a the list of the websites. Thank you for your help! WinActivate( "[CLASS:MozillaWindowClass]" ) ;Apply focus to the open Mozilla firefox window Sleep(500) Send("^k") ;Apply focus to the address bar Sleep(500) Send("www.WEBSITE.com {ENTER}") ;Send the website to the address bar Sleep(10000) ;Wait for the website to fully open Send("!c") ;Opens the drop down menu for Scrapbook Sleep(2000) Send("{ENTER}") ;Selects the default drop down selection of save Sleep(20000) WinActivate( "[CLASS:CabinetWClass]" ) ;Applies focus to the open Windows Explorer window where the websites are saved Sleep(1000) Send("{SPACE}") ; Selects a folder in the folders list Sleep(200) Send("{HOME}") ;Moves to the top folder Sleep(200) Send("{F2}") ;Keyboard shortcut to rename the folder Sleep(200) Send("www.WEBSITE.com {ENTER}") ;Applies the new name to the folder
  3. First of all, wow, I'm knocked out by the quick reply from multiple members, I didn't expect that! Second of all, I reiterate I am not a programmer, but I did get this test script to work, primitive to you guys, I'm sure there are better ways to do it. I notice that in all the AU3record generated scripts the first 23 lines are all identical, so I omitted them. This is what AU3Record writes for a script when I point, click, type etc. minus the 23 lines. (this doesn't work) _AU3RecordSetup() #endregion --- Internal functions Au3Recorder End --- _WinWaitActivate("classname=Shell_TrayWnd","") MouseClick("left",26,17,1) _WinWaitActivate("Start menu","") Send("iexplore.exe{ENTER}") #endregion --- Au3Recorder generated code End --- After looking at other code in your forums etc. I modified the AU3record script and created the below script - It goes to the start menu, types "iexplore.exe" into the search bar, opens IE, pauses, and does a simple search for the work "Dog" and that's it, but it does work. _AU3RecordSetup() #endregion --- Internal functions Au3Recorder End --- _WinWaitActivate("Start menu","All Programs") MouseClick("left",32,494,1) Send("iexplore.exe{ENTER}") Sleep(10000) Send("Dog{ENTER}") #endregion --- Au3Recorder generated code End --- Having said all this, I didn't have to change focus to another window, I only used the current active window. This also worked in our company's software, in a VM session. I hope to learn a lot more about Autoit, it's pretty amazing.
  4. I am new to SciTE and AU3record, I am not a developer, but could use this great tool for software testing if I can get it up and running. I believe I have it loaded correctly and some tasks work as advertised. I can use AU3record to move the mouse across the screen, open word, Excel and notepad and additionally can type text and numbers into all of them, I can't however type anything into the search bar of Internet Explorer. I can type into the URL block at the top but not into the search bar. Our companys software has integrated KVM for virtualization and I am not able to input text in those windows either. I have been reading the forums and have not come across anything on this topic, please point me in the right direction or let me know what I am doing wrong. Thanks.
×
×
  • Create New...