AutoHotkey Community

It is currently May 27th, 2012, 12:05 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: January 19th, 2011, 4:44 pm 
Offline

Joined: January 19th, 2011, 4:41 pm
Posts: 3
Location: SGP
hi i hope i can get some answers here....currently i need to know how to get a continous number of clicks currently my script is

F1::MouseClick,left,,,9

but what i want is one click at a time not all at once....so how do i use the delay command can someone help me out here

(btw im confused how to make a series of command with just one hotkey)
for example i need 3 left clicks , hold left click once , release left click how do i do this? hope some expert can teach me how


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 19th, 2011, 4:51 pm 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
kotachua wrote:
hi i hope i can get some answers here....currently i need to know how to get a continous number of clicks currently my script is

F1::MouseClick,left,,,9

but what i want is one click at a time not all at once....so how do i use the delay command can someone help me out here

(btw im confused how to make a series of command with just one hotkey)
for example i need 3 left clicks , hold left click once , release left click how do i do this? hope some expert can teach me how


Code:
F1::
Loop, 9
     {
     LButton
     Sleep, 250
     }
Return


Not tested but it should point you in the right (or a) direction. :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 19th, 2011, 4:59 pm 
Offline

Joined: January 19th, 2011, 4:41 pm
Posts: 3
Location: SGP
what is the use of Lbutton im not just trying to leech but learn as well =)
oh btw if i dont want it to loop but as single clicks how do i do it?

coz rite now i need 9 clicks then 1 left hold and release as F1 anyone can guide me towards that direction?

Edit* hey i got to press 9 click one after another but now i need to know how to get left click to hold then release after my 9 clicks using the same hotkey


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 19th, 2011, 5:26 pm 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
kotachua wrote:
what is the use of Lbutton im not just trying to leech but learn as well =)
Lbutton is the left mouse button.
Quote:
oh btw if i dont want it to loop but as single clicks how do i do it?
One of us is not understanding the other. The loop will click the left mouse button 1 time on every loop. In my example it will loop nine time and pause 1/4 second between clicks. To have it click slower make the Sleep value higher, 1000 = 1 second. If this is not what you mean try explaining to me again.

Or try this mouse recorder, it works very well. What ever you do while it's recording it will do exactly when it plays back.
http://www.autohotkey.com/forum/viewtopic.php?t=64464

Quote:
coz rite now i need 9 clicks then 1 left hold

Use {LButton down} and {LButton up} to simulate holding the mouse button down. Look at these pages to get an idea of the names of the keys and buttons.
http://www.autohotkey.com/docs/KeyList.htm
http://www.autohotkey.com/docs/misc/Remap.htm
http://www.autohotkey.com/docs/Hotkeys.htm

Quote:
and release as F1
:?: No idea what you mean by this.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 19th, 2011, 5:34 pm 
Offline

Joined: January 19th, 2011, 4:41 pm
Posts: 3
Location: SGP
wow thanks u guys i figured it out and for the first time not a leecher =)

now im off owning DCUO

btw one more question now i have set F1 as my hot key can i set F2 button as my another hot key in the same script? if so how? just leave some space and begin a new tread?

Edit*
oh i figured it out too thanks for your help now i will macro my way to victory =) thumbs up


Last edited by kotachua on January 19th, 2011, 5:37 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 19th, 2011, 5:35 pm 
Offline

Joined: January 19th, 2011, 8:51 am
Posts: 8
kotachua wrote:
what is the use of Lbutton im not just trying to leech but learn as well =)
oh btw if i dont want it to loop but as single clicks how do i do it?

coz rite now i need 9 clicks then 1 left hold and release as F1 anyone can guide me towards that direction?

Edit* hey i got to press 9 click one after another but now i need to know how to get left click to hold then release after my 9 clicks using the same hotkey


lol specter333 what a helpful guy...... =(

Kotachua this is the example you asked for 3left click hold left click once and release. You weren't specific enough but this is what you want.
Code:
F1::
;This first click is 3 left clicks, you can use specter333's loop for this if you want to control the left click delay, but really same thing
MouseClick , LEFT , , , 3, 2
Sleep, 50
;This only sends the mouseclick up event
MouseClick , LEFT , , , 1, 2, D
Sleep, 50
;This only sends the mouseclick up event
MouseClick , LEFT , , , 1, 2, U


Or if I was misunderstanding, and you want to hold a key so that while the key is being held down it spams clicks....

Then use a loop with getkeystate =)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2011, 1:39 am 
Offline

Joined: February 9th, 2011, 1:17 am
Posts: 1
I've been trying to simply map the f key to right mouse button, to reduce the wear on my mouse for DCUO

Code:
f::RButton


It works outside of DCUO, but it won't send to the game.

Kotachu seemed to have gotten his to work, but I tried both other available scripts, and modding them to my purposes, but the window just doesn't seem to accept the remapping.

Does anyone have any tips for sending the key press to the DC Universe Online window? (Well, mouse press)
I've also tried:
Code:
f::
Sendinput {Click right}
return

Again, this works outside the game.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2011, 8:41 pm 
Offline

Joined: March 19th, 2007, 5:12 pm
Posts: 29
The F key is mapped to flying in the game and it may be getting filtered. Try something else like the V key, which cannot be mapped in the game for some reason.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2011, 11:31 pm 
I had actually gotten rid of the F as flight key and moved that over to 'O' right away.

However, I realized I could just use an in game control scheme that said F was the secondary button for ranged attacks. Works out just fine.

I still can't get -any- script to send to DCUO though, or Everquest.

But yeah, the V key thing hit me as that's what I initially set 'automatic fast forward movement' to, for rocket glide, since it was way the hell over at number lock. I've since moved it to x and that works.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2011, 9:10 pm 
Offline

Joined: March 15th, 2011, 9:01 pm
Posts: 2
This is my first attempt at a script so bear with me. I am trying to create a script that does the following:

Continuosly hold right mouse button for approx 10 seconds
While holding right mouse button click left mouse button 3 times

Is this corect?

Code:
F1::
Loop
{
RButton up
If GetKeyState("Esc","P")=1
Loop, 3
{
LButton
Sleep 250
}
Break
}
return


Last edited by tiki on March 16th, 2011, 6:06 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2011, 11:51 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
Tiki, please use code tags.
Also, have you tried SendMode Play?

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 16th, 2011, 7:17 pm 
Offline

Joined: March 15th, 2011, 9:01 pm
Posts: 2
Unfortunatley I am fairly tech illiterate and thus couldn't make sense of the SendMode page of information. Any other tips?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 16th, 2011, 7:30 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
Put the following code as the first line of your script ( in the autoexecute section; before any hotkeys or "return"s )
Code:
Sendmode play

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Guys plss help me T_T
PostPosted: September 14th, 2011, 10:21 am 
guys can you give me a script that if i push the F1 the number 9 will work at a same time i hope that i will get some informations here thanks :wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2011, 11:25 am 
Offline

Joined: July 10th, 2008, 8:49 am
Posts: 1865
Location: Brussels, Belgium
Yoshi, go eat some turtles please. :-D

Jocking...

Code:
F1::{NumPad9}

This one ?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Google Feedfetcher, Klark92, Yahoo [Bot] and 18 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group