Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/02/2014 in all areas

  1. trancexx

    Announcement

    I've just received confirmation mail from the site owner about a proposal I made to him few weeks ago. I'll be very short now because I have plenty of work to do to put things in place. So, the short version is that I'm new site owner. This includes AutoIt licence in full. As far as this site is concerned there will be some changes, mostly in team members. I think also that MVP section of the forum will be opened for reading for all members and status of some blue members will be revised. Trolls will be remlved from the board. For the most important part of this change (language development) I'm happy to say that development will continue, only now in full speed and strength. I will open new parts of the source, and completely the sources of most of AutoIt tools. I already have a team of developers working actively since Jon gave green light few days ago. I will also contact few more people tomorrow to include them in the new dev team, so do read your mails. Expect plenty of changes, and wish me/us luck. God speed. (I will move this to announcements section of the forum as soon as I get administrator credentials)
    6 points
  2. I'm sure a regex guru can come along and make a nicer, proper regex for this, but this is grabbing the links for me. This should grab the recommended downloads for premium security (trial and paid) #include <Inet.au3> #include <Array.au3> Local $sURL = 'http://www.avg.com/us-en/download.prd-isi' Local $sSource = _INetGetSource($sURL) Local $aRegEx = StringRegExp($sSource, 'a href="(.*\.exe)"(?:.*\R){0,5}.*Recommended', 3) _ArrayDisplay($aRegEx)
    1 point
  3. Works here with multiple files. Here's a zip of the exact files I've just tested with. Does the firefox developer console show any errors? Schdlr.zip
    1 point
  4. And that does absolutely nothing because of the quote marks you've used. Would "alert("test")" work as a string in AutoIt? Nope
    1 point
  5. It works fine here after making the corrections I suggested before. <!DOCTYPE html> <html> <head> <style type="text/css"> #schedule-title { color: green; font-size: 100%; position: relative; } #schedule { color: black; font-size: 100%; text-align: center; position: relative; } #password { font-size: 100%; position: relative; top:20px; } #submit { font-size: 100%; position: relative; top:30px; } </style> <script type="text/javascript"> window.onload = function() { document.getElementById('set').onclick = function() { alert('Set Clicked'); var sun_start = document.getElementById("sunday-start"); if (sun_start.value == "TBA") { sun_start.value = "To Be Announced"; sun_start.style.background = "yellow"; var sun_end = document.getElementById("sunday-end"); sun_end.value = "To Be Announced"; sun_end.style.background = "yellow"; } } } </script> <title>Schdlr!</title> </head> <body> <div id="schedule-title"> <h1>Schdlr!</h1> </div> <datalist id="options"> <option value="TBA"> <option value="Off"> </datalist> <div id="schedule"> <table> <tr> <td>Sunday:</td> <td><input id="sunday-start" list="options" placeholder="Start"></input></td> <td><input id="sunday-end" placeholder="End"></input></td> </tr> <tr> <td>Monday:</td> <td><input id="monday-start" list="options"></input></td> <td><input id="monday-end"></input></td> </tr> <tr> <td>Tuesday:</td> <td><input id="tuesday-start" list="options"></input></td> <td><input id="tuesday-end"></input></td> </tr> <tr> <td>Wednesday:</td> <td><input id="wednesday-start" list="options"></input></td> <td><input id="wednesday-end"></input></td> </tr> <tr> <td>Thursday:</td> <td><input id="thursday-start" list="options"></input></td> <td><input id="thursday-end"></input></td> </tr> <tr> <td>Friday:</td> <td><input id="friday-start" list="options"></input></td> <td><input id="friday-end"></input></td> </tr> <tr> <td>Saturday:</td> <td><input id="saturday-start" list="options"></input></td> <td><input id="saturday-end"></input></td> </tr> </table> </div> <div id="password"> <input id="pw" type="password" placeholder="Password"></input> (Required) </div> <div id="submit"> <button id="set">Set</button> </div> </body> </html> I made it a single file to make it easier, but that shouldn't make a difference. What browser are you using? There are a lot of tools to help web development built in to all the new browsers.
    1 point
  6. You also have some misspellings in the javascript. getElementById has a lowercase d at the end. Other than that I'll have to try and run it to see what's going on.
    1 point
  7. That code to set the onclick handler should be inside a window.onload handler. At least, that's what I seem to remember happening. I've never liked Web development.
    1 point
  8. Somerset

    Announcement

    Drink more scotch.
    1 point
  9. trancexx

    Announcement

    Ok then, it was a joke. Whatever.
    1 point
  10. Thanks, enaiman. I tried adding that line to my code but it doesn't seem to be making a difference - the script will apply a random proxy the first time it's run but not during the loop. Can you take a look at the snippet below and let me know if I'm missing something silly? Dim $aRecords FileOpen("D:\sites.log") If Not _FileReadToArray("d:\sites.log",$aRecords) Then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) Exit EndIf FileClose("D:\sites.log") FileOpen("D:\proxies.txt") Dim $aProxy If Not _FileReadToArray("d:\proxies.txt",$aProxy) Then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) EndIf FileClose("D:\proxies.txt") for $x = 1 to $aRecords[0] $rnd=random(1,$aProxy[0],1) $key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" $reg = RegWrite($key, "ProxyEnable", "REG_DWORD", "1") $reg1 = RegWrite($key, "ProxyServer", "REG_SZ", $aProxy[$rnd]) ;HttpSetProxy(2, $aProxy[$rnd]) DllCall('WININET.DLL', 'long', 'InternetSetOption', 'int', 0, 'long', 39, 'str', 0, 'long', 0) MsgBox(0,"",$aProxy[$rnd]) $oIE=_IECreate("http://www.whatismyip.com") sleep(1000) _IEQuit($oIE) Next
    1 point
×
×
  • Create New...