Trying to put together a plugin like the old JTFE plugin, but one that can be skinned normally.
I have the source for the JTFE plugin, but it's beyond me.
So, I decided to do things from the ground up. Plus its nice to learn stuff.
Anyways, running into a problem getting the JTF window handle.
If the JTF window is already up, I can get the rest of the function handles easily. No problem.
However, if the JTF windows does not exist and tell AI to bring the window up, the window handle doesn't match what AI is returning. Here's a snippet of the code:
Code:
If Not WinExists("classname=Winamp v1.x") Then
Exit
EndIf
;Get Winamp & JTF handles
$WAmp_hwnd = ControlGetHandle("classname=Winamp v1.x", "", "")
MsgBox(0,"$WAmp_hwnd",$WAmp_hwnd)
$JTFE_hwnd = ControlGetHandle("Jump to file", "", "")
MsgBox(0,"$JTFE_hwnd Off",$JTFE_hwnd)
;Get JTF if it isn't running
While $JTFE_hwnd = ""
WinActivate("classname=Winamp v1.x", "")
Send("j")
sleep(1000)
$JTFE_hwnd = ControlGetHandle("Jump to file", "", "")
WEnd
MsgBox(0,"$JTFE_hwnd On",$JTFE_hwnd)
$Clse_hwnd = ControlGetHandle($JTFE_hwnd, "", 0002)
MsgBox(0,"$Clse_hwnd ",$Clse_hwnd)
What am I doing wrong?
Bookmarks