Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Need help with script



  • Please log in to reply
2 replies to this topic
zary
  • New members
  • 3 posts
  • Last active: Oct 04 2015 07:42 AM
  • Joined: 03 Oct 2015

Hello forums, i need help with this script that i found a couple months ago on the internet (not mine); it is a autoclicker script.

The only problem i am having with it is that i need ti be able to use the script while also holding Ctrl or Shift But when i do hold these, the script doesnt work. Any solutions? Here is the script:

 

#NoEnv
#SingleInstance force
SendMode Input
 
ScriptActive = 1
 
FixAmount = 0.00000000000000000001
 
 
RecoilFix(amount) 
DllCall("mouse_event",uint,1,int,x,int,amount,uint ,0,int,0) 
}
 
 
IfWinActive, Call of Duty 4
{
~Lbutton::
If ScriptActive = 1
{
RecoilFix(FixAmount)
Loop
{
GetKeyState, state, Lbutton, P
if state=U
break
Sendinput {Click down}
Sleep 35
Sendinput {Click up}
Sleep 35
RecoilFix(FixAmount)
}
}
return
 
 
;Pauses AutoHotKey Script.
 
~F6::
If ScriptActive = 1
{
ScriptActive = 0
SoundBeep, 400, 400
}
else if ScriptActive = 0
{
ScriptActive = 1
SoundBeep, 1000, 100
SoundBeep, 1000, 100
}
return
 
 
~NumpadAdd::
++FixAmount
SoundBeep, 700, 100
SoundBeep, 700, 100
clipboard = %FixAmount%
return
 
 
~NumpadSub::
--FixAmount
SoundBeep, 700, 100
clipboard = %FixAmount%
return
 
~NumpadDiv::
FixAmount-=0.1
SoundBeep, 600, 100
clipboard = %FixAmount%
return
 
~NumpadMult::
FixAmount+=0.1
SoundBeep, 600, 100
SoundBeep, 600, 100
clipboard = %FixAmount%
return
}
 
;M9 = FixAmount 1
;G3 = FixAmount 0.700000


Masonjar13
  • Members
  • 1517 posts
  • Last active:
  • Joined: 16 Sep 2012
✓  Best Answer

There's a few issues here. First, context-sensitive hotkeys have to use a directive, not a statement. Second, all you need to add is a pre-fix to the keys, specifically *.
So, replace IfWinActive, Call of Duty 4 with #IfWinActive Call of Duty 4 and change the hotkeys to ~*Lbutton:: and so on.


OS: Windows 7 Ultimate / Windows 8.1 Pro | Editor: Notepad++


zary
  • New members
  • 3 posts
  • Last active: Oct 04 2015 07:42 AM
  • Joined: 03 Oct 2015

Thankyou so much, That did the job