Results 1 to 4 of 4

Thread: External Click to List not working

  1. #1

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Question External Click to List not working

    I have a repetitive task of loading a file and selecting some items from there.
    To avoid doing this manually, I've prepared a LIST of things to be ticked and now trying to automate this.

    The app is an external app/window. I've managed to Find the Window/Class/hwnd of control etc...
    Then I'm looping through items:

    Code:
    xRes= SendMessage(LB_Hwnd, LB_SETCURSEL, ByVal CLng(i), ByVal 0)    '''This Works & Selects the Item
    xRes= SendMessage(LB_Hwnd, LB_SETSEL, ByVal CLng(1), ByVal CLng(i)) ''Doesn't work now <<<<<<<
    So it was all working until i restarted the PC and tested again. Now the CLICK isn't working!! Not selecting the checkbox of the list control.

    Why is LB_SETSEL failing all of a sudden?
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  2. #2

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: External Click to List not working

    *bump*
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  3. #3
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: External Click to List not working

    Are you sure your FindWindow is finding the window?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: External Click to List not working

    Quote Originally Posted by dee-u View Post
    Are you sure your FindWindow is finding the window?
    Positive! LB_SETCURSEL is selecting the item on the list.
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width