
bboysza
Active Members-
Posts
26 -
Joined
-
Last visited
Everything posted by bboysza
-
Before I start dev on a webcrawler script, I thought I should ask if any has already written one. What I need to do specifically, is crawl a site, and dump all hrefs and arefs to a log file. Basically, logging the source for each image. Also, I would need to then follow any hrefs (or other jscript or asp links) to other pages and then do the same thing there. I don't need it written for me, just looking for some ideas for the architecture. Thanks, Ben
-
I think it's dying here: $v_Socket = TCPConnect($s_IPAddress, 25) If $v_Socket = -1 Then TCPShutdown() SetError(4) Return (0) EndIf taken from inet.au3
-
Ah - it's changed then in XP. In anycase, it's clear all you need to do is update that key. Do you use any login scripts? If so, which type? I ask because I know it'll be easier and faster to just add the reg update to say, a Kix script. In fact, there's scripts already that do exactly what you want to do. http://www.kixtart.org/ubbthreads/showflat...2531&Main=82999 It's an old post, so you should add some OS detection in there to customize for the changes introduced in XP.
-
When you do that, a registry key is added to the registry for the current user for the specified mountpoint. The specific key is "_LabelFromReg". When that's not there, Windows just comes up with the label based on the resource (obviously). There's also a key in there for _LabelFromDesktopINI - I've never done it that way, but it seems if that's a possibility, then I'd go that route. Registry Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\##192.168.1.1#Finances] "BaseClass"="Drive" "_CommentFromDesktopINI"="" "_LabelFromDesktopINI"="" "_AutorunStatus"=hex:01,df,df,00,df,01,00,01,01,ee,ff,ff,ff,ff,ff,ff,ff,ff,ff,\ ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,\ ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,\ ff,ff,00,00,20,00,00,08,00,00,00 "_LabelFromReg"="New Label" So, to do this in autoit - you would have a line like: RegWrite ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\##192.168.1.1#Finances", "_LabelFromReg", "REG_SZ", "New Label") An application to do this only seems overkill. But, you could include this same change in your login scripts using VBS or KIXTART or whatever you use.
-
To install on remote PC's you'd have to do a remote execute (aka 'push install'). I'm actually working on something similar now - though only in my head. These days, NT variant's run software firewalls. This is my biggest obstacle I think, without a client piece.
-
More TCPSend questions: I'm trying to connect to a Telnet server to send some commands. I need to first setup up the terminal by sending IAC's. (See http://www.scit.wlv.ac.uk/~jphb/comms/telnet.html if confused as to what I'm talking about) How can I send data AS a telnet COMMAND. I really need to send the decimal code I believe. I'm using a packet sniffer to note my failures from within autoit, and my success's from just a command line. Typically, the Telnet server would deliver: Telnet Command: Do Terminal Type Command: Do Terminal Speed Command: Do X Display Location Command: Do New Environment Option I need to reply to the affect of: Telnet Command: Won't Terminal Type Command: Won't Terminal Speed Command: Won't X Display Location Command: Won't New Environment Option But, when using TCPSend my telnet rec'vd data is: Telnet Data: Won't Terminal Type etc... I'm guessing there's some syntax I'm missing here, in how I deliver the commands to have the Telnet server Interpret As Command. Thanks, Ben
-
append@username at end of file
bboysza replied to ragemxf's topic in AutoIt General Help and Support
I noticed you're editing an ini file. Are there section names in the ini? If so... IniWrite('c:\adx\adx.ini', "SectionName", "UserDir", @Username & '\') -
^ I really just need to know how to verify that the boot was successfull. I've found various MS articles on bootok.exe and bootvrfy.exe - they both report to the "System" that boot was successfull. I need them to report to ME!
-
Are you using Beta Run from within Scite? And then Bete-Compile as well? I had a similar issue when my au3check.dat was out of rev in the Defs\unstable\au3check folder in Scite.
-
So I wrote a handly little app that I'd like to use as the shell. The app works just fine through all my tests until I make it start automatically. The first thing that fails is a false-positive detect on a processid. Methinks this is because the process I'm looking at hangs in the process list as the server starts, even though it starts and stops. I can add a timer there I suppose, no biggie. The other thing was sort of a surprise to me. @ComputerName seems to not function until Winlogon has completed. This would appear to me that @ComputerName is relying on something. FSAG's, I put the app in the start-up directory. I have autologin set and everything would appear to be cool - but I have the same problem. So, it looks definetely like a timing issue. I've added sleep timers galore and I still have the problem. If I have the app not autostart anyway, and run it as soon as I can hit the icon on the desktop, it works. I'd really like to use it as shell, however. If this is a userinit issue, perhaps I can run userinit from my app and watch for winlogon to report BootOk? What is the last thing to load on boot? Maybe I can just watch for it. IDK, gimme some ideas. Thanks.
-
Search a multi-dimensional array?
bboysza replied to bboysza's topic in AutoIt General Help and Support
Thanks Randall - just the direction I needed... Ini sample: [SectionName] Key1 = Value1 Key2 = Value2 au3: $avArray = IniReadSection($IniFile, "SectionName") $Criteria = "Value1" For $Key = 0 To UBound($avArray)-1 For $Value = 0 To UBound($avArray,2)-1 If $avArray[$Key][$Value] = $Criteria Then msgbox(0, "Match Found", $Criteria &' is assigned to ' &$avArray[$Key][0]) ExitLoop Else msgbox(0, "No Match", 'Sorry, ' & $Criteria & ' was not found to be a value for any keys under queried sectioname') ExitLoop EndIf Next Next -
Ah - well I think what you're looking at in the registry is just driver information for that windows device. Whereas in the VB app, DDC was used perhaps by WMI to pull data directly from the device itself.
-
I think it is set, it's just cleared after the next function [or function prior to @error] runs successfully.
-
From the help file... $var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir") MsgBox(4096, "Program files are in:", $var)
-
I added a shade-variation and it worked. Dim $loopCount = 0, $search_tries = 10 Do;Waiting for screen to showup $coord = PixelSearch(450,140,470,160,0xFFFFBD, 30) $loopcount = $loopcount + 1 sleep(1000) Until Not @error OR $loopcount = $search_tries If @error Then MsgBox(48, "", "Unable to find init pixel! Aborting...") Exit EndIf MouseClick ("left", $coord[0], $coord[1], 1,10) So $coord never gets populated when there's no match - hence the var treated as array error.
-
I think that example is no good. If you change "If Not @error" to "If @error" (or have that colored pixel in the search location) then you'll produce the same problem you're having with that sample code. EDIT: I just looked at pixel search - i've never used it. Says it returns an array.. Hmm...
-
For your message box, you didn't specify a title - which is why you're getting the wrong number of args error..Change to.. MsgBox(48, "", "Unable to find init pixel! Aborting...") And your $coord variable is not an array.
-
Hilarious.
-
Ah, I didn't even notice he was referencing a hiddenshare. It might not be so much a problem with the $ sign in the name, but perhaps how AutoIT works with the filesystem - which I'm not even sure how that is. Does DirRemove just send API's? I don't know, but one thing to try is to create another share for backup$ that isn't hidden.
-
Can you msgbox $userCombo before DirRemove to see if there's any unwanted characters in there? Or msgbox(0, "", $datastore & "\" & GUICtrlRead($userCombo))If that's Ok then maybe... $Dir2Rem = $datastore & "\" & GUICtrlRead($userCombo) DirRemove($Dir2Rem, 1)
-
Search a multi-dimensional array?
bboysza replied to bboysza's topic in AutoIt General Help and Support
Thank you - helps quite a bit, but I'm not exactly where I wanted to be. In this example, I'm searching to see if [$x][1] = "Search Value". Which works, but it's not a true search of the entire array. I.E., only [1] is checked against the search criteria. I could always check each one individually ([$x][1], [$x][2], [$x][3], and etc..) but I imagine somebody can clean this up for us. I'm thinking, but am not terribly talented with multi-dim's. -
I can't for the life of me (and out of shear laziness) find a way to search a multi-dim array. Say I have an array ($avArray[key][value]) - I want to search the array for a specified VALUE (aka search criteria), and return the KEY. I guess you can tell I've read an ini section into an array... Any ideas? Thanks, Ben
-
I checked with our internal admin - this particular server is running Mcafee. I see in the other threads that today's dat seems to pass our code. That's cool, I'll just wait until our servers are updated. Thanks guys.
-
Ah ha! This only happens now when I have my scripts stored on network drives. If I copy my scripts over to my local drive, no issues (at least I could compile). No, file security is not an issue. 3.1.1.56 works - and all previous versions have worked in this network-drive manor. So, where or what is the issue exactly? Seems like UPX isn't being called correctly for some reason - maybe a path formatting problem. Perhaps it's being called with a path relative to the script. I.E., if the script is on K:, then ..\Program Files\Autoit\beta\blah blah.. Perhaps.
-
Hello, I've recently updated to 3.1.1.84 (Including Scite to 1.66) and am now having trouble beta compiling my scripts. If I rollback to 3.1.1.56 , everything works fine. Just wondering if my error is unique or if anyone else is experiencing this same issue: The Aut2Exe error: Error: Unable to execute upx.exe to compress stub file. Could this be an issue related to AutoItSC.bin? If I run a release compile, it works - but then of course, none of my BETA features work. I've done complete fresh installs. Thanks, Ben EDIT: Relase compile fails with the same error as well.