Jump to content

MadBoy

Active Members
  • Posts

    819
  • Joined

  • Last visited

Profile Information

  • Location
    Poland

Recent Profile Visitors

803 profile views

MadBoy's Achievements

Universalist

Universalist (7/7)

3

Reputation

  1. flyingboz care to share your IniSectionsToArray() ?
  2. I do have the same problem. Anyone else have this? I've managed to find the problem. It occurs for this file section: When it tried to read DriverVer = 12/30/2009,1085.23.1230.2009 it fails. I'm sure there are more errors on other files but this is the first one i found.
  3. That's why downloadable files shouldn't have spaces. URL's don't like it, ftp sites dont like it :-) If you have to use space use _ . or whatever just don't use real space :-)
  4. For latest version go to http://pro-solutions.pl/projects/ Currently 2.0.0.24 is available. And since i rarely update this thread i suggest going to MSFN too for newest information about it (aka changelog, current problems).
  5. Tnx bowmore ;-) works great now
  6. So does anyone know if it's my bad habit or it's a bug?
  7. I am not sure whether this would be possible on your app but i used to read what 'devcon.exe' was saying on cmd window when started. Small cut out of my code. Run and StdoutRead and you could probably try that (if it's a graphic based app i am not sure how it would 'work' if at all but worth a try). $DevicesStatus = Run(@ComSpec & " /c " & $devcon & " status *", '', @SW_HIDE, 2) While 1 $DevicesStatusData = StdoutRead($DevicesStatus) If @error Then ExitLoop If $DevicesStatusData Then $DevicesStatusOutput &= $DevicesStatusData Else Sleep(10) EndIf WEnd $DevicesStatusOutput = StringStripWS($DevicesStatusOutput, 6) ; Remove spaces from output $DevicesStatusOutput = StringSplit($DevicesStatusOutput, @CRLF) ; Split output of devcon into array ;_ArrayDisplay($DevicesStatusOutput, "DUPA") $DevicesLastLine = $DevicesStatusOutput[$DevicesStatusOutput[0]] ; Output of last DEVCON line $DevicesLastLineSplit = StringSplit($DevicesLastLine, "matching", 1) _AddLineBox("Detecting number of devices in system.") Edit: I guess stdout from help file has better example
  8. It's not much.. but it's always something :-) Full description at msfn Changelog for 2.0.0.21 (public) - Added function to automatically change Signed Drivers option to Ignore and restore it back to original value when done (window management not nessecary) - Compiled to newest version with special options which should give some speed improvements - Updated version of 7zip to 4.65 (it's too soon for beta 9.07 or so) Version 2.0.0.21 pro-s_hardware_installer_2.0.0.21.exe config file Thanks engine for your work on signed drivers :-)
  9. Also I've just noticed that in my program when i have code like below. When i watch program running and doing updates (using _UpdateStatusBar function) of status bar icons show up and work, when i click away (to firefox or some other program) and come back the icons are gone (although the program itself wasn't doing anything besides waiting for me to do something). Global $StatusBar = _GUICtrlStatusBar_Create($Gui_Main) Global $aParts[2] = [100, -1] _GUICtrlStatusBar_SetParts($StatusBar, $aParts) _UpdateStatusBar("Ready", "Waiting for user interaction..") Func _UpdateStatusBar($Text1, $Text2) _GUICtrlStatusBar_SetText($StatusBar, $Text1) _GUICtrlStatusBar_SetText($StatusBar, $Text2, 1) _GUICtrlStatusBar_SetIcon($StatusBar, 0, 21, "shell32.dll") ; 21 _GUICtrlStatusBar_SetIcon($StatusBar, 1, 167, "shell32.dll") ; 167 EndFunc ;==>_UpdateStatusBar
  10. Below is example 2 from _GUICtrlStatusBar_SetText in Help File. #include <GuiConstantsEx.au3> #include <GuiStatusBar.au3> #include <WinAPI.au3> #include <WindowsConstants.au3> Opt('MustDeclareVars', 1) $Debug_SB = False ; Check ClassName being passed to functions, set to True and use a handle to another control to see it work Global $iMemo Example2() Func Example2() Local $hGUI, $hStatus Local $aParts[4] = [75, 150, 300, 400] ; Create GUI $hGUI = GUICreate("(Example 2) StatusBar Set Icon", 400, 300) $hStatus = _GUICtrlStatusBar_Create ($hGUI) ; Create memo control $iMemo = GUICtrlCreateEdit("", 2, 2, 396, 274, $WS_VSCROLL) GUICtrlSetFont($iMemo, 9, 400, 0, "Courier New") GUISetState() ; Set parts _GUICtrlStatusBar_SetParts ($hStatus, $aParts) _GUICtrlStatusBar_SetText ($hStatus, "Part 1") _GUICtrlStatusBar_SetText ($hStatus, "Part 2", 1) ; Set icons _GUICtrlStatusBar_SetIcon ($hStatus, 0, 23, "shell32.dll") _GUICtrlStatusBar_SetIcon ($hStatus, 1, 40, "shell32.dll") ; Show icon handles MemoWrite("Part 1 icon handle .: 0x" & Hex(_GUICtrlStatusBar_GetIcon ($hStatus, 0))) MemoWrite("Part 2 icon handle .: 0x" & Hex(_GUICtrlStatusBar_GetIcon ($hStatus, 1))) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example2 ; Write message to memo Func MemoWrite($sMessage = "") GUICtrlSetData($iMemo, $sMessage & @CRLF, 1) EndFunc ;==>MemoWrite This works fine. Now if you change the order of _GUICtrlStatusBar_SetIcon and _GUICtrlStatusBar_SetText icons are not shown. _GUICtrlStatusBar_SetIcon ($hStatus, 0, 23, "shell32.dll") _GUICtrlStatusBar_SetIcon ($hStatus, 1, 40, "shell32.dll") _GUICtrlStatusBar_SetText ($hStatus, "Part 1") _GUICtrlStatusBar_SetText ($hStatus, "Part 2", 1) Is it a bug that text clears icons and that Icons always have to be added last or is it a feature and it's the way it should be that Text always goes before Icon. I spent some time working out why it wouldn't work when i mixed up ordering of those 2 functions. Maybe this could/should be mentioned in the helpfile so ppl like me wouldn't spend too much time on such things Thanks, MadBoy Edit: Fixed typo
  11. 1st link relates to my question about it and it wasn't answered there. 2nd link solution doesn't work. However it's no longer an issue. I've some solution for that. Just no real time to implement it. @Zetec452 and @engine I'm working (very very slowly) to release new version. When it will be available i'll make sure to repost it in both places (using non-parked domain).
  12. Check out help file for Command Line Parameters
  13. Take a look at http://www.appdeploy.com/packages/detail.asp?id=303 Instead doing it in autoit, just use proper command line.
  14. Hello, Are you using #Include <GuiListView.au3> _GUICtrlListView_BeginUpdate($hWnd) _GUICtrlListView_EndUpdate($hListView) Or you just update the listView without those functions?
×
×
  • Create New...