Jump to content

abhayc

Members
  • Posts

    6
  • Joined

  • Last visited

abhayc's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi I want to start writing a script to automate some tasks in Microsoft Active directory. Basically, I want to be able to connect to an already open AD window, get the user list, double click on each user name, click on reset password and set new password. Can some one help me with a basic script that could become a starting point for the same ? I tried using AutoInfo on AD window, but not able to get class names etc. for the list, buttons etc.
  2. Hi I have a VB6 app that uses SSDataWidgets control to display a list and I can type in as well. Basically it is a dropdown combo. Autoit Info tool says that the classname is "SSDataWidgetsEdit". I am able to get handle of the control, click on that control, type text into that control, but not able to get control of the list/datagrid within that control. I need to be able to make a selection in the list depending upon a value that I am picking up from a FVR file. Also the application requres that I select something using mouse, since I tried sending "down arrow" keystroke but is not working. Find attached screenshots .. any help really appreciated ! thanks
  3. I have a problem with _IETableGetCollection .. I need to access a table in a HTML page. I am able to do it using _IETableGetCollection. But my problem is, content of the final generated HTML is dynamic in the sense, the table order may change. Is there any built in function or a user defined function where in we can locate the table by say table id, or some text inside first cell of the table ... ? I am thinking of writing a function myself where in I parse the html body and look for the 'text' and thus locate the table #, or something like that, but just wanted to check if someone was already in the same boat and has figured out a better way to handle this. Thanks Abhay
  4. I wrote a daemon script that checks every 1 sec if there is a Javascript Alert with a certain message .. Do WinWait("Microsoft Internet Explorer", "test on the popup") ControlClick("Microsoft Internet Explorer", "OK??", "[CLASS:Button; TEXT:OK; Instance:1;]") Sleep(1000) Until 1=2 Compile this script to exe and execute on the machine where you are running your main script .. may not be a real clean solution, but atleast worked for me. Cheers.
  5. were you able to resolve this ? I have read so many posts, but no real answer for this one .. atleast what others suggested is not working for me. I tried many things, like WinWaitActive, WinActivate, ControlClick, IEAction but no use. here is my code ( simplified case ) TEST.HTML ---------- <HTML> <script> function test() { if(confirm("OK??")) location.href="test2.html"; } </script> <BODY> HI <a href="#" onclick="test()">Test Link</a> </BODY> </HTML> TEST2.HTML ------------ <HTML> <BODY> Test 2 </BODY> </HTML> AutoIt script -------------- $oIE = _IECreate ("http://localhost/test.html") _IELinkClickByText($oIE,"Test Link") WinWaitActive("[TITLE:Microsoft Internet Explorer; CLASS:#32770; ]","OK??") ControlClick("[TITLE:Microsoft Internet Explorer;CLASS:#32770]", "OK??", "[CLASS:Button; TEXT:OK; INSTANCE:1]") Exit
×
×
  • Create New...