Code: Select all
Local $hWnd = WinActivate("[CLASS:ThunderRT6FormDC]", "")
WinSetState($hWnd, "", @SW_RESTORE)
[edit] Odd thing is I do see XYplorer being activated and focused on IF XYplorer is restored. If it's minimized, then it does nothing.
Code: Select all
Local $hWnd = WinActivate("[CLASS:ThunderRT6FormDC]", "")
WinSetState($hWnd, "", @SW_RESTORE)
Code: Select all
text <hwnd>;
How are you running it outside of XYplorer?Enternal wrote:It returned <a handle> for the $hWnd. It returned <another handle> if I run the script directly from XYplorer.
I simply run it directly from the Desktop through Explorer. Not only that, just a moment ago while writing this post, it worked once again and then stopped working afterwards. Very very weird.SammaySarkar wrote:Confusing.How are you running it outside of XYplorer?Enternal wrote:It returned <a handle> for the $hWnd. It returned <another handle> if I run the script directly from XYplorer.
ed: added a bit of possibly important info to 1st post.
Code: Select all
If WinExists("[CLASS:ThunderRT6FormDC]") Then
MsgBox(0, "Found You", "Yet, Can I Eat The Pizza?", 1)
Local $hWnd = WinActivate("[CLASS:ThunderRT6FormDC]", "")
WinSetState($hWnd, "", @SW_RESTORE)
;MsgBox($MB_OK, "Test", $hWnd)
$var = WinList("[CLASS:ThunderRT6FormDC]", "")
_ArrayDisplay($var, "Have " & $var[0][0] & " Windows That Exist")
Else
MsgBox(0, '', 'Could Not Find Pizza. How VILE!')
Exit
EndIf
Code: Select all
$var = WinList("[CLASS:ThunderRT6FormDC]")
For $i = 1 To $var[0][0]
If StringInStr($var[$i][0], "xyplorer") = 0 Then ContinueLoop
; Do whatever needs to be done
Next
Thanks! DId not mean it was hard or anything, just tired after all that troubleshooting haha.highend wrote:Would be one way...Code: Select all
$var = WinList("[CLASS:ThunderRT6FormDC]") For $i = 1 To $var[0][0] If StringInStr($var[$i][0], "xyplorer") = 0 Then ContinueLoop ; Do whatever needs to be done Next