J'essaye de cree une sorte de notificteur de nouvauté pour Facebook.
Je voudrai pouvoir savoir ce qui ce passe sur Facebook sans que internet explorer ou Firefox ne soit ouvert a l'aide
des RSS de facebook(voir lien dans le script). J'ai deja essayé plussieurs possibilite mais avec aucun resultat.
Voici le code:
Code : Tout sélectionner
;#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