Results 1 to 2 of 2

Thread: Need a little help w/ AI "ControlGetHandle" function...

  1. #1
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448

    Need a little help w/ AI "ControlGetHandle" function...

    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?
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  2. #2
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Nvm. Found another way of gaining control.
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

Similar Threads

  1. Sdk?
    By Arby in forum FB Software
    Replies: 75
    Last Post: 01-07-2009, 02:20 PM
  2. Why do people think RR is hard to setup?
    By 2k1Toaster in forum Software & Software Development
    Replies: 53
    Last Post: 05-18-2008, 01:38 AM
  3. pc reboot on sd startup
    By duanes7 in forum StreetDeck
    Replies: 3
    Last Post: 12-14-2007, 09:55 AM
  4. Infill T3 prototypes of InFillCOM.dll
    By rburhum in forum StreetDeck
    Replies: 5
    Last Post: 05-22-2007, 01:31 AM
  5. Autodimming monitor after 2 seconds of inactivity. (Solution inside)
    By justintime in forum Software & Software Development
    Replies: 54
    Last Post: 02-01-2006, 02:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •