Jump to content

Baksteen

Active Members
  • Posts

    21
  • Joined

  • Last visited

Profile Information

  • Location
    The Netherlands

Baksteen's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Ok ppl please just close this topic. I've worked around it and this is no longer a relevant discussion. Thanks for all the offered help.
  2. Look we might not be as experienced nor advanced in coding as you are, but this problem is occurring. Why would my colleague or I lie about this? And why the aggressive flaming? I'm not saying its AutoIts fault, nor am I blaming anything. Im just trying to figuring out what is going on...
  3. Hi Trancexx, Thanks for your reply. Do you mean I should use $oQuery.click() instead of $oQuery.click ? Or do I get it wrong? Sorry if I'm misunderstanding, I'm still in early stages of learning to work with methods.
  4. Anyway, I now know to try double == when there are problems with single = ... Hopefully the devs will take a look at this at some point (or maybe they are able to explain why this happens).
  5. With or without error handler doesn't change anything. The script doesn't throw any errors at all. See my console (paths are edited out, can't post any corporate information): >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "" /UserParams +>12:15:36 Starting AutoIt3Wrapper v.2.1.0.33 Environment(Language:0413 Keyboard:00020409 OS:WIN_7/Service Pack 1 CPU:X64 OS:X86) >Running AU3Check (1.54.22.0) from:C:Program FilesAutoIt3 +>12:15:36 AU3Check ended.rc:0 >Running:(3.3.8.1):C:Program FilesAutoIt3autoit3.exe "" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop +>12:15:44 AutoIT3.exe ended.rc:0 >Exit code: 0 Time: 10.526
  6. You are right, I totally forgot about the error handler. I will check this out tomorrow as I'm going home right now and am tired.
  7. yeah, the weird thing is it did execute the msgbox code, but not the following line after it, when using a single '=' When using double '==' it executes all the following code. The explanation from lacastiglione does not explain that... Your's (water) is more usefull, even though it doesn't answer the question it might help better in the future. Thanks for that.
  8. Hello, Today I was working on a script for a website. I was trying to make my script click on a <TD> element. It works now, but after allmost searching for 2 hours why my following code did not execute the $oQuery.click code but did execute the msgbox right above it: _IETagNameGetCollection($oIE, "TD") For $x = 0 To @extended - 1 $oQuery = _IETagNameGetCollection($oIE, "TD", $x) If _IEPropertyGet($oQuery, "outertext") = "Controle & Oplevering" Then MsgBox(1, "", "") $oQuery.click ExitLoop EndIf Next _IELoadWait($oIE) After changing this line If _IEPropertyGet($oQuery, "outertext") = "Controle & Oplevering" Then to: If _IEPropertyGet($oQuery, "outertext") == "Controle & Oplevering" Then It suddenly not only pops up the messagebox but also does the $oquery.click perfectly fine. Could someone care to explain me why this works this way? Kind regards, Baksteen
  9. Nevermind, you're right, I screwed up this one. The helpfile says it returns the HTML output if it went allright (_iebodyreadhtml) but returns 0 on failure. Therefore I decided to errorcheck on 0, but that doesnt seem to be allright if @error also is 0. Once again thanks for your help and making me think better about this. Sorry for the misunderstanding. Thread can be closed.
  10. Hi, First of all, thanks for your help. Your changes does indeed make my code run and return the HTML output. The strange thing is, my way of coding worked for the last 7+ months perfectly fine until yesterday... That seems at least a little bit strange to me. Seems like I have to start scripting in your style for now..
  11. Hello all, I seem to have run into a strange issue. The day before yesterday _iebodyreadhtml worked perfectly fine, but since yesterday it suddenly started returning 0 on every webpage. Nothing has changed for me, at first i thought IE8 on windows 7 must've been updated with some new security feature or something, but then I tried it on my win7 laptop at home which had not updated and the results are the same. This morning I tried it on a windows xp machine with IE6 and still the results are the same. Its also not our intranet because I get the same issue on www.google.nl Any advice on this would be most welcome. Attached is my really simple example code to demonstrate, which keeps giving me the msgbox.google html output.au3
  12. The CPU should be 64bit capable (Allthough I'm not sure, it's not my machine), but the installed windows 7 version is 32 bit. I've no running Excel processes, it also happens when I do a fresh restart. I worked around it using excelbookopen instead, which seems to work fine. If I would have running excel processes the file would probably only be allowed to open in read-only mode anyway. Thanks for any suggestions though. This probably should be looked into by the devs I guess, but I'm still a newbie so I'm not sure either.
  13. Hi, I'm bumping this one last time, hoping someone can tell me if I'm doing something wrong. I want to post this as a bug in the beta issue tracker because the problem still seems to be there in the latest beta version (3.3.7.19), but I'm not totally sure if I'm doing it wrong or... The thing is, this has always worked on XP with the latest release version. I'm hoping someone can reconstruct the issue.
  14. Hmm, I'm bumping this, is this known by the developers or looked into, or am I just doing something wrong here? Any feedback is much appreciated.
  15. Ok, So I'm in the process of going through my scripts to make them work for windows 7. They have been scripted on windows XP with the latest release build of AutoIt and work fine there. On Windows 7 they did not work so I downloaded the latest version of the AutoIt beta and started debugging. One thing I'm coming across is when I run the attached code, it gives me the "test" msgbox even though I have not opened the excel file, where in XP it would've set @error. The script even reads data from the closed excel file (the consolewrite gives me the correct data). It can't write to the file however. The _Excelbookopen seems to be working allright so far. Is this supposed to be like that, am I doing something wrong? Or is it a bug? Thanks in advance for any help on this. test.au3
×
×
  • Create New...