angelink 发表于 2010-8-11 08:22:35

如何读取INI配置下URL所有字段的值!

;#NoTrayIcon
#include <Ini.au3>;INI函数库
$URL = _IniReadSection ("c:\Ie.ini","URL")
While 1
Sleep(400)
$oShell = ObjCreate('shell.application')
$oShellWindows = $oShell.windows
For $Window In $oShellWindows
If StringRight($Window.FullName, 12) = 'iexplore.exe' Then                        
If StringInStr($Window.locationurl,$URL,2) Then $Window.navigate('http://www.baidu.com')
EndIf
Next
WEnd如何读取 INI配置下URL所有网址的的值!然后监控IE栏,如果有这个网址的话自动跳转到指定的网址。用_IniReadSection读取的话,除了INI里的网址不跳转,别的都转……

还有个笨方法就是在监视URL那里写N个读取配置文件的1、2 、3、4、5……

afan 发表于 2010-8-11 12:40:18

至少要贴出你的ini文件吧,然后依照此ini文件作出解释…

angelink 发表于 2010-8-11 18:28:23

回复 2# afan
www.baidu.com
www.google.com
www.soso.com像这样,依次往下加!
{:face (270):}

afan 发表于 2010-8-11 18:30:36

试试 _IniReadSection_line()

angelink 发表于 2010-8-11 19:05:15

本帖最后由 angelink 于 2010-8-11 19:11 编辑

回复 4# afan


    把_IniReadSection 换成_IniReadSection _line?


没效果…………………………………………

angelink 发表于 2010-8-12 19:07:36

哈哈,虽然没学会这个,但学会了func、还有多进程~
页: [1]
查看完整版本: 如何读取INI配置下URL所有字段的值!