Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/31/2014 in all areas

  1. A simple script for get differences between 2 "Text" files. The different parts are highlighted and a double click on a line of listviews located to the bottom of the Gui permit to access to the line in the Text. Its defects : Using _ArraySearch, it's a bit slow and hungry on cpu usage. Previous downloads : 69 source and executable are available in the Download Section Hope it can help !
    1 point
  2. http://www.regexr.com/v1/ Click the tab "Community"
    1 point
  3. Thanks for the comments. It's not easy to know where to start and where to end.Adding too much information and examples to the wiki will again leave users unsatisfied. I think we can expect a little bit of knowledge of Excel and Autoit before a user starts to automate Excel. To best use my limited spare time I'm going to expand the wiki based on user queries. If the question sounds to be sensible for others too I will add the answer to the wiki. OTH the wiki is free for everyone to modify
    1 point
  4. I think I'm happier than you are.
    1 point
  5. That worked great even though it doesn't show that in the registry. I had no idea that would be required. Amazing. You guys are really great. Thanks, Docfxit
    1 point
  6. Provide a small sample of the xml, here. I'd prefer to not need to download. Here is a small example...you can easily create a gui, and construct the xpaths from the values you need: $oXML = ObjCreate("Microsoft.XMLDOM") ; use load to load in an XML file $oXML.loadxml("<all><show ID='dexter'><season ID='1'><episode ID='1'/><episode ID='2'/></season><season ID='2'><episode ID='1'/><episode ID='2'/></season><season ID='3'><episode ID='1'/><episode ID='2'/><episode ID='3'/></season></show></all>") $oDexter = $oXML.selectsinglenode("//show[@ID='dexter']") ;~ ; example of picking season 1 and 3 $oSelectedSeasons = $oDexter.selectnodes("./season[@ID='1']|./season[@ID='3']") ; outputing the counts of episodes For $oSeason In $oSelectedSeasons $oEpisodes = $oSeason.selectnodes("./episode") ConsoleWrite($oSeason.getattribute("ID") & " " & $oEpisodes.length & @CRLF) Next This works too: $oSelectedSeasons = $oDexter.selectnodes("./season[@ID='1' or @ID='3']") $oSelectedSeasons = $oXML.selectnodes("//show[@ID='dexter']/season[@ID='1' or @ID='3']") diff shows: $oSelectedSeasons = $oXML.selectnodes("//show[@ID='dexter']/season[@ID='1' or @ID='3']|//show[@ID='somethingelse]/season[@ID='2']")
    1 point
  7. ale1981, Try doing it this way: #include <GUIConstantsEx.au3> #include <GUIListView.au3> #include <Misc.au3> #include <WindowsConstants.au3> $hGUI = GUICreate("Test", 400, 400) $btn = GUICtrlCreateButton( "", 150, 50, 75, 20 ) $cInput = GUICtrlCreateInput( "", 10, 50, 100, 20 ) GUISetState() GUIRegisterMsg( $WM_NOTIFY, "WM_NOTIFY" ) Global $idListview, $packersGUI, $cDummy While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $btn listpackers() EndSwitch WEnd Func listPackers() $packersGUI = GUICreate( "Packers List", 300, 300, -1, -1, $WS_SYSMENU ) $idListview = GUICtrlCreateListView( "", 2, 2, 294, 268 ) $cDummy = GUICtrlCreateDummy() ; Create dummy control GUISetState( @SW_SHOW ) Local $packerList[2][2] = [[1, "Name1"],[2, "Name2"]] ; Add columns _GUICtrlListView_AddColumn( $idListview, "Packer ID", 75 ) _GUICtrlListView_AddColumn( $idListview, "Packer Name", 150 ) _GUICtrlListView_SetItemCount( $idListview, 3 ) _GUICtrlListView_AddArray( $idListview, $packerList ) _GUICtrlListView_DeleteItem( $idListview, 0 ) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $cDummy ; When dummy fired $iIndex = GUICtrlRead($cDummy) ; Read index GUICtrlSetData( $cInput, _GUICtrlListView_GetItemText($idListview, $iIndex) ) ; Get data into input ExitLoop EndSwitch WEnd GUIDelete($packersGUI) EndFunc Func WM_NOTIFY($hWnd, $iMsg, $wParam, $lParam) #forceref $hWnd, $iMsg, $wParam Local $hWndFrom, $iIDFrom, $iCode, $tNMHDR, $tInfo, $tBuffer, $tBuffer2 $tNMHDR = DllStructCreate($tagNMHDR, $lParam) $hWndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom")) $iIDFrom = DllStructGetData($tNMHDR, "IDFrom") $iCode = DllStructGetData($tNMHDR, "Code") Switch $iIDFrom Case $idListview 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, $lParam) GUICtrlSendToDummy($cDummy, DllStructGetData($tInfo, "Index")) ; Fire dummy and set index value EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc Now you only delete the GUI in the main script and not in the message handler. M23
    1 point
  8. I think I will add some examples of range selection to the wiki.
    1 point
  9. 1 point
  10. 1 point
  11. Detefon, You can produce systray pop-ups like that with my Toast UDF - the link is in my sig. M23
    1 point
  12. I reproduce the problem when I use _CommListPorts() without parameter. You can add a MsgBox to see if the returned value is a string : Global $portlist = _CommListPorts() MsgBox(0, "", $portlist)
    1 point
  13. Not this again. I thought you would have learnt from the last time not to speak for others when you yourself have limited understanding of the language. I shall not waste my time again, as I feel I am just wasting my breath.
    1 point
×
×
  • Create New...