Jump to content

right mouse button + crtl


lummel
 Share

Recommended Posts

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.

Link to comment
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.

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...