|
-
Nov 2nd, 2018, 11:47 AM
#1
Thread Starter
Frenzied Member
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.

-
Nov 4th, 2018, 07:29 AM
#2
Thread Starter
Frenzied Member
Re: External Click to List not working
_____________________________________________________________________
----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.

-
Nov 4th, 2018, 10:42 PM
#3
Re: External Click to List not working
Are you sure your FindWindow is finding the window?
-
Nov 5th, 2018, 07:13 AM
#4
Thread Starter
Frenzied Member
Re: External Click to List not working
 Originally Posted by dee-u
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|