twisted and unhappy newb

Ask gaming related questions (AHK v1.1 and older)
volt
Posts: 1
Joined: 12 Jun 2022, 20:33

twisted and unhappy newb

12 Jun 2022, 20:48

Simple script for a simple miner

pgup::
Mouseclickdrag, left, 3709 ,326,1290 ,326
return

works perfectly for swapping inventory on Star citizen - maybe someone gets why this is important if you are a ROC-DS miner in a carrack on Aberdeen

So - it works in-game fine - for an un-linear amount of time then all hell breaks loose with random left clicks in quick succession /in-game and alt-tab back on the desktop

even suspending the scrip -makes no difference /only total uninstall of AutoHotkey resolves random left-clicking - even on restart left-clicking messes with the password,grrrrrrrrr

windows 10

Help kind people
User avatar
mikeyww
Posts: 27366
Joined: 09 Sep 2014, 18:38

Re: twisted and unhappy newb

12 Jun 2022, 21:02

Coordinates are relative to the active window. I would have a close look at all parameters & remarks in :arrow: MouseClickDrag.

Exiting the script would end its action, so uninstalling AutoHotkey would not be necessary.

The script generates no random effects.

Suspending the script means that the hotkey can no longer be triggered.

A mouse click can activate a different window. At that point, the next hotkey trigger could use different absolute coordinates.

Password?
Demen
Posts: 4
Joined: 11 Sep 2020, 01:35

Re: twisted and unhappy newb

26 Jul 2022, 17:35

Here is a script I use that I have linked to a button on my stream deck.

You could pull from this.


Script code below
•••••••••••••••••••••••••••••••••••••

Code: Select all

IfWinExist Star Citizen
     {
     WinActive Star Citizen
          SetDefaultMouseSpeed, 0
          ;Loop, 0
          {
               ;saved automatically in the outputvars though
               CoordMode, Mouse, Screen

               ; Get mouse xy
               MouseGetPos, OutputVarX, OutputVarY

               ; move mouse to xy to xy
               MouseDragClick, % OutputVarX, % OutputVarY, 500, 600

               ; move mouse back to saved mouse xy
               MouseMove, % OutputVarX, % OutputVarY
          
          }
     }
ExitApp
[Mod edit: [code][/code] tags added.]

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 83 guests