Jump to content

shx

Active Members
  • Posts

    58
  • Joined

  • Last visited

shx's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  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
×
×
  • Create New...