Jump to content

BitOfHope

Active Members
  • Posts

    24
  • Joined

  • Last visited

Profile Information

  • Location
    The Internet.

BitOfHope's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. This worked perfectly! Thank you!
  2. I sure hope I worded my question correctly. Basically I'm using $test = ControlGetText("Space Left", "", "[CLASS:Static;INSTANCE:1]") MsgBox("", "Uh", $test) The MsgBox tells me: "Space left is: 50gb!" Or however much space is remaining. I'm trying to figure out how to make it type only the number (50gb) in another popup. So I'm thinking logic-wise it'd be something like: MsgBox("", "Uh2", $test - Space left is: ") Then then it would popup only showing "50gb". I just have no clue how to do this. Any advice would be appreciated.
  3. Is it so hard to believe I feel uncomfortable posting a personal website? Nobody likes a little crusader out to piss people off. To go out of your way to try and find personal information on somebody is exactly why I don't want to post my shit. People like you.
  4. Wow, seriously? I picked my bank site because it was the easiest site I could think of that has all the different buttons and menus to let me mess with the UDF. I gave an example site to replicate my issue which can't even work to attach and navigate to a page. I could have EASILY just used the other example site on my other topic and claimed it as the site I was using. I thought being honest would have no downside. Apparently I was wrong. Nevermind, somebody close this topic. I'm going to find another person/website to find help on.
  5. I'm not trying to do something specific. I just picked my bank site as the example site to use for learn IE.au3.
  6. Sorry, I had to leave for the day. No, it doesn't break any forum rules as far as I'm aware. Just navigating through the site and testing different parts of the UDF. I picked my banks website to help myself learn IE.au3 and feel uncomfortable posting that. ~~~~~~ My other topic asking a question about IE.au3: '?do=embed' frameborder='0' data-embedContent>> ~~~~~~
  7. It's been a day so... bump. Sorry if that's against the rules.
  8. Even with adding that it doesn't give the msgbox popup. As soon as I hit run on the script it gives me the same error as before. I always make sure it's on the correct page before I attach to it. It works 100% of the time on my desktop. ~~~~~ Sorry for the delay in my reply.
  9. So here I am back with my second IE.au3 question... I made a script to manipulate this website. I'm using IE11 on my computer. It's working great! No flaws; can run for hours. I sent it to my friend and he ALWAYS gets an error. At first I thought it was because he didn't have Autoit installed. So I tried the script on my laptop. Works perfectly... But! My laptop was using IE9. The website wasn't displaying properly so I couldn't manually manipulate the site. I figured I needed to update so I updated to IE11 on my laptop(Same as my desktop). Now the script is giving my laptop the same error as my friend: "error from function _IEnavigate, $_IEstatus_COMError (-2147352567)" - When I run it with SciTE. When running as an .exe sometimes it does nothing and just sits there. Other times I get an error popup: "The requested action with this object has failed. Line 82". The really weird thing is that a few times I DID get the script to work on my laptop with IE11. It's pretty much refusing to work at all now though. My desktop: Windows 8.1 - Internet Explorer 11 Laptop : Windows 7 - Internet Explorer 11 Friends computer: Windows 7 - Internet Explorer 11 Things I've tried: -Ccleaner -Restarting my PC -Updating my laptop -Disabling UAC -Smashing my head on my desk Code clip to replicate my issue: #RequireAdmin #include <IE.au3> #include <GUIConstantsEx.au3> #include <ButtonConstants.au3> #include <WindowsConstants.au3> If ProcessExists("iexplore.exe") Then Global $url = _IEAttach("Google") Else MsgBox(0, "Hey!", "Open Internet Explorer first.") Exit EndIf $AmountTo = 10000 _IENavigate($url, "http://www.msn.com/") $oActivitySelect = _IEGetObjByName($url, "times") _IEFormElementOptionSelect($oActivitySelect, $AmountTo) $oCalculate = _IEGetObjByName($url, "Submit") _IEAction($oCalculate, "click") I changed the website used because I don't want to post it, so there is obviously no submit button for it to click. But this script runs fine on my desktop but gives the same error on my laptop. The error happens right when I try running the script. No navigation happens.
  10. Yes! This solved it! Thank you so much! (Sorry for the delay, I had to pick up food)
  11. I've tried using print. #RequireAdmin #include <IE.au3> $oIE = _IECreate("myurlhere", True) $oActivitySelect = _IEGetObjById($oIE, "print") _IEFormElementOptionSelect($oActivitySelect, "option2") $oCalculate = _IEGetObjById($oIE, "submit") _IEAction($oCalculate, "click") (Right?) It doesn't work =/ I used the debugging script you posted and the box pops up and says Unable to find the 'Select'.
  12. Okay, here is the HTML source(I think? It's a little confusing): <form id="menuForm" class="autoInput" action="?id=18" method="post"> <select name="print"> <option value="option1">Selection1(Default)</option> <option value="option2">Selection 2</option> <option value="option3">Selection 3</option> <option value="option4">Selection 4</option> <option value="option5">Selection 5</option> <option value="option6">Selection 6</option> </select> <input class="input_submit_btn" style="width:110px; line-height:15px;margin:10px;" type="submit" name="Submit" value="Submit"> </form> Here's my current script: #RequireAdmin #include <IE.au3> $oIE = _IECreate("myurlhere", True) $oActivitySelect = _IEGetObjById($oIE, "menuForm") _IEFormElementOptionSelect($oActivitySelect, "option2") $oCalculate = _IEGetObjById($oIE, "submit") _IEAction($oCalculate, "click") When I run the script it selects my web browser and then just sits there. Edit: To add on to this when I use your debug script it gives me the popup if I enter anything other than "menuForm"
  13. This is fantastic. But when I try this on another site it doesn't want to do... anything. At all. I might be grabbing the wrong ID but I'm pretty much out of things to try. Would there be some reason I wouldn't be able to manipulate it?
  14. Wow, this works! Would you mind adding in notes breaking down what every little thing does? If not that's fine, I can work it out on my own. Thank you either way!
×
×
  • Create New...