Jump to content

vm2007

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by vm2007

  1. No i haven't tried it....can you please show me an example of how to use it....thnx
  2. Actually i am pretty new to AutoIT.... can you please shed some light as to how i will achieve what i have mentioned using IE functions?? Another thing that i want to point out is that text gets entered when i use 'Send' instead of ControlSend but i have read that we should avoid using 'Send' if window is not active.
  3. Thnx for your suggestion...i tried it but it did not work...still the same problem...The tab and Enter operations are happening but text provided is not being entered.
  4. Hi All, Help required!!!! I was using an autoit script without issues for handling login window on Chrome. But since Chrome updated to 2.29 the login window has changed and my script has stopped working. I made changes to the script but function ControlSend is now not sending the text. The script is as follows: sleep(10000) WinWait("[CLASS:Chrome_WidgetWin_1]","","20") ControlSend("[CLASS:Chrome_WidgetWin_1; Title:abc | Post - Google Chrome]", "", "[CLASS:Chrome_WidgetWin_0; INSTANCE:1]", "username{TAB}") ControlSend("[CLASS:Chrome_WidgetWin_1; Title:abc | Post - Google Chrome]", "", "[CLASS:Chrome_WidgetWin_0; INSTANCE:1]", "password{Enter}") In the above script the TAB and Enter work but the text is not typed. The earlier window (old version of Chrome) used to have different instance number for the 2 text box but the new one refers to both as Instance:1. Not sure whether this is the problem or not. Details using SPY >>>> Window <<<< Title: abc | Post - Google Chrome Class: Chrome_WidgetWin_1 Position: -9, -9 Size: 1938, 1050 Style: 0x17CF0000 ExStyle: 0x00000100 Handle: 0x0000000000120982 >>>> Control <<<< Class: Chrome_WidgetWin_0 Instance: 1 ClassnameNN: Chrome_WidgetWin_01 Name: Advanced (Class): [CLASS:Chrome_WidgetWin_0; INSTANCE:1] ID: Text: abc Position: 0, 70 Size: 1920, 971 ControlClick Coords: 866, 184 Style: 0x56300000 ExStyle: 0x00000000 Handle: 0x0000000000260894 >>>> Mouse <<<< Position: 866, 245 Cursor ID: 2 Color: 0xC2C2C2 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Authentication Required abc >>>> Hidden Text <<<<
  5. Finally i was able to make it work...I guess I did less research before jumping into this. The working script is as follows. It works even when RDP window is minimized. sleep(10000) WinWait("[CLASS:Chrome_WidgetWin_1]","","20") ControlSend("[CLASS:Chrome_WidgetWin_1; Title:TestPage3456 - Google Chrome", "", "[CLASS:ViewsTextfieldEdit; INSTANCE:2]", "vm2007{TAB}") ControlSend("[CLASS:Chrome_WidgetWin_1; Title:TestPage3456 - Google Chrome]", "", "[CLASS:ViewsTextfieldEdit; INSTANCE:1]", "abcdef{Enter}") Thanks everyone for your inputs...
  6. I tried the suggestions but it did not work. I have modified the script to this now: WinWait("[CLASS:ViewsTextfieldEdit]","","20") WinActivate("[CLASS:Chrome_WidgetWin_1]", "") ControlSend("[CLASS:ViewsTextfieldEdit]", "", "[CLASS:ViewsTextfieldEdit; INSTANCE:2]", "vm2007{TAB}") ControlSend("[CLASS:ViewsTextfieldEdit]", "", "[CLASS:ViewsTextfieldEdit; INSTANCE:1]", "abcdef{Enter}") But this does not work at all. The previous version at least used to work when RDP was in focus and maximized. The details of the window using Tool are like this ******************************************* >>>> Window <<<< Title: TestPage3456 - Google Chrome Class: Chrome_WidgetWin_1 Position: -4, -4 Size: 1928, 1054 Style: 0x17CF0000 ExStyle: 0x00000100 Handle: 0x00290788 >>>> Control <<<< Class: ViewsTextfieldEdit Instance: 2 ClassnameNN: ViewsTextfieldEdit2 Name: Advanced (Class): [CLASS:ViewsTextfieldEdit; INSTANCE:2] ID: 108113024 Text: Position: 894, 537 Size: 196, 19 ControlClick Coords: 53, 3 Style: 0x56000080 ExStyle: 0x00000000 Handle: 0x001706B0 >>>> Mouse <<<< Position: 947, 540 Cursor ID: 5 Color: 0xFFFFFF ************************* Any more suggestions as to what change do i need to make in the script so that it works in all scenarios??
  7. Sounds good to me...will come back after trying it out to let you know whether it worked or not. Thanks.
  8. The script is running on the remote machine.....I only use 'mstsc' for starting the execution which again i do on remote machine only and then I simply monitor it. There is nothing related to the setup on my main machine.
  9. Yes i access the machine (Win XP) using mstsc only.....the 2nd script works as long as the RDP window is maximized...i can even work on other applications on my main machine (I use 2 monitors and i can work on applications on 2nd monitor). So focus i guess is not the problem but if i minimize the RDP window then autoit fails to execute the steps i have mentioned. Is the script i mentioned correct? or do i need to enter some other parameters to it?
  10. Hi All, This is my first post. I am using Autoit for automation of our website. The script I have works fine if i run it on my machine and i have the same setup on a different machine which i access using Remote Desktop Connection. The script works fine on RDC only till the time i keep the RDC session maximized. If i minimize the window, the script runs but it does not do anything. Please help me. 1st Script that i was using. This works on my machine. WinWaitActive("[CLASS:ViewsTextfieldEdit]","","15") Send("vm2007{TAB}") Send("abcdef{Enter}") after reading the posts on forum i changed it to: WinWait("[CLASS:ViewsTextfieldEdit]","","20") ControlSend("", "", "[CLASS:ViewsTextfieldEdit; INSTANCE:2]", "vm2007{TAB}") ControlSend("", "", "[CLASS:ViewsTextfieldEdit; INSTANCE:1]", "abcdef{Enter}") The second one works even if i focus on something else on my primary machine but i need to keep the RDC session maximized. If i minimize it then it fails. I read something about ControlID but do not know how to use it in my 2nd script. Can that solve the problem?
×
×
  • Create New...