moin freaks,
komm hier grad nicht mehr weiter.
Spoiler anzeigen
#include <Inet.au3>
#include <GDIPlus.au3>
#include <WinAPI.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
Global $source1, $source2, $source3, $source4, $daten_label
_IEErrorHandlerRegister ()
$oIE = _IECreateEmbedded ()
$hGUI = GUICreate("Genta Inc. Copyright© by Phosgen", 400, 400)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 350, 360)
$daten_label = GUICtrlCreateLabel("", 10, 370, 600, 30)
GUISetState()
GUISetBkColor(0xE0FFFF)
_IENavigate ($oIE, "http://de.advfn.com/p.php?pid=staticchart&s=NB%5EGNTA&p=0&t=39&vol=1")
AdlibEnable("PicandData",10000)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func PicandData()
$source1 = StringRegExp(_INetGetSource("http://www.ariva.de/quote/profile.m?secu=100258495&kx=s"), '<td class="arrow0" style="font-size: 20px; padding: 5px 0px 5px 3px">(.*?)</td>', 3)
$source2 = StringRegExp(_INetGetSource("http://www.ariva.de/quote/profile.m?secu=100258495&kx=s"), '<td class="arrow0" style="font-size: 20px; padding: 5px 0px">(.*?)</td>', 3)
$source3 = StringRegExp(_INetGetSource("http://www.ariva.de/quote/profile.m?secu=100258495&kx=s"), '<td class="arrow0" style="font-size: 20px; padding: 5px 3px 5px 0px;" align="right">(.*?)</td>', 3)
$source4 = StringRegExp(_INetGetSource("http://www.ariva.de/quote/profile.m?secu=100258495&kx=s"), '<td class="arrow0" style="font-size: 20px; padding: 4px 3px 4px 0px; border-top: 1px solid white; border-bottom: 1px solid #eee; background-color: #d4eed4" align="right">(.*?)</td>', 3)
If @error Then
$source4 = StringRegExp(_INetGetSource("http://www.ariva.de/quote/profile.m?secu=100258495&kx=s"), '<td class="arrow0" style="font-size: 20px; padding: 4px 3px 4px 0px; border-top: 1px solid white; border-bottom: 1px solid #eee; background-color: #eed4d4" align="right">(.*?)</td>', 3)
EndIf
GUICtrlSetData($daten_label, "Letzter Kurs: " & StringReplace($source1[0], "nbsp;", " ") & " Vortag: " & StringReplace($source2[0], "nbsp;", " ") & " Umsatz: " & StringReplace($source3[0], "nbsp;", " ") & " Veränd.: " & $source4[0])
EndFunc ;==>PicData
will das so haben das die seite die mir im GUI angezeit wird alle 5 sec neu läd. bekomms aber irgendwie nicht hin ohne das bei mir dann alles abkackt.
kann mir da jemand kurz helfen?!
danke