Jump to content
Sign in to follow this  
UnknownWarrior

Noob question

Recommended Posts

Well im trying to make this nifty little tool for myself but i can't seem to get this to work

While 1
                Send('{CTRLDOWN}')
            MouseClick("left", x, y)
        WEnd

It wouldn't do both for me at the same time, any ideas?

Edited by UnknownWarrior

Share this post


Link to post
Share on other sites

Well the way you wrote it, you're telling the program to Send() first before the MouseClick()


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

Wait I got an idea

Have it hold down the mouse click then send the key

Same effect right?

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

I have another idea, hold on while I make sure

EDIT: use the SendKeyDownDelay command

EDIT EDIT: I mean the AutoItSetOption command and have the option be SendKeyDownDelay

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

Why could that make a difference though?

While 1
           SendKeyDownDelay('{CTRLDOWN}')
           MouseClick("left", x, y)
       WEnd

that how you do it, even if thats the correct way i wrote it, why would be using the the send() and that different?

Share this post


Link to post
Share on other sites

I have another idea, hold on while I make sure

EDIT: use the SendKeyDownDelay command

EDIT EDIT: I mean the AutoItSetOption command and have the option be SendKeyDownDelay

How could i do that? , now you just confusing me lol.

(sry for double post guys)

Share this post


Link to post
Share on other sites

Search on the help file for AutoItSetOption

Then you will set the delay so it's just enough for the mouseclick to happen while it's still down


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

Hello,

hmmz, what is actually your goal?

because, if you want the program to get a piece of a string, it will constantly do that, so it will look like that it isn't doing anything

or am i having the wrong idea ?

i'll see =P

Share this post


Link to post
Share on other sites

Hello,

hmmz, what is actually your goal?

because, if you want the program to get a piece of a string, it will constantly do that, so it will look like that it isn't doing anything

or am i having the wrong idea ?

i'll see =P

I want it to loop and Send ctrldown and have a various line of mouseclicks while ctrl is still being held down....

Share this post


Link to post
Share on other sites

Found it!

"To hold a key down (generally only useful for games)

Send("{a down}") ;Holds the A key down
Send("{a up}") ;Releases the A key
"

All you have to do is put the mouseclick between those two

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

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  

×
×
  • Create New...