Jump to content

Maarten90

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Maarten90

  1. Code has already been posted, see my second post
  2. When I comment the guiregistermsg , it doesnt hang anymore. And yes, a ticket system. Just for fun at the moment.
  3. Thanks so much for this! I implemented this, and ofcourse I made some changes to fit my needs, but with two listview, is still get a GUI that loads for 50% and then hangs (need to kill via taskmanager to exit) After the changes my WM_NOTIFY looks like this:   Func WM_NOTIFY($hWnd, $iMsg, $iwParam, $ilParam)     #forceref $hWnd, $iMsg, $iwParam     Local $hWndFrom, $iIDFrom, $iCode, $tNMHDR, $hWndListView, $hWndListView2, $hWndListView3, $tInfo     $hWndListView = $CheckResultsView     If Not IsHWnd($CheckResultsView) Then $hWndListView = GUICtrlGetHandle($CheckResultsView)     $hWndListView2 = $incident_ShowTicket_InteractionView     If Not IsHWnd($incident_ShowTicket_InteractionView) Then $hWndListView2 = GUICtrlGetHandle($incident_ShowTicket_InteractionView)     $tNMHDR = DllStructCreate($tagNMHDR, $ilParam)     $hWndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom"))     $iIDFrom = DllStructGetData($tNMHDR, "IDFrom")     $iCode = DllStructGetData($tNMHDR, "Code")     Switch $hWndFrom         Case $hWndListView             Switch $iCode                 Case $NM_DBLCLK ; Sent by a list-view control when the user double-clicks an item with the left mouse button                     $tInfo = DllStructCreate($tagNMITEMACTIVATE, $ilParam)                     $Index = DllStructGetData($tInfo, "Index")                    $subitemNR = DllStructGetData($tInfo, "SubItem")                    ; make sure user clicks on the listview & only the activate                    If $Index <> -1 Then                           ;Col item 2 index                         $item2 = StringSplit(_GUICtrlListView_GetItemTextString($CheckResultsView, $subitemNR),'|')                         $item2= $item2[2]                         Ticket_ShowTicketID($item2)                    EndIf                     ; No return value             EndSwitch         Case $hWndListView2             Switch $iCode                 Case $NM_CLICK ; Sent by a list-view control when the user clicks an item with the left mouse button                     $tInfo = DllStructCreate($tagNMITEMACTIVATE, $ilParam)                     ConsoleWrite("test")             EndSwitch     EndSwitch     Return $GUI_RUNDEFMSG EndFunc   ;==>WM_NOTIFY [/code]@AdmiralAlkex I got rid of that MSGBox, but it sadly doesnt change anything. Thanks for the help .
  4. Attached. When you open hd.au3, you'll find the WM_Notify function at the end of the script. script.rar @water Thanks for your reply, I just c/p'd your WM_Notify and made some changes to it to make it work for my script. But I could not get it to work sadly. Its a nice script you have there which I am sure, I'm going to use. Thanks!
  5. Hey all, I was trying to get my WM_NOTIFY function to work on two separate listviews, but when I add my second listview, the script just hangs. Original that works: Func WM_NOTIFY($hWnd, $iMsg, $iwParam, $ilParam) Local $hWndFrom, $iCode, $tNMHDR, $hWndListView $hWndListView = $CheckResultsView If Not IsHWnd($CheckResultsView) Then $hWndListView = GUICtrlGetHandle($CheckResultsView) $tNMHDR = DllStructCreate($tagNMHDR, $ilParam) $hWndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom")) $iCode = DllStructGetData($tNMHDR, "Code") Switch $hWndFrom Case $hWndFrom == $CheckResultsView Switch $iCode Case $NM_DBLCLK ; Sent by a list-view control when the user double-clicks an item with the left mouse button Local $tInfo = DllStructCreate($tagNMITEMACTIVATE, $ilParam) $Index = DllStructGetData($tInfo, "Index") $subitemNR = DllStructGetData($tInfo, "SubItem") ; make sure user clicks on the listview & only the activate If $Index <> -1 Then ;Col item 2 index $item2 = StringSplit(_GUICtrlListView_GetItemTextString($CheckResultsView, $subitemNR),'|') $item2= $item2[2] Ticket_ShowTicketID($item2) EndIf EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_NOTIFYMy attempt at making my second listview work: Func WM_NOTIFY($hWnd, $iMsg, $iwParam, $ilParam) Local $hWndFrom, $iCode, $tNMHDR, $hWndListView $hWndListView = $CheckResultsView If Not IsHWnd($CheckResultsView) Then $hWndListView = GUICtrlGetHandle($CheckResultsView) $tNMHDR = DllStructCreate($tagNMHDR, $ilParam) $hWndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom")) $iCode = DllStructGetData($tNMHDR, "Code") Switch $hWndFrom Case $hWndFrom == $CheckResultsView Switch $iCode Case $NM_DBLCLK ; Sent by a list-view control when the user double-clicks an item with the left mouse button Local $tInfo = DllStructCreate($tagNMITEMACTIVATE, $ilParam) $Index = DllStructGetData($tInfo, "Index") $subitemNR = DllStructGetData($tInfo, "SubItem") ; make sure user clicks on the listview & only the activate If $Index <> -1 Then ;Col item 2 index $item2 = StringSplit(_GUICtrlListView_GetItemTextString($CheckResultsView, $subitemNR),'|') $item2= $item2[2] Ticket_ShowTicketID($item2) EndIf EndSwitch Case $hWndFrom == $incident_ShowTicket_InteractionView Switch $iCode Case $NM_DBLCLK ; Sent by a list-view control when the user double-clicks an item with the left mouse button MsgBox(0, "", "Hi!") EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_NOTIFYIt just hangs when ran, only a part of the UI is displayed when the last code is used. Why does this happen? Thanks in advance!
  6. Ah thanks for the explanation .
  7. @Melba23 Yes I did. I also made sure I didnt press Cancel or something like that. In the editor everything looks correct (borders around text in code text etc, but once I send my post. The text inside the code tags disappears. When I edit the post, I only see the empty border where my code was in.
  8. @Melba23 Thank you for your reply. Even plain text disappears using that code formatting button. Does it have something to do with the fact that this is a new account? I have made a pastebin post (http://pastebin.com/rQTtGMq7) to show what I tried
  9. Using >this UDF I'm already able to stream radiostations, but I also want to be able to play audio CD's using this UDF. I edited the UDF as sugested in >this post . So I thought that I would be able to play a cd using this: But it doesnt seem to work. This is the output I get: </pre>But it doesnt seem to work. This is the output I get:<br><pre class="prettyprint lang-nocode linenums:0">Warning: option --plugin-path no longer exists. [001eec10] main libvlc debug: VLC media player - 2.0.7 Twoflower [001eec10] main libvlc debug: Copyright © 1996-2013 VLC authors and VideoLAN [001eec10] main libvlc debug: revision 2.0.7-7-gf12ab4a [001eec10] main libvlc debug: configured with ../extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-x264' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-dvdread' '--enable-shout' '--enable-goom' '--enable-caca' '--disable-portaudio' '--disable-sdl' '--enable-qt4' '--enable-skins2' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-sqlite' '--disable-dirac' '--host=i686-w64-mingw32' 'host_alias=i686-w64-mingw32' 'CXX=i686-w64-mingw32-g++ -static-libgcc' [001eec10] main libvlc debug: searching plug-in modules [001eec10] main libvlc debug: loading plugins cache file C:\Program Files (x86)\VideoLAN\VLC\plugins\plugins.dat [001eec10] main libvlc debug: recursively browsing `C:\Program Files (x86)\VideoLAN\VLC\plugins' [001eec10] main libvlc debug: saving plugins cache C:\Program Files (x86)\VideoLAN\VLC\plugins\plugins.dat [001eec10] main libvlc debug: plug-ins loaded: 389 modules Warning: option --plugin-path no longer exists. [001eec10] main libvlc debug: translation test: code is "nl" [001eec10] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU [001eec10] main libvlc debug: looking for memcpy module: 4 candidates [001eec10] main libvlc debug: using memcpy module "memcpymmxext" [029ccf80] main interface debug: looking for interface module: 1 candidate [029ccf80] main interface debug: using interface module "hotkeys" [029c20a0] main input debug: using timeshift granularity of 50 MiB, in path 'C:\Users\MAARTE~1.KEY\AppData\Local\Temp' [029c20a0] main input debug: creating demux: access='cdda' demux='' location='/E:/' file='E:\' [0295fbd8] main demux debug: looking for access_demux module: 0 candidates [0295fbd8] main demux debug: no access_demux module matched "cdda" [029c20a0] main input debug: creating access 'cdda' location='/E:/', path='E:\' [097cc148] main access debug: looking for access module: 1 candidate [097cc148] cdda access debug: using winNT/2K/XP ioctl layer [097cc148] cdda access debug: p_sectors: 0, 32 [097cc148] cdda access debug: p_sectors: 1, 84552 [097cc148] cdda access debug: p_sectors: 2, 127495 [097cc148] cdda access debug: p_sectors: 3, 186667 [097cc148] cdda access debug: p_sectors: 4, 229355 [097cc148] cdda access debug: fetching infos with CDDB [097cc148] cdda access debug: CD-TEXT information missing [097cc148] cdda access debug: track[0] start=32 [097cc148] cdda access debug: track[1] start=84552 [097cc148] cdda access debug: track[2] start=127495 [097cc148] cdda access debug: track[3] start=186667 [097cc148] main access debug: using access module "cdda" [0295fbd8] main stream debug: Using block method for AStream* [0295fbd8] main stream debug: starting pre-buffering [0295fbd8] main stream error: cannot pre fill buffer [029c20a0] main input warning: cannot create a stream_t from access [097cc148] main access debug: removing module "cdda" Edit: I removed the markup because it doesnt work right.
×
×
  • Create New...