Hotkey for game Topic is solved

Ask gaming related questions (AHK v1.1 and older)
guilhermevs91
Posts: 5
Joined: 03 Apr 2018, 11:54
Contact:

Hotkey for game

03 Apr 2018, 13:07

Hello

I need help with a little script, I need after pressing the combination CTRL + SHIFIT + P the autohotkey hold the Shift and click eight positions on the screen sequentially with the minimum time interval.

Someone help me? :)

Thank you
neverlevel
Posts: 60
Joined: 13 Apr 2016, 22:02

Re: Hotkey for game  Topic is solved

03 Apr 2018, 17:48

this will get you the locations you need to click... mouse over them and write down the coordinates

Code: Select all


#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
CoordMode, Pixel, screen
CoordMode, Mouse, screen
;WhatCOlor.ahk
; Show and copy the RRGGBB color under the cursor.
;Skrommel @2005

#SingleInstance,Force
Loop
{
  Sleep,100
  MouseGetPos,x,y
  PixelGetColor,rgb,x,y,RGB
  StringTrimLeft,rgb,rgb,2
  ToolTip,%rgb% %x% %y%`nPress F12 to copy, 100, 100
  GetKeyState,state,F12,P
  If state=D
    Clipboard=%rgb% %x% %y%
}
this will let you click one location...copy and change the coordinates as many times as you need

Code: Select all

MouseClick, left, 55, 233
Sleep, 250    ; wait 1/4 of a second... change this as needed. or remove it..
this is how you hold shift down

Code: Select all

Send, {Shift down}
MouseClick, left, 55, 233
Send, {Shift up}
you can send shift up and downs or just the down..do your clicks then send the up at the end..

! Alt
^ Control
+ Shift
these symbols can be used with the code below

Code: Select all

^!s::
mouseclick, left 55, 233
return

obviously... you can change the s to p

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 61 guests