Jump to content

Archer

Active Members
  • Posts

    23
  • Joined

  • Last visited

Archer's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Done.... I checked some topics in Autoit forum and found it may be caused that I debugged this code at IE9. I just now compiled and run against a IE 8 env. and everything's OK. But still, why IE9 cannot work? Does Autoit need to fix it or a MS bug?
  2. I think the easiest way to do this is to use "net share" command. Try "net share /?" in the command window and you will see what parameter you could have. Also, the batch file (.bat) could be written as data-driven.
  3. Hi, all I need to click the Login button after filling the Username/password. Now I could successfully set UserName/Password but how to use _IEActions to click the Login button which has a onclick behind (<INPUT onclick="return validate();" value="Log In" type="submit"> of the HTML code below). Thanks for your help! I tried to get it via below code but cannot work. Is it because it's not a Object or something else? I'm not familiar with HTML so could you please help me out? Thanks. $oInputs = _IETagNameGetCollection ($oIE, "input") For $oInput In $oInputs MsgBox(0, "Form Input Type", "Form: " & $oInput.form.name & " Type: " & $oInput.type) If $oInput.type = "submit" Then MsgBox(0, "!!!!!!!!!!!!", "submit") _IEAction($oInput, "click") If @error Then MsgBox(0, "Error", @error) EndIf ExitLoop EndIf Next Below is part of HTML code. <DIV align="center"> <FORM method="POST" name="loginForm" action="/LoginServlet"> <TABLE border="1" cellSpacing="0" cellPadding="0"> <TBODY> <TR> <TD> <TABLE cellSpacing="0" cellPadding="2" width="200"> <TBODY> <TR bgColor="#336699"> <TD colSpan="2"><FONT color="#ffffff" face="Helvetica"><STRONG>Login</STRONG></FONT></TD></TR> <TR bgColor="#cccccc"> <TD> Username: </TD> <TD><INPUT name="username" size="20" type="textbox"></TD></TR> <TR bgColor="#cccccc"> <TD> Password: </TD> <TD><INPUT name="password" size="20" type="password"></TD></TR> <TR bgColor="#cccccc"> <TD colSpan="2" align="center"><INPUT onclick="return validate();" value="Log In" type="submit"> <INPUT value="Reset" type="reset"></TD></TR></TBODY></TABLE></TD></TR> </TBODY></TABLE><!-- <table border="1"> <TR><TD>User Name</TD><TD><input name="username" type="text" value=""/></TD></TR> <TR><TD>Password</TD><TD><input name="password" type="password" value=""/></TD></TR> <TR><TD colspan="2" align="center"><input value="Login" type="submit"/></TD></TR> </table> --><INPUT name="requestURL" value="/BuildSta.jsp?type=Test&amp;version=1.21" type="hidden"></FORM></DIV> [More Information] I tried _IELinkClickByText or something else, it doe NOT work.
  4. After I replied this topic, I could download it. Thanks.
  5. Sorry I cannot dowload the PDF. -------------------------------------------------------------------------------- Sorry, an error occurred. If you are unsure on how to use a feature, or don't know why you got this error message, try looking through the help files for more information.
  6. Ohhhhhh, Thanks.
  7. Thanks. It works. I wonder to know that why @error = 0 does not work as I expected?
  8. No. I just wonder to know that the DirRemove() has been successfully removed the folder, why return error code 0? If you run the script you got know that the folder exists but in the next steps, the log show "fail to delete....", just here, why?
  9. Of course the folder exists. You could refer the script above and the folder was created before DirRemove.
  10. Hi, all That's a little weird. If I use the following code to test the DirRemove() function, the failure would be shown in the log. However, I did not open this folder or something and I do have the admin permission. Why? One more thing to mention is that although the error code is 0 but the folder is gone..... Why this? If it could be delete the folder totally, it should be successful with returning code 1. ------------------- #include <File.au3> $csLogFileFullPath = "test.log" $sFileName = "C:\Test1" DirCreate($sFileName) If FileExists($sFileName) Then _FileWriteLog($csLogFileFullPath, $sFileName & " exists.") EndIf DirRemove($sFileName, 0) If @error = 0 Then _FileWriteLog($csLogFileFullPath, "Failed to delete folder " & $sFileName) Else _FileWriteLog($csLogFileFullPath, "Delete folder " & $sFileName & " successfully!") EndIf ------------------- DirRemove() Return Value Success: Returns 1. Failure: Returns 0 if there is an error removing the directory (or if directory does not exist).
  11. Hey, I don't think there's any work round for that.
  12. Code like this: ---------- Run("d:\autoplay.exe") WinWaitActive("somthing here") ..... ---------- The issue is that I launched this script using psexec which is a service in the background. I could see the script process and autoplay.exe in the task manager but there's no log output since the script did not detect the window. I tried to use @SW_Enable but no use...... Although I could work out the workround, that, add the script in the startup/registry to make it self-start when the system start, and reboot the system. But I wonder if there's the better way to resolve it.
  13. Hi, all I did an installation scipt. But I would like to let it run in the background, such as, I remote a computer, upload the script and send a command to run. I tested following the steps above, and I could see the script process in the task manager. BUT, It does NOT work. Is there any way to resolve it? Thanks all.
  14. RDP to the VM and debug the script is OK. Doubt that the VMWare filter some event......
  15. Hi, all I wrote my script in a VM(Using Vmware 6.0.x and switch the window as full screen) and the script will be used in the VM. However, I have found that the MouseMove and MouseClick don't work at all. I installed the autoitv3 in my physical computer and try the example code in MouseMove function and IT WORKS. Err, so, the MouseMove and MouseClick and also there're something I don't find out, don't support use in VM?
×
×
  • Create New...