Jump to content

fleone

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Location
    Columbus, Ohio

fleone's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I think I know what you mean, but I also think I have isolated the root of my issue. What I have found is that until one of the table rows is highlighted, the onclick=javascript:gradeAssigment isn't available. Until that mouseover occurs, there is no item to select. So, what I now have to work out is how to activate the tablerow in such a fashion as to present the onclick=javascript:gradeAssignment event. Then have that continue to happen as each assignment is graded and the window changes.
  2. I tried adding the Function "IEEval" to my AutoIT script and have to admit I have no idea what it is supposed to do. It looks like Return $o_object.document.parentwindow.eval ($s_eval) is supposed to supply the onclick=javascript:gradeAssignment as a variable? Then I should replace what was submitting the mouse click before with a call to this function? I am not even sure of what I don't know at this point The event onclick="javascript:gradeAssignment doesn't occur until a tablerow in the assignment table is activated with a mouse over. So I guess what I need to do is know how to "trigger" the javascript:gradeAssignment each time the assignmentsGrade.asp window is opened, or the focused window. Is there any other information that I can provide that would be beneficial in figuring this out? Thanks so much for the help so far. I just don't know if it is what I need.... F~
  3. No one has any input on this question?
  4. I have a table of data that is generated by a javascript. Each row of the table highlights on hover and shows a GIF that appears to be a link to the specific data. When I look at the properties of the link, it is just an image (/controlPanel/images/actions-hover-left.gif) and the only thing I can find that seems like it is a link is an onclick="javascript:gradeAssignment('nnnnnn');return false; **The 'nnnnnn' is a variable, different for each "assignment" that has been submitted for a grade. The original version of this script just called a link using IEGetObjectbyName, and since the grading program was updated, it isn't able to find that link. So, can anyone tell me what I have to do in order to launch that javascript? Thanks!
  5. Our group has been using an exe file created with AutoIT as a tool for grading student assignments in a proprietary 3rd party application. This executable file would take YOUR username and password and pass it along to the internal website that hosted the SSO login page. The application has received an update and now longer provides the grading functionality that we need. The person that created the script and subsequent executable file is regrettably no longer with our company and did not see fit to leave the source code for the script. It has fallen to me to try to create a new executable file that will overcome the changes made in our 3rd party application. I have pretty much figured out the navigation of the web pages, and the links, but what I have not been able to figure out is how to get a username and password from the GUI into the fields on the login page. I can do it easily by putting my username and password in the script file, but then I would need to have the other members of my team do the same thing, and since these usernames and passwords are active directory in nature, leaving them in plain text in a script is not the best course of action. Does it violate the rules of the forum to ask for assistance with this? It is a login, but I don’t think it meets the “SPAM tools including instant messenger or forum auto-posters. This includes forum or site auto-login methods.” criteria, as it requires the user to enter their credentials each time they launch the application.I believe that it has something to do with capturing the username and password that are entered in the GUI form and saving them as variables to pass on to the website.If this does not violate the forum rules, can someone please point me in the appropriate direction?I have viewed dozens of how-to AutoIT videos…some good, some not so good, and really didn’t find an answer there. If this request does in fact violate the forum rules for posting. I sincerely apologize. Thanks! Here is the code for the input box: The usenam field should pass information on to the "UserName" field on the website The passwrd field should pass information on to the "txtPassword" field on the website. #include <IE.au3> #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Login = GUICreate("Login", 286, 114, 327, 207) GUISetBkColor(0xA6CAF0) $Username = GUICtrlCreateLabel("Username", 5, 9, 59, 19) $Password = GUICtrlCreateLabel("Password", 5, 33, 58, 19) GUICtrlSetFont(-1, 10, 400, 0, "Calibri") $usernam = GUICtrlCreateInput("", 72, 8, 193, 21) $passwor = GUICtrlCreateInput("", 72, 32, 193, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD)) $Continue = GUICtrlCreateButton("Continue", 56, 64, 175, 33) GUICtrlSetFont(-1, 10, 400, 0, "Calibri") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch Wend
×
×
  • Create New...