AutoHotkey Community

It is currently May 27th, 2012, 1:59 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: January 28th, 2010, 2:14 pm 
hey :) i found this script on the net
Ins::Suspend
LButton::
Loop
{
SetMouseDelay 30
Click
If (GetKeyState("LButton","P")=0)
Break
}

and i use it for games, but if i hold left ctrl or left shift it dont work, can anyone fix this ? :D i dont have a clue about making scripts


Report this post
Top
  
Reply with quote  
PostPosted: January 28th, 2010, 7:53 pm 
heyheykuk wrote:
hey :) i found this script on the net
Ins::Suspend
LButton::
Loop
{
SetMouseDelay 30
Click
If (GetKeyState("LButton","P")=0)
Break
}

and i use it for games, but if i hold left ctrl or left shift it dont work, can anyone fix this ? :D i dont have a clue about making scripts


The LButton is the left mouse button, Not ctrl or shift... If you want it to be a different button you need to replace the LButton with whatever you intend it to be or else just hold your left mouse button.


Report this post
Top
  
Reply with quote  
PostPosted: January 28th, 2010, 9:24 pm 
Anonymous wrote:
heyheykuk wrote:
hey :) i found this script on the net
Ins::Suspend
LButton::
Loop
{
SetMouseDelay 30
Click
If (GetKeyState("LButton","P")=0)
Break
}

and i use it for games, but if i hold left ctrl or left shift it dont work, can anyone fix this ? :D i dont have a clue about making scripts


The LButton is the left mouse button, Not ctrl or shift... If you want it to be a different button you need to replace the LButton with whatever you intend it to be or else just hold your left mouse button.


yes but the Lbutton stops repeating if i hold down ctrl or shift, thats my problem:)


Report this post
Top
  
Reply with quote  
PostPosted: January 29th, 2010, 3:07 am 
Then how about this
Code:
Ins::Suspend
LButton::
Loop
{
   GetKeyState, lcstate, LControl
   GetKeyState, lsstate, LShift
   
   If lcstate = D
   {
      Send, {Control}
   }
      If lsstate = D
   {
      Send, {Shift}
   }
SetMouseDelay 30
Click
If (GetKeyState("LButton","P")=0)
Break
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 3:53 am 
Offline

Joined: November 23rd, 2009, 2:11 pm
Posts: 104
i have a script that can help you, but you arent putting any effort into it.
as you can see, thisis an ask for help, not an ask for script. if you will look int the manual that comes along with the program, it explains quite easily in the "hotkeys section"

i am going to show you another version of this script as well.
Code:
ins::suspend
lbutton::settimer,click,30; when you press the left mouse button, you start a timer to click
lbutton up::settimer,click,off; when you release the left mouse button, you will turn off the clicking timer
click:
click; as this is the end of the code, return is not needed here


and btw, post code in code tags

_________________
  /\ /\ This is Kitty
(>';'<) Cut, copy, and paste kitty onto your sig.
((")(")) Help Kitty gain World Domination.

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 7:57 am 
geekdude wrote:
i have a script that can help you, but you arent putting any effort into it.
as you can see, thisis an ask for help, not an ask for script. if you will look int the manual that comes along with the program, it explains quite easily in the "hotkeys section"

i am going to show you another version of this script as well.
Code:
ins::suspend
lbutton::settimer,click,30; when you press the left mouse button, you start a timer to click
lbutton up::settimer,click,off; when you release the left mouse button, you will turn off the clicking timer
click:
click; as this is the end of the code, return is not needed here


and btw, post code in code tags


doesnt work :(


Report this post
Top
  
Reply with quote  
PostPosted: January 29th, 2010, 7:58 am 
Anonymous wrote:
Then how about this
Code:
Ins::Suspend
LButton::
Loop
{
   GetKeyState, lcstate, LControl
   GetKeyState, lsstate, LShift
   
   If lcstate = D
   {
      Send, {Control}
   }
      If lsstate = D
   {
      Send, {Shift}
   }
SetMouseDelay 30
Click
If (GetKeyState("LButton","P")=0)
Break
}

doesnt work :(


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 3:21 pm 
Offline

Joined: November 23rd, 2009, 2:11 pm
Posts: 104
you need to read this to get your answer. (hint, it is a key modifier thingy you need to put before the keys)

_________________
  /\ /\ This is Kitty
(>';'<) Cut, copy, and paste kitty onto your sig.
((")(")) Help Kitty gain World Domination.

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 4:02 pm 
Just wondering but what did you do to actually test these because they both work for me while pressing Ctrl and shit except for mine if you press the right ones it doesn't cuz I forgot to add those two in.


Report this post
Top
  
Reply with quote  
PostPosted: May 8th, 2012, 5:14 pm 
Ins::Suspend
LButton::
^LButton::
+LButton::
Loop
{
Click
Sleep, 60
If (GetKeyState("LButton","P")=0)
Break
}
:mrgreen:


Report this post
Top
  
Reply with quote  
PostPosted: May 8th, 2012, 5:37 pm 
Offline

Joined: May 8th, 2012, 5:09 pm
Posts: 1
funkakes wrote:
Ins::Suspend
LButton::
^LButton::
+LButton::
Loop
{
Click
Sleep, 60
If (GetKeyState("LButton","P")=0)
Break
}
:mrgreen:


:roll: :roll: :roll: :roll:
Ins::Suspend
*LButton::
Loop
{
Click
Sleep, 60
If (GetKeyState("LButton","P")=0)
Break
}


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, engunneer, JSLover, nimda, rbrtryn, sjc1000 and 20 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