Jump to content

burton

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by burton

  1. perfect... thanks. But I must say AutoIt has become a lot more complicated
  2. _IEFormSubmit($oForm) OK - I got the correct syntax, now it is just the above that isnt correct. There is a "Log-in" link to click on, whereas the above command just tries to submit a form. The log-in command will be somewhere within this code: <td valign="center"><a href="java script:void login();" onmouseover="window.status='Log-in'; return true;" onmouseout="window.status=''; return true;" style="font-weight: bold">log-in</a></td> <td><img src="images/blank.gif" width="5" height="1"></td> <td valign="center"><a href="java script:void login();" onmouseover="window.status='Log-in'; return true;" onmouseout="window.status=''; return true;"><img src="images/b_arrow.gif" width="5" height="9" border="0"></a></td> <td><img src="images/blank.gif" width="150" height="1"></td> <td valign="center"><a href="java script:void windowclose()" style="font-weight: bold">Close</a></td>
  3. Thank you... this seemed to work for the pin2, but that came in the first field. So I tried Send("{TAB}") to go to next input field, but the password then came in the address bar (at the top!) instead of to the next field. Is that because the TAB is not used beforehand, so it is as if when you open a browser and press TAB it just goes to the url at the top?
  4. Thank you... but this does not send the curser to the field where the USER ID ist within the browser?
  5. ControlSend("WINDOW TITLE", "", "romo", "USER ID") Can somebody modify this line for me so it works ????
  6. OK i am trying the ControlSend method. #include <IE.au3> $oIE = _IECreate ("www.WEBSITE.php") WinWaitActive("WINDOW TITLE") WinSetState("WINDOW TITLE", "", @SW_MAXIMIZE) ControlSend("WINDOW TITLE", "", "romo", "USER ID") Sleep (3000) Send("{TAB}") Send("PASSWORD") Send("{ENTER}") The cursor doesnt move to the input field though and no text is inserted. So it doesnt go to the right section in the browser. Here is some code from the source: <form method="post" action="romo.php" enctype="multipart/form-data" name="romo"> function login() { document.forms['romo'].pin.value = document.forms['romo'].pin2.value; document.forms['romo'].password.value = document.forms['romo'].password2.value; document.forms['romo'].pin2.value = ""; document.forms['romo'].password2.value = "";
  7. OK I got my IE browser set correctly to the requested website. How do I now get to access the first input field in the browser? Must this be done by _IEDocInsertText ? I used to do it the simple way by adding the amount of TABS it needed, but this doesnt seem to work anymore in the latest version!
  8. could someone please rewrite the code for me so it works? I am just a novice at this.... many thanks in advance :">
  9. The following script used to work before updating to Windows XP Pro, AutoIt v3 and IE7... so I dont know which update caused this error: "(Null) could not be found. Make sure name is correct any retry. Click on Start and Search to search for a file" Here is my code: run ("D:\Programme\Internet Explorer\IEXPLORE.EXE") WinWaitActive("Google") Send("!S") Opt("WinWaitDelay", 1500) Send("www.WEBSITE.php") Opt("WinWaitDelay", 2500) Send("{ENTER}") WinWaitActive("WINDOW_TITLE") Opt("WinWaitDelay", 2500) Send("{TAB 2}") Send("ID_NR") Sleep (3000) Send("{TAB}") Send("PASSWORD") Send("{ENTER}") ;Opt("WinWaitDelay", 2500) ;WinSetState("WINDOW_TITLE", "", @SW_RESTORE) ;WinSetState("WINDOW_TITLE", "", @SW_MAXIMIZE)
  10. Hello, I do an automatic backup via batch-file in the autostart (backup.bat). Because I dont want this to be done every time I restart my PC, can somebody send me a script how to use it in conjunction with AutoIt, so that the program first checks if a backup has already been done on that specific day??? The backup files are on drive D:, and one of the files is named WAP00001.MDB or archive.pst (Outlook). The date of last backup is shown in that directory in Windows Explorer. Thanks in advance for any explanations, Ralph
  11. hi I have my backup done automatically upon each start-up with XCOPY. The above is saved as a BATCH-file (*.bat) and added to the Autostart-folder. How can Auto-It check the last backup date beforehand and if it coincides with the 'today's date' which is already saved on my harddisk, to then skip the backup? Could someone please post me the solution?
  12. I did actually think of that, but didnt get round to doing it. Shouldnt it have been able to maximize directly, even when partly off the screen? Thanks anyway, it has done it like that...
  13. I have my script working, but the last step fails. There is no error message, so it should be working. Maybe the problem is, that my WINDOW_NAME's title is the same as the previosly opened window, and I am not sure whether it tries to maximize the already maximized, previous window. I dont think it is the case though, because the window I want maximized is activated once the script has finished. Does the fact that the window is over-sized and off the screen cause a problem? Here my script: WinSetState("WINDOW_NAME", "", @SW_MAXIMIZE) Is there a different command for opening a window in windows explorer, or how do I use the AutoIt Window Spy? Thanks for any help....
  14. Hi, Just downloaded and cant find how to enter simple text (e.g. insert a line of text in Word) and how can I make it do a TAB-Key??? (/t?) Thanks for all help....
×
×
  • Create New...