
shx
Active Members-
Posts
58 -
Joined
-
Last visited
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by shx
-
_IENavigate - determining if timed out.
shx replied to shx's topic in AutoIt General Help and Support
OK, thanks for the help -
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?
-
programmatically starting the Windows Explorer shell
shx replied to shx's topic in AutoIt General Help and Support
JLogan3o13, Much thanks and gratitude to you. Your information helped me out and I was at my wits end. Steven -
programmatically starting the Windows Explorer shell
shx replied to shx's topic in AutoIt General Help and Support
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. -
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
-
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
-
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
-
Can't seem to click a button on a web Page - using IE function
shx replied to shx's topic in AutoIt General Help and Support
O.K my apologies. -
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("ctl00$Login1$LoginButton", "", true, "HeaderLogin", "", 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
-
Can't run something using shellexecute or run
shx replied to shx's topic in AutoIt General Help and Support
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. -
Can't run something using shellexecute or run
shx replied to shx's topic in AutoIt General Help and Support
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 -
Can't run something using shellexecute or run
shx replied to shx's topic in AutoIt General Help and Support
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. -
Can't run something using shellexecute or run
shx replied to shx's topic in AutoIt General Help and Support
thanks for your suggestion but it didn't work -
Can't run something using shellexecute or run
shx replied to shx's topic in AutoIt General Help and Support
Could the pipe char < be the problem? -
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
-
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
-
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
-
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
-
EzMySql UDF - Use MySql Databases with autoit
shx replied to Yoriz's topic in AutoIt Example Scripts
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 -
Determine how an autoit application was started
shx replied to shx's topic in AutoIt General Help and Support
Great, exactly what I am looking for. -
Determine how an autoit application was started
shx replied to shx's topic in AutoIt General Help and Support
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. -
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
-
Can I disable UAC in Windows 7 using Autoit
shx replied to shx's topic in AutoIt General Help and Support
O.K. guinness, thanks, I'll test it out. -
Can I disable UAC in Windows 7 using Autoit
shx replied to shx's topic in AutoIt General Help and Support
O.K thanks a million