Jump to content

shx

Active Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by shx

  1. OK, thanks for the help
  2. I am confused in how to determine whether the navigate action timed out. It seems from the documentation below that the return code is not valid in this determination. And other methods need to be employed to determine the success. Can someone help in but this might mean? What with these other methods be? Thanks I now see that the way to do this might be with _IEPropertyGet Can anybody comment on a workable method?
  3. JLogan3o13, Much thanks and gratitude to you. Your information helped me out and I was at my wits end. Steven
  4. I thank you for your help but I don't know if you understood what I am trying to do. I don't see where the information in your link would help me. Here is a link to someone who wants to do something similar http://stackoverflow.com/a/5852995 I think that there is solution there in C#. Thanks again.
  5. Let me see if I can explain what I'm trying to do. I would like to start explorer.exe as the windows shell programmatically. When Windows starts up instead of running Explorer which is the standard shell of Windows, I have developed a replacement. The registry is updated to point to this replacement so it starts up automatically when Windows starts. what I would like to do is when I exit exit this replacement have explorer run as the window shell. If I enter control alt delete to start the task manager and I do file > new task and run explorer.exe it will start the explorer windows shell, but if I run explorer.exe with a shellexecute or a run it just opens up a regular file explorer window. So to sum up, what I am trying to do is to be able to programmatically from an autoit script start the Windows Explorer shell and I can't seem to do it. I hope I was understandable. Any help would really be greatly appreciated. This is a Windows7 64bit computer environment. Steven
  6. Tripredacus, Many thanks. Your suggestion worked. Would you know if there is a way of opening up that device as if it was clicked in windows? Steven
  7. When my Ipad is plugged into my windows7 computer I can see it appearing under mobile devices. Is there any way for an autoit script to retrieve the mobile devices plugged in. ( or any other way of knowing if an Ipad is plugged in. Thanks Steven
  8. I am trying to automate logging in to a website. I am able to have the user id and password entered using an autioit script but can't get the login button clicked. Here is my code. #include <IE.au3> Local $oIE = _IECreate("http://www.helpkidzlearn.com") Local $oForm = _IEFormGetObjByName($oIE, "form1") Local $oUserName = _IEFormElementGetObjByName($oForm, "Login1_UserName") Local $oPassword = _IEFormElementGetObjByName($oForm, "Login1_Password") _IEFormElementSetValue($oUserName, "xxxxxxxxx") _IEFormElementSetValue($oPassword, "yyyyyyyyyy") to click the login button I have tried _IELinkClickByText($oIE, "Login1") _IELinkClickByText($oIE, "Login1_LoginButton") _IELinkClickByText($oIE, "ctl00$Login1$LoginButton") _IEFormImageClick($oIE, "ctl00$Login1$LoginButton", "name") _IELinkClickByIndex($oIE, 19) and can't seem to get it to work. Here is the appropriate code (it think, not really know html) <div class="AspNet-Login" id="Login1"> <fieldset> <label for="Login1_UserName" id="Login1_emailLabel">Username:</label> <input name="ctl00$Login1$UserName" type="text" id="Login1_UserName" /><span id="Login1_EmailValidator" class="valid" style="visibility:hidden;">*</span> <label for="Login1_Password" id="Login1_passwordLabel">Password:</label> <input name="ctl00$Login1$Password" type="password" id="Login1_Password" /><span id="Login1_PasswordValidator" class="valid" style="visibility:hidden;">*</span> <input type="submit" name="ctl00$Login1$LoginButton" value="Login" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$Login1$LoginButton&quot;, &quot;&quot;, true, &quot;HeaderLogin&quot;, &quot;&quot;, false, false))" id="Login1_LoginButton" class="register filter" /> <input type="submit" name="ctl00$Login1$RegisterButton" value="Register" id="Login1_RegisterButton" class="login filter" /> </fieldset> <div id="Login1_fail" class="fail"> </div> </div> Any help would be greatly appreciated. Steven
  9. Thanks BrewManNH I didn't try it out yet but I think it needs the pipe character to accept an sql script. I'm also confused how you used single and double quotes.
  10. thanks BrewManNH, but it didn't help. Because when I just run the part before the < it works. I think that I am starting the program, "c:Program FilesmysqlMySQL Server 5.1binmysql.exe" . Because when I just run the part before the < it works. the problem is the < of the file
  11. I tried it with the single and double quotes that you sow and it still does not work. The black dos window opens and something quickly scrolls and it closes.
  12. thanks for your suggestion but it didn't work
  13. Could the pipe char < be the problem?
  14. I am trying to run the MySQL command processor to process some sql statements. If I open a dos command window and submit the following it works. "c:\Program Files\mysql\MySQL Server 5.1\bin\mysql.exe" -u root < "c:\sqldata\CreateUsersAndDatabases.sql" but I can't get it to work using either a shellexecute or a run. Thanks Steven
  15. Thanks for getting back to me. One question that I have been maybe you could answer is the following. I am executing three SQL statements and have a multi statement flag turned on. The first statement executes successfully and the second one fails. So what I find is that this third statement is not attempted and what is returned to the program is a zero and not a minus 1( that would indicate an error.) Is this the correct behavior? Steven
  16. Hi all, I don't know if my question was clear but what I am asking is how can I have multiple sql statements execute as one transaction and if one fails all will be rolled back and that the return code returned to the executing program will reflect that there was an error? Steven
  17. Hello, I have multiple-statement execution turned on and what I'm trying to do is have all the SQL statements executed as one transaction. So I turned off auto commit using _MySQL_AutoCommit() and it still doesn't execute as one transaction. My first SQL statement is executed successfully then the next statement fails and the third statement also does not get executed I guess because the second statement failed. However was the first statement was successful return code that I receive is a zero. My question is how can I have all the statements executed as one transaction and if one of them fails should get a return code of -1. Thanks Steven
  18. Capturing the SQL error code I am testing out trying to insert a duplicate using _EzMySql_Exec . What I'm finding is that even though the code fails because it is trying to insert a duplicate it doesn't come back with an error and an SQL error message. ( looking at @error and & _EzMySql_ErrMsg(). Is there any way of capturing SQL errors that occur? Steven
  19. Great, exactly what I am looking for.
  20. I'm sorry. I meant to say that I want to know if I can do this without passing anything through the command line. The called script will do different things whether it was clicked on directly as an icon or started from another autoit process.
  21. Is there a way for autoit program to know if it was started by clicking on an Icon or if it was started by being launched from another autoit program. I would like to do this passing something through the command line. Thanks
  22. Hi everyone, Is there any way to programmaticly, using autoit, to set the windows7 taskbar to autohide or at least set it that it should sit on bottom of full screen applications. Thanks Steven
  23. O.K. guinness, thanks, I'll test it out.
×
×
  • Create New...