aphesia Posted April 2, 2009 Share Posted April 2, 2009 #include <IE.au3> $proxy = IniReadSection ( "F:\misc\proxylist2.txt", "1" ) for $i = 1 to $proxy[0][0] Step +1 $IP = StringLeft($proxy[$i][1],StringInStr($proxy[$i][1], ":")-1) $Port = StringMid($proxy[$i][1],StringInStr($proxy[$i][1], ":")+1) clipput($IP) this gives me some "subscripted used without non-variable" error.. but why? my ini is written like [1] ip:port ip:port ip:port and i want once get the ip into clipboard ans copy it somewhere and later the port into clipboard.. thx Link to comment Share on other sites More sharing options...
GEOSoft Posted April 2, 2009 Share Posted April 2, 2009 You are not even following a standard INI file format in what you showed. There is no way that can ever work as it reads now. [1] ip:port1=<port> ip:port2=<port> ip:port3=<port> George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
rajeshontheweb Posted April 2, 2009 Share Posted April 2, 2009 (edited) an ini file is written like this [section] name = value it can be [ipinfo1] ipaddress="192.168.0.1" port=255 now u can use iniwritesection and inireadsection with comfort. Edited April 2, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now