NEO12 Posted February 23, 2010 Share Posted February 23, 2010 I'm trying to make a program that show the latest notification of facebook. I have a difficult part: how to pick up the text of the RSS (see url in script) In the script i have put a url between "" and for the moment there is nothing on it. I know that its something with stringregexp and IE.au3, but for the rest i'm turning around without finding something. I would also like to have a configuration GUI, but that i'll do it on myself. Please help me I already have a part of the script. Here is it: expandcollapse popup;#NoTrayIcon #include <IE.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <Array.au3> $width = 300 $height = 90 $xa = @DesktopWidth - $width - 5 $ya = @DesktopHeight - $height - 50 $GUi = GUICreate("Facebook Notification", $width, $height, $xa, $ya, $WS_POPUPWINDOW, $WS_EX_TOOLWINDOW + $WS_EX_TOPMOST) $label = GUICtrlCreateLabel("Facebook Notification", 5, 5, 130, 20) $label2 = GUICtrlCreateLabel("", 5, 30, 130, 20) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Func Notification() $baseurl = "http://www.facebook.com/feeds/notifications.php?id=100000295219880&viewer=100000295219880&key=683ac29a17&format=rss20" $Source = _IEBodyReadHTML( $baseurl) $array = StringRegExp($Source," <channel> <channel>", "<title> </title>") GUICtrlSetData($label2,$array) EndFunc Thanks to all in advance! Greets Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now