Sign in to follow this  
Followers 0
danner

holding tab and MouseClickDrag

4 posts in this topic

Hey ppl, i basically want my script to do what it says, but somehow it doesn't hold the tab key when i use the following:

While 1
    if $Start = 0 Then
        sleep(100)
    EndIf

    if $Start = 1 Then
    
        Sleep(Random(3000,5000))
        Send("7")
        Sleep(1000)
        Send("{{Tab} Down}}")
        Sleep(50)
        MouseClickDrag(1,232,1023,232,10)
        Sleep(50)
        MouseClickDrag(1023,232,1,232,10)
        Sleep(50)
        Send("{{Tab} Up}}")
        Sleep(Random(3000,6000))
        Send("P")
        Sleep(Random(50,500))
    EndIf
WEnd

Send("{Tab} Down") also doesn't work...

Also, is it possible to put the mouseclickdrag in a timed loop, so it loops that for 1 minute and then continues? a few of my efforts failed horribly :P

There's also the pasting it a million times option..

Share this post


Link to post
Share on other sites



I think it would be Send("{Tab Down}")

Share this post


Link to post
Share on other sites

For the timed loop part look at TimerInit and TimerDiff



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

The Tab Down works like a charm, and timerinit could work aswell, not perfect yet...

thanks for the replies

Share this post


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
Sign in to follow this  
Followers 0