
mpcluever
Active Members-
Posts
38 -
Joined
-
Last visited
mpcluever's Achievements

Seeker (1/7)
0
Reputation
-
Help clicking to submit Google Form
mpcluever replied to mpcluever's topic in AutoIt General Help and Support
I am using IE.au3, but I'm not sure where to end the If and For functions. Not working without those. Did some more searching and came across a similar setup. This works #include <IE.au3> $oIE = _IECreate("https://docs.google.com/forms/d/1hEFvkQfDeqIOLW3QeyB-FmkCFuw2EPwKkc383X0MZEA") $oAs = _IETagNameGetCollection($oIE, "span") For $oA In $oAs If _IEPropertyGet($oA, "innertext") = "Submit" Then _IEAction($oA, "click") Next -
I've got a google form here https://docs.google.com/forms/d/1hEFvkQfDeqIOLW3QeyB-FmkCFuw2EPwKkc383X0MZEA I can't figure out how to click the submit button without using a mouseclick. I'd like it to run in the background. Any suggestions?
-
Clicking on a javascript button
mpcluever replied to mpcluever's topic in AutoIt General Help and Support
Here's the top part of the page source if that helps. I'm not great with reading html, but get the jist of it. The button I need is about 2/3 down. <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'><HTML> <HEAD> <TITLE>Access</TITLE> <META HTTP-EQUIV='PRAGMA' CONTENT='NO-CACHE'><META NAME='MS.LOCALE' CONTENT='en-us' /></HEAD> <script language='Javascript' src='/access/script/formValidation.js'></SCRIPT> <script language='Javascript' src='/access/script/listFunctions.js'></SCRIPT> <script language='Javascript' src='/access/script/global.js'></SCRIPT> <script language='Javascript' src='/access/script/xmldom.js'></SCRIPT> <script language='Javascript' src='/access/script/modxml.js'></SCRIPT> <LINK REL=stylesheet href='/assets/style/global.css' type=text/css> <LINK REL=stylesheet href='/assets/style/RH.css' type=text/css><BODY onload="if(parent.frames.length==0) parent.location='welcome.aspx';"> <IFRAME id="budgetIframe" name="budgetIframe" style="DISPLAY: none; Z-INDEX: 1; LEFT: 350px; WIDTH: 405px; POSITION: absolute; TOP: 150px;HEIGHT:85px" marginheight="0" marginwidth="0" noresize frameborder="yes" scrolling="no" src=/access/blank.aspx?sessionKey=zMQA7cmHeVL4FE1nS2%2bLp4qh3O4h5SVhAZ4bw9U%2fryiY5%2fxs5xaVk5%2fp%2fkWyYG7sGHPCX0Nhp50OpmON9dGZPF4fiO4YT0Vezk0Az6JvF%2f4yMX8%2fO7MsZl06wPIfG%2b4nBWGJnaDRKZPhTNo5h24nWLqT05YlW6nUMlgppC4HQfejneGZqWQGY4RGf6zHb4Ij></IFRAME> <FORM name="formMenu" action="/access/frmBrowse.aspx?sessionKey=zMQA7cmHeVL4FE1nS2%2bLp4qh3O4h5SVhAZ4bw9U%2fryiY5%2fxs5xaVk5%2fp%2fkWyYG7sGHPCX0Nhp50OpmON9dGZPF4fiO4YT0Vezk0Az6JvF%2f4yMX8%2fO7MsZl06wPIfG%2b4nBWGJnaDRKZPhTNo5h24nWLqT05YlW6nUMlgppC4HQfejneGZqWQGY4RGf6zHb4Ij" method="get" target="frmMain" onSubmit="goSearch(); return false;"> <TABLE cellspacing="0" cellpadding="0" border="0" width="100%" height="100%"> <TR> <TD width="100%" colspan="3"> <TABLE cellpadding="0" cellspacing="1" width="100%" class="siteBG"> <TR align="middle" class="siteBG"> <TD style="display:none" id="tdBtnHome" width="16%" bgcolor="white"><DIV id='div0' width='100%' class='lmClick'><A class=lmClick id=button0 href='javascript:GoRsi();'>Home</A></DIV></TD></TD> <TD style="display:none" id="tdBtnAccount" width="16%" bgcolor="white"> <DIV id="div1" width="100%" class="lmNormal"><A class="lmNormal" id="button1" href="Javascript:Navigate('button1','/access/account.aspx','div1')">Account</A></DIV> </TD> <TD style="display:none" id="tdBtnOrderMenu" width="16%" bgcolor="white"> <DIV id="div2" width="100%" class="lmNormal"><A class="lmNormal" id="button2" href="Javascript:Navigate('button2','/access/ordermenu.aspx','div2')">Order</A></DIV> </TD> <TD style="display:none" id="tdBtnCart" width="16%" bgcolor="white"> <DIV id="div3" width="100%" class="lmNormal"><A class="lmNormal" id="button3" href="Javascript:Navigate('button3','/access/cart.aspx', 'div3')">Cart</A></DIV> </TD> <TD style="display:none" id="tdBtnCheckOut" width="16%" bgcolor="white"> <DIV id="div4" class="lmNormal"><A class="lmNormal" id="button4" href="Javascript:Navigate('button4','/access/checkout.aspx?cStage=Exception', 'div4')">Submit</A></DIV> </TD> </TR> </TABLE> <script language="Javascript"> -
Clicking on a javascript button
mpcluever replied to mpcluever's topic in AutoIt General Help and Support
Really want to avoid mouse clicks if at all possible. The script would be run on a couple other people's machines. $oButton = _IEGetObjById($oIE,"button1") _IEAction($oButton,"Click") results in: --> IE.au3 V2.4-0 Warning from function _IEGetObjById, $_IEStatus_NoMatch (button1) --> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidDataType -
Trying to click a javascript button on a webpage in IE. Here's the source: <TD style="display:none" id="tdBtnAccount" width="16%" bgcolor="white"> <DIV id="div1" width="100%" class="lmNormal"><A class="lmNormal" id="button1" href="Javascript:Navigate('button1','/access/account.aspx','div1')">Account</A></DIV> </TD> I've lost track of everything I've tried. There's 3 different "id" labels in there. Assuming I can target the button based on name, which one should I be aiming at? Trying to target that link/button keeps failing. _IELinkClickByText($oIE, "Account") _IELinkClickByText($oIE, "tdBtnAccount") _IELinkClickByText($oIE, "div1") $AccountButton = _IEGetObjById($oIE, "Account") $AccountButton = _IEGetObjById($oIE, "tdBtnAccount") $AccountButton = _IEGetObjById($oIE, "div1") $oSubmit = _IEGetObjByName ($oIE, "tdBtnAccount") $oSubmit = _IEGetObjByName ($oIE, "Account") $oSubmit = _IEGetObjByName ($oIE, "div1") _IELinkClickByIndex ($oIE, 2) I get: --> IE.au3 V2.4-0 Warning from function _IELinkClickByText, $_IEStatus_NoMatch --> IE.au3 V2.4-0 Warning from function _IELinkClickByText, $_IEStatus_NoMatch --> IE.au3 V2.4-0 Warning from function _IELinkClickByText, $_IEStatus_NoMatch --> IE.au3 V2.4-0 Warning from function _IEGetObjById, $_IEStatus_NoMatch (Account) --> IE.au3 V2.4-0 Warning from function _IEGetObjById, $_IEStatus_NoMatch (tdBtnAccount) --> IE.au3 V2.4-0 Warning from function _IEGetObjById, $_IEStatus_NoMatch (div1) --> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: tdBtnAccount, Index: 0) --> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: Account, Index: 0) --> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: div1, Index: 0) --> IE.au3 V2.4-0 Warning from function _IELinkClickByIndex, $_IEStatus_NoMatch For reference, here's how I'm getting there: $oIE = _IECreate("http://www.amphire.com/access/custompages/rsi/logon.aspx") $oForm = _IEFormGetObjByName($oIE, "formLogon") $oText = _IEFormElementGetObjByName($oForm, "vsLogonName") _IEFormElementSetValue($oText, $RSI_Username) $oPassword = _IEFormElementGetObjByName($oForm, "vsPassword") _IEFormElementSetValue($oPassword, $RSI_Password) _IEFormSubmit($oForm) _IELinkClickByText($oIE, "Distributor Ordering")
-
Filecreateshortcut problem
mpcluever replied to mpcluever's topic in AutoIt General Help and Support
Same result -
I'm trying to use filecreateshortcut, but it will not put in the \\ in. I have a msgbox verifying that the \\ is there, but when it creates the shortcut, there's only 1. This will be used on a virtual pc, however it's doing it on my other computers as well. Windows XP. Any ideas? Thanks!! $Shortcut = "C:\Program Files\Microsoft Office\Office12\EXCEL.EXE"" ""\\vmware-host\Shared Folders\RKT Files\Documents\Auto Update\Auto Update Generator.xltm" MsgBox(0, "", $Shortcut) FileCreateShortcut($Shortcut, "C:\Documents and Settings\1 IT\Start Menu\Programs\Startup\Auto Update Generator.lnk", "C:\Program Files\Microsoft Office\Office12")
-
I use a lot of virtual PCs on my computer. They'll all running AutoIt scripts and occasionally use the clipboard so I don't have them sharing the clipboard out to the host PC. However, occasionally I do want to copy something from one to another. I whipped up a script that copies the clipboard to a shared text file and another that reads that text file and puts it in the clipboard. However, that's only good for text where it's mostly spreadsheet ranges that I'm looking to copy. Is there a better way to dump the contents of the clipboard to a file and then read that file back into the clipboard?
-
That did it! Thanks! I have more ideas now for consolewrite.
-
It is Windows 7, but calling each file separately works, it's just when I use the wildcard that it doesn't.
-
Ya no spaces. I did dumb it down to c:, but I did create those dummy files and it still doesn't work.
-
Yes I did try that. The only thing that's changing is using a wildcard instead of listing the files. I'm trying to merge about 50 files so listing them is not really an option.
-
Run("C:\Program Files\PDFTK Builder\pdftk.exe ""C:\asdf.pdf"" ""C:\qwer.pdf"" cat output ""C:\combined.pdf""") Run("C:\Program Files\PDFTK Builder\pdftk.exe ""C:\*.pdf"" cat output ""C:\combined2.pdf""") The first line works combining 2 pdf files into one, but the second one fails combining all pdf files into one. The examples at pdftk show that it should work. Join in1.pdf and in2.pdf into a new PDF, out1.pdf pdftk in1.pdf in2.pdf cat output out1.pdf or (using handles): pdftk A=in1.pdf B=in2.pdf cat A B output out1.pdf or (using wildcards): pdftk *.pdf cat output combined.pdf Any thoughts?
-
Autohotkey (boo, hiss) has this script, but it's not working for me. Is there something like this for AutoIt? I'd rather just keep working within AutoIt rather than start monkeying around with a similar but different language. AutoHotKey AutoCorrect
-
The syntax checker is not identifying any issues, however the script fails citing an undeclared variable.