Jump to content

Steveiwonder

Active Members
  • Posts

    247
  • Joined

  • Last visited

About Steveiwonder

  • Birthday 07/25/1988

Profile Information

  • Location
    Lost

Steveiwonder's Achievements

Polymath

Polymath (5/7)

0

Reputation

  1. Hey All, I use a website very regulary and its boring and could do with an update but the developers are lazy. So i'm trying to inject some javascript into the page to make it more interactive. I can get the <head> tag as an obj easily but it fails when im using I can output $headTag.innerhtml i just can't set it. _IEPropertySet($headTag, "innerhtml", $java); or $headTag.InnerHtml = $java Even if i replace $java with some random text. I get this C:\Program Files\AutoIt3\Include\ie.au3 (3029) : ==> The requested action with this object has failed.: $oTemp.innerHTML = $newvalue $oTemp.innerHTML = $newvalue^ ERROR Is thead <head> tag protected in some way ? Thanks Steve
  2. Ok cool thanks. I'll have a look into it. Is there any way to break down these custom controls to find out what there made of?
  3. Meh fair enough. Here is a dump of the summary tab, but i don't think i will be able to manipulate it. >>>> Window <<<< Title: "AAGEnntT" Class: ThunderRT6FormDC Position: 1572, 310 Size: 765, 180 Style: 0x16CE0000 ExStyle: 0x00040110 Handle: 0x0147065A >>>> Control <<<< Class: ThunderRT6UserControlDC Instance: 19 ClassnameNN: ThunderRT6UserControlDC19 Name: Advanced (Class): [CLASS:ThunderRT6UserControlDC; INSTANCE:19] ID: Text: Position: 10, 77 Size: 189, 20 ControlClick Coords: 158, 15 Style: 0x56000000 ExStyle: 0x00000000 Handle: 0x016D0564 >>>> Mouse <<<< Position: 1744, 432 Cursor ID: 2 Color: 0xECE9D8 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< DockTop DockBottom DockLeft DockRight >>>> Hidden Text <<<< Any suggestions? Thanks Steve
  4. Hello All, Just a quick question, using the Window Info Tool - Some Controls arn't accessable, or some of the text inside them arn't and i don't know why. Maybe i'm missing some information or completling missunderstanding how controls work. I'm playing around with automation of a certain app and the controls are like "ThunderRT7UserControlDC". Although that control contains some text, a numeric value which is always changing i am unable to gain that value. Should i be diggin deeper, or is some control text/info not available. Any control Guru's ? Thanks Steve
  5. Reinstalled IE and it worked.
  6. Hrmm I can get the single input elements using _IeGetObjByName() The below works just fine. #include <ie.au3> $oIE = _IEAttach(WinGetHandle(""), "HWND"); Removed the window name on purpose. $input = _IEGetObjByName($oIE, "username") $input.value = "Test" Would it be because the form doesn't have a "name" or "id"? If so, how come it works on other computers? Regarding the windows update. Everything is identicle and update to date.
  7. Using ping -a with Run() should do it
  8. I've just got through both PC's and compared all the settings Toos> Options > Advanced - They are all identical, all browsing history is cleared. There isn't any strange addons or any AV that is running. Are there any known issues that affect AU3 from accessing certain browser objects? Really apprciate any help Thanks EDIT: Just going through all the windows updates on both machines. Will post here once done.
  9. If everything is inside a table..... Look at _IETableWriteToArray - This could be better, it will get all the information from the table and dump it too an array. Which you can then manipulate into excell.
  10. Hi All, Got a strange issue here and don't know what it is. Here is just some test code to reproduce the same error. #include <ie.au3> $oIE = _IEAttach("EON/SONET", "WindowTitle") $tags = _IETagNameAllGetCollection($oIE) for $o in $tags ConsoleWrite($o.TagName & @CRLF) Next I don't need to get the tags but getting the tags causes a similar error, I could use _IeFormGetCollection and it would produce a similar error always stating "$oTemp.all.length" - .length object action failed The site is a simple HTML only, page with one image and a form which has two elements, 2x input for User/Password and a submit button. Thats all. It works on one PC but not on another and i cannot find out what the difference is, HTML is the same. All IE settings are the same. Using IE7 Error: >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\n5003096\Desktop\2.8 IN DEV\Test.au3" C:\Program Files\AutoIt3\Include\ie.au3 (2309) : ==> The requested action with this object has failed.: Return SetError($_IEStatus_Success, $oTemp.all.length, $oTemp.all) Return SetError($_IEStatus_Success, $oTemp.all.length^ ERROR >Exit code: 1 Time: 1.734 Thanks for any help
  11. Something like this $oLinks =_IELinkGetCollection($oIE) For $oLink in $oLinks if StringInStr($oLink.href, "http://www.hulahula.com/franche.christ/news/") Then $fileContent = FileRead("Log.txt") ; called here so that you can save link to new log and then reload so it doesn't duplicate a link If NOT StringInStr($fileContent, $olink.href) Then ; Link doesn't exist in file? ConsoleWrite("Link Found: " & $oLink.href & @CRLF) ;do savestuff here EndIf EndIf Next
  12. Try something like. You should probably take a look at Regular Expressions. $oLinks =_IELinkGetCollection($oIE) For $oLink in $oLinks if StringInStr($oLink.href, "http://www.hulahula.com/franche.christ/news/") Then ConsoleWrite("Link Found: " & $oLink.href & @CRLF) EndIf Next
  13. Hey.. been using this UDF for some time and and its awesome, I've made changes and added my own methods however recently something changed which i think has been added by MS. I get this error... I'm not aware of the machine doing any updates but clearly something has changed, i never used to get it. The function caused this to popup is _OutlookGetMail() ; I guessing i would have to add the program to the COM addin list? If thats the case it could prove difficult as im not admin. I can use the "Allow" acces for 10mins option which works but if anyone is aware of a work around that would also be nice. Thanks Steveo
  14. Hello, If i use this to try and output the pound symbol to a compiled script using "/console" command it outputs something quite different ConsoleWriteLine("£") Console output does support symbols, tested in C++ / C# Does it need encoding? Thanks
×
×
  • Create New...