Sign in to follow this  
Followers 0
lummel

right mouse button + crtl

4 posts in this topic

hi,

I wanted to make a script which hold ctrl + right mouse button for hours, but i dont know if theres a command for that. Any1 know if there's a command to hold right mouse button and ctrl at the same time for hours?

Share this post


Link to post
Share on other sites



hi,

I wanted to make a script which hold ctrl + right mouse button for hours, but i dont know if theres a command for that. Any1 know if there's a command to hold right mouse button and ctrl at the same time for hours?

MouseDown ( "right" )
Send("{CTRLDOWN}")

I do not like stupid and idiot people that write idiot things...If you are one, do not write.

Share this post


Link to post
Share on other sites

HotKeySet("{END}", "_Exit")
HotKeySet("{PAUSE}", "_Pause")

Global $Paused

While 1
  MouseDown ( "right" )
Send("{CTRLDOWN}")

WEnd

Func _Pause()
   $Paused = NOT $Paused
   While $Paused
      Sleep(1)
   WEnd
EndFunc

Func _Exit()
   Exit
EndFunc

This is what I got but when I start the script and press pause and go to game it doesnt do it again when i press pause again. What I want is that it will click right mouse button once but then hold it forever and same for ctrl.

Share this post


Link to post
Share on other sites

I think this is what you are looking for:

HotKeySet("{END}", "_Exit")
HotKeySet("{PAUSE}", "_Pause")

Global $Paused=False

While 1

WEnd
           
Func _Pause()
   $Paused = NOT $Paused
   If $Paused=True Then
       ToolTip("Paused")
        MouseUp ( "right" )
        Send("{CTRLUP}")
    Else
        ToolTip("Started")
        MouseDown ( "right" )
        Send("{CTRLuP}")
    EndIf

   While $Paused=True
      Sleep(10)
   WEnd
EndFunc

Func _Exit()
   Exit
EndFunc

I do not like stupid and idiot people that write idiot things...If you are one, do not write.

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