Jump to content

Recommended Posts

Posted

Hi since this affinity photo doesn't support increase/decrease the brush size by mouse on windows I made this script

use:  Ctrl+mousewheel  to change the size ,note you should have [ ] as default shortcut otherwise it wont work.

Method 1)

this EXE (note: you may get antivirus Warming, you can method 2 if you don't like it

<EXE removed by moderator due to security concerns about any hosted 3rd party exe>

Method 2)

  1. install AHKv2,
  2. write this save it as .AHK file:
#Requires AutoHotkey v2.0
#SingleInstance Force

InstallMouseHook

#HotIf WinActive("Affinity")


^WheelUp::{
    SendInput("[")
}


^WheelDown::{
    SendInput("]")
}

 

if you are interesting in AHK example you may see my remapkey folder here 

https://github.com/xmaxrayx/MaxWorkstaion-Rev1

Posted

I have not had the time to look more closely at AHK, so here are a few quick questions.

  • I am assuming that AHK sits somewhere between the hardware driver and the application layers (probably where a keylogger would sit?).  Can AHK be trusted?
  • It looks like this is a global script and not Affinity specific.  Will this overwrite Ctrl-WheelUp/Down for other applications?
  • If so, can the script be made app specific, or enabled/disabled on the fly?

Thanks

Affinity Photo (v2.6.0.3027(beta) - desktop Dell Precision 3450 - Windows 10 pro - i9-11900 - 32GBRAM - NVIDIA-T600

Posted
On 6/9/2024 at 8:27 PM, xMaxrayx said:

Hi since this affinity photo doesn't support increase/decrease the brush size by mouse on windows …

At least on a Windows machine it is possible via mouse.

Press CTRL+Alt and move the mouse horizotally will increase/decrease brush size.
Moving the mouse vertically will change brush sharpness.

Greetings

  • 1 month later...
Posted (edited)
On 6/14/2024 at 10:32 PM, pfi said:

I have not had the time to look more closely at AHK, so here are a few quick questions.

  • I am assuming that AHK sits somewhere between the hardware driver and the application layers (probably where a keylogger would sit?).  Can AHK be trusted?
  • It looks like this is a global script and not Affinity specific.  Will this overwrite Ctrl-WheelUp/Down for other applications?
  • If so, can the script be made app specific, or enabled/disabled on the fly?

Thanks

Hey, I only logged in today looking to see if I can assign additional mouse buttons within Affinity itself (apparently not) so I'm about to work on an AHK script for my own needs.  I notice nobody answered your questions:

Autohotkey is:

  • A legitimate scripting language that has been around for a couple of decades, and is widely used for automation tasks.
  • It does not sit between the hardware driver and application layers.  Rather, it interacts with the Windows' messaging system, sending simulated keystrokes and mouse movements, and manipulating window properties. 
  • It is generally trusted as much as other scripting engines.  It is used by Chocolatey (the industry-standard package manager) for example, to get around installation problems with some Windows installers.
  • Just like with Python, Powershell, Chrome Addons, etc., it's the scripts that you need to be wary of, not the engine.  If you write your own, not a problem.  Most scripts tend to be targeted and brief, so even users who aren't very experienced with scripting can usually learn enough to work out if externally provided snippets are safe.
  • AHK scripts can be enabled/disabled on the fly, but they work best when they start automatically with windows and stay in memory.  Written properly, they barely use any resources. 
  • No the script above won't overwrite that mouse/key combination in other applications because of this line: #HotIf WinActive("Affinity").  That will target only application windows containing the word "Affinity" in the title.  If that's too broad, individual processes can be targeted instead.  Eg: #HotIf ProcessExist("designer.exe")

It's one of those applications that I can no longer do without.  I use it mainly to implement text expanders in specific applications (type a couple of letters, hit tab, boom, a code template appears).  Also, to fix problems such as UI buttons without hotkeys, and in this case, assigning extra mouse buttons to different tools. 

Edited by ljredux
it's me grammah guvnah
  • 4 weeks later...
Posted
On 6/14/2024 at 11:32 PM, pfi said:

I have not had the time to look more closely at AHK, so here are a few quick questions.

  • I am assuming that AHK sits somewhere between the hardware driver and the application layers (probably where a keylogger would sit?).  Can AHK be trusted?
  • It looks like this is a global script and not Affinity specific.  Will this overwrite Ctrl-WheelUp/Down for other applications?
  • If so, can the script be made app specific, or enabled/disabled on the fly?

Thanks

Hi, above what @ljredux said.

Any language can do keylogger you don't need AHK,.

in fact windows allow everyone to use `user32.dll` which give anyone your mouse , keyboard input, so any language that support DLL can be used to as keylogger.

the difference between keylogger and legit software is the keylogger save your input for theft and the legit software use the input for good use, so no worry if you download it from trusty source.

also, I gave you the code so you can see everything.

On 6/14/2024 at 11:32 PM, pfi said:

I have not had the time to look more closely at AHK, so here are a few quick questions.

  • I am assuming that AHK sits somewhere between the hardware driver and the application layers (probably where a keylogger would sit?).  Can AHK be trusted?

it's between the system/application, some hotkey aren't allowed like {ctrl+alt+del} {win+l} are only for windows.

 

 

On 6/14/2024 at 11:32 PM, pfi said:

I have not had the time to look more closely at AHK, so here are a few quick questions.

 

  • It looks like this is a global script and not Affinity specific.  Will this overwrite Ctrl-WheelUp/Down for other applications?
  • If so, can the script be made app specific, or enabled/disabled on the fly?

Thanks

it's for affinity 3 program but you better use 

#HotIf WinActive("Affinity Photo 2")

instead of 
 

#HotIf WinActive("Affinity")

you can pause  AHK any script in traywindow , by right click on ahk icon -> pause/exit

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.