I have tried for hours per day, can someone please help

Get help with using AutoHotkey and its commands and hotkeys
Hman
Posts: 30
Joined: 10 Apr 2018, 10:48

I have tried for hours per day, can someone please help

01 Jun 2018, 11:19

Hi, I have tried so hard with this script i'm trying to do but i just can crack the end of it.
It seems like it should be simple but proving hard

can someone please spare me some time to help me out please?

much apreciated if you can

Thanks
User avatar
gregster
Posts: 1236
Joined: 30 Sep 2013, 06:48

Re: I have tried for hours per day, can someone please help

01 Jun 2018, 11:37

Hman wrote:Hi, I have tried so hard with this script i'm trying to do but i just can crack the end of it.
It seems like it should be simple but proving hard

can someone please spare me some time to help me out please?

much apreciated if you can

Thanks

Is it a mystery?
Do I have to get my magic crystal ball?
Hman
Posts: 30
Joined: 10 Apr 2018, 10:48

Re: I have tried for hours per day, can someone please help

01 Jun 2018, 11:52

well the script is this....

I hold down my right mouse button & then hold down my left mouse button and that clicks the left mouse once and continues to move my cursor down and stops when i release my left mouse button

this is the script how i have it now

~pgup::Suspend

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



the problem i have is that the left mouse button doesn't click and it doesn't stop when i release my left mouse button.

--------------------------------------------------------------------------------------------------------------------------------------------------------

I also have this other script that works but i need it so that i have to hold down my right mouse button 1st



Code: [Select all] [Download] GeSHi © Codebox Plus

Insert:: Hotkey, *~$LButton, Toggle

*~$LButton::
while GetKeyState("LButton")
{
DllCall("mouse_event", uint, 1, int, 0, int, 5, uint, 0, int, 0)
Sleep, 0
DllCall("mouse_event", uint, 1, int, 0, int, 5, uint, 0, int, 0)
Sleep, 5
}


if you can help in any way i'd much apreciate it

thanks
User avatar
Nextron
Posts: 1148
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win7 x64 AHK: Unicode x32

Re: I have tried for hours per day, can someone please help

01 Jun 2018, 12:21

how's this?

Code: [Select all] [Download] GeSHi © Codebox Plus

~RButton & LButton::
Send {Click}
while GetKeyState("RButton","P")&&GetKeyState("LButton","P")
{
DllCall("mouse_event", uint, 1, int, 0, int, 5, uint, 0, int, 0)
Sleep, 0
DllCall("mouse_event", uint, 1, int, 0, int, 5, uint, 0, int, 0)
Sleep, 5
}
Return
The more I know:
The more I know,
I know nothing.
Hman
Posts: 30
Joined: 10 Apr 2018, 10:48

Re: I have tried for hours per day, can someone please help

01 Jun 2018, 12:36

this works great but with just 1 issue i need resolving.

when i switch to auto-fire it only fires the gun once for some reason, obviously fine when in single shot mode.

any help what might be causing this or a way around it?

many thanks
User avatar
Nextron
Posts: 1148
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win7 x64 AHK: Unicode x32

Re: I have tried for hours per day, can someone please help

01 Jun 2018, 12:53

Because you said
that clicks the left mouse once and continues to move my cursor down

So you need the mouse button held down and released when you actually release the button. That's the native function. Remove the Send line and place a ~ before the LButton.
The more I know:
The more I know,
I know nothing.
Hman
Posts: 30
Joined: 10 Apr 2018, 10:48

Re: I have tried for hours per day, can someone please help

01 Jun 2018, 13:37

Sorry Nextron, my mind is a mush going over and over these codes with different combinations.

So I remove
Send {click}
And do the top line as
~RButton & ~LButton::

Thanks again for your help
Hman
Posts: 30
Joined: 10 Apr 2018, 10:48

Re: I have tried for hours per day, can someone please help

04 Jun 2018, 09:22

HI Nextron, just wanted to say the script works perfect and i wanted to thank you for your help, so...

Thankyou
User avatar
Nextron
Posts: 1148
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win7 x64 AHK: Unicode x32

Re: I have tried for hours per day, can someone please help

04 Jun 2018, 12:48

Good to hear :)
Enjoy!
The more I know:
The more I know,
I know nothing.
Saiftey
Posts: 18
Joined: 08 May 2018, 18:30

Re: I have tried for hours per day, can someone please help

04 Jun 2018, 19:58

gregster wrote:
Hman wrote:Hi, I have tried so hard with this script i'm trying to do but i just can crack the end of it.
It seems like it should be simple but proving hard

can someone please spare me some time to help me out please?

much apreciated if you can

Thanks

Is it a mystery?
Do I have to get my magic crystal ball?


:lol: :lol: :lol:

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot] and 55 guests