Jump to content

Press and drag up item in list


Recommended Posts

I have a list. And i want when i read end item in current view, my script will scroll next new item.

I use this code: 

Func ControlMouseDrag($hWnd, $x1, $y1, $x2, $y2)
    _SendMessage($hWnd, $WM_MOUSEMOVE,   0, _WinAPI_MakeLong($x1, $y1))
    _SendMessage($hWnd, $WM_LBUTTONDOWN, 1, _WinAPI_MakeLong($x1, $y1))
    _SendMessage($hWnd, $WM_MOUSEMOVE,   1, _WinAPI_MakeLong($x2, $y2))
    ;Sleep(5000)
    _SendMessage($hWnd, $WM_LBUTTONUP,   0, _WinAPI_MakeLong($x2, $y2))
EndFunc

But item in list is drag to item 315, 316, ....

sorry my english not well.

I want 201 is first item in view but went i keep and drag list, first item is 315,.... It like you pull it so fast and it come to end of list

Untitled.png

Link to post
Share on other sites
  • Developers

Merged: Please stick to 1 topic.
So when you don't get any response you probably haven't given enough information for people to act upon.

Jos 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites

Please help me.

Help me Press and hold left mouse and move to new coordinates.

I use this code:

_SendMessage($hWnd, $WM_MOUSEMOVE,   0, _WinAPI_MakeLong(246, 140))
            _SendMessage($hWnd, $WM_LBUTTONDOWN, 1, _WinAPI_MakeLong(246, 140))
            _SendMessage($hWnd, $WM_MOUSEMOVE,   1, _WinAPI_MakeLong(247, 94)) 
            Sleep(1000)
            _SendMessage($hWnd, $WM_LBUTTONUP,   0, _WinAPI_MakeLong(310, 71))

 

But it only drag file, not press and hold left mouse. 

Link to post
Share on other sites
  • Developers
21 hours ago, Jos said:

Merged: Please stick to 1 topic.
So when you don't get any response you probably haven't given enough information for people to act upon.

Jos 

Ok... @thanhvu909x final warning ....  STOP creating new threads and stick to this one!
Threads Merged.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites

How do you think we can help you with this kind of information ?  If you want us to help you, you will need to help us first.  Make a runable script that we can actually execute.  Since we do not have the application you are using, I suggest you create a snippet running PAINT (or any other app that we all have).  

Link to post
Share on other sites
  • Developers

@thanhvu909x,

Why did you think it would be smart to report my post as SPAM and sort of ignoring it?
So to be clear: You have a final warning and the next time to ignore me you will simply be removed from these forums. :idiot:

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...