Quote:
Originally Posted by HideAndSeeK
hm,
my decompiler isnt working ,
just wanna know how u did it, that u bring the choosen client to a status, i did it like this, so u did it with stringsplit, too? Or what method did u use?
greetz
|
Well, of course your decompiler didn't work, I protected the program with obfuscated :P
Here is the Scan function, used 3 arguments (a list, list of winhandle, list of client type)
Code:
Func _Scan(ByRef $list, ByRef $wList, ByRef $aClientType)
Local $i, $j, $tmp, $count
_GUICtrlListBox_ResetContent($list)
$wList[0][0] = 0
For $j = 1 To $aClientType[0]
$tmp = WinList("[CLASS:" & $aClientType[$j] & "]")
$count = $wList[0][0]
For $i = 1 To $tmp[0][0]
$wList[$i + $count][0] = $tmp[$i][0]
$wList[$i + $count][1] = $tmp[$i][1]
$wList[0][0] += 1
Next
Next
For $i = 1 To $wList[0][0]
_GUICtrlListBox_AddString($list, $wList[$i][0])
Next
EndFunc ;==>_Scan
Other functions:
Code:
Func Minimize()
_SetState(@SW_MINIMIZE, "Minimized", $List1, $WinList)
EndFunc ;==>Minimize
Func MinimizeAll()
_SetStateAll(@SW_MINIMIZE, "All minimized", $WinList)
EndFunc ;==>MinimizeAll
Func Hide()
_SetState(@SW_HIDE, "Hidden", $List1, $WinList)
EndFunc ;==>Hide
Func HideAll()
_SetStateAll(@SW_HIDE, "All hidden", $WinList)
EndFunc ;==>HideAll
Func Show()
_SetState(@SW_SHOW, "Shown", $List1, $WinList)
EndFunc ;==>Show
Func ShowAll()
_SetStateAll(@SW_SHOW, "All Shown", $WinList)
EndFunc ;==>ShowAll
Func _SetState($state, $tip, ByRef $list, ByRef $wList)
Local $i, $HWNDTab
$HWNDTab = _GetSelection($list, $wList)
If $HWNDTab[0] = 0 Then
TrayTip("Note", "No selection found",12,1)
Else
For $i = 1 To $HWNDTab[0]
WinSetState($HWNDTab[$i], "", $state)
Next
TrayTip("Info", $tip, 12,1)
EndIf
EndFunc ;==>_SetState
Func _GetSelection(ByRef $list, ByRef $wList)
Local $SelectTab, $i, $nbItem
$SelectTab = _GUICtrlListBox_GetSelItems($list)
$nbItem = $SelectTab[0]
Local $HWNDTab[$nbItem + 1]
$HWNDTab[0] = $SelectTab[0]
For $i = 1 To $nbItem
$HWNDTab[$i] = $wList[$SelectTab[$i] + 1][1]
Next
Return $HWNDTab
EndFunc ;==>_GetSelection
Quote:
Originally Posted by DImported
annoying thing about it when i use it for ressing is that it always brings the sro client to front that is pressing res, even when hidden. i currently only use this for login, and use daskillz for res.
|
I'm aware of that bug. That's why i implemented the hotkey Ctrl+F1 to minimize the current active client. When minimized, your client won't be brought to front.