Search found 4785 matches

by evilC
28 May 2019, 11:05
Forum: Ask For Help
Topic: HELP: Problem with Choose Hotkey
Replies: 7
Views: 853

Re: HELP: Problem with Choose Hotkey

Your code is not working with modifiers, because you specifically coded it to NOT work with modifiers !?!?

Code: Select all

	if (StrLen(HK)=1) {
		Hotkey, %HK%, Label1, On
		savedHK := HK
	}
If you type ^a then StrLen(HK) is 2!

This code also stops many other keys from working - F1, Space etc
by evilC
28 May 2019, 10:59
Forum: Ask For Help
Topic: Accelerate Mouse Y-Axis UP ONLY (Keep Y-Axis Down normal)
Replies: 2
Views: 494

Re: Accelerate Mouse Y-Axis UP ONLY (Keep Y-Axis Down normal)

If you want a function to remember values each time it is run, use static instead of global . Using Global may result in other code in your script interfering with it. if newY > %oldY% { oldY = %newY% is better written as if (newY > oldY) { oldY := newY
by evilC
28 May 2019, 10:54
Forum: Ask For Help
Topic: Remap joystick (axis) to turn around how to use
Replies: 20
Views: 3093

Re: Remap joystick (axis) to turn around how to use

@Ataricx Swap the values for Min and Max
Min of 255, Max of 0
by evilC
28 May 2019, 10:51
Forum: Gaming
Topic: Universal Control Remapper (UCR) - v0.1.22 28th Oct 2018
Replies: 1010
Views: 550710

Re: Universal Control Remapper (UCR) - v0.1.22 28th Oct 2018

ranin26 You can't send vXBox output using the code runner I wrote you a new plugin to allow you to do this - save this file to Plugins\Core The plugin is called "ButtonToButtonPr" in the plugins list It will be included in the next release of UCR class ButtonToButtonPr extends _UCR.Classes.Plugin {...
by evilC
27 May 2019, 07:34
Forum: Ask For Help
Topic: Please Help my Hands getting knotted with Affinity Photo
Replies: 2
Views: 731

Re: Please Help my Hands getting knotted with Affinity Photo

@OP your script is littered with syntactical errors // is not a comment in AHK, ; is And you appear to have invented syntax - you cannot just put MouseClick commands in {braces} like that #IfWinActive ahk_class HwndWrapper[Photo.exe;;3a6ca525-7912-45c0-a380-679c0038a93d] ;ALT + right mouse button + ...
by evilC
27 May 2019, 07:29
Forum: Ask For Help
Topic: min var help
Replies: 1
Views: 341

Re: min var help

Code: Select all

x1 := 5
x2 := 4
x3 := 3
x4 := 2
x5 := -1

lowestNum := 9999999999999
lowestIndex := 0

Loop 5 {
	if (Abs(x%A_Index%) < Abs(lowestNum)){
		lowestNum := x%A_index%
		lowestIndex := A_Index
	}
}

msgbox % "Lowest Num: " lowestNum "`nLowest Index: " lowestIndex
by evilC
27 May 2019, 07:22
Forum: Gaming
Topic: Overlay of an application in fullscreen game
Replies: 4
Views: 2256

Re: Overlay of an application in fullscreen game

AlwaysOnTop will simply not work for fullscreen games, this is not a limitation of AHK, it's a limitation of windows. The simplest workaround is to run the game in fullscreen window mode instead of normal fullscreen mode. If the game does not support that mode, there are apps around which will force...
by evilC
27 May 2019, 07:15
Forum: Ask For Help
Topic: Having Issues w/ Long Press for CapsLock key
Replies: 3
Views: 588

Re: Having Issues w/ Long Press for CapsLock key

See my TapHoldManager library for an easy way to detect long-press, multi-tap etc. #include Lib\TapHoldManager.ahk #SingleInstance force thm := new TapHoldManager() thm.Add("CapsLock", Func("MyFunc1")) MyFunc1(isHold, taps, state){ ToolTip % (isHold ? "HOLD" : "TAP") "`nTaps: " taps "`nState: " stat...
by evilC
25 May 2019, 17:29
Forum: Gaming
Topic: Move mouse without moving the fisical cursor
Replies: 2
Views: 729

Re: Move mouse without moving the fisical cursor

This is a logical impossibility - how can you move the cursor without moving the cursor???? The mouse itself has no "position", it sends "Relative" data - ie the mouse says "Move x units left", but it has no concept of where it currently is You CAN click at a location without moving the cursor thoug...
by evilC
25 May 2019, 17:26
Forum: Gaming
Topic: How to move mouse in dx11 exactly to coordinate?
Replies: 1
Views: 585

Re: How to move mouse in dx11 exactly to coordinate?

There is no way to issue raw movement to a specific screen position, period - the two are utterly unrelated. the numbers in mouse_event for x and y are not even in pixels, they are in "mickeys". Issue a small mouse_event call in the direction required, and then use MouseGetPos to see if you are wher...
by evilC
25 May 2019, 17:11
Forum: Ask For Help
Topic: Remap joystick (axis) to turn around how to use
Replies: 20
Views: 3093

Re: Remap joystick (axis) to turn around how to use

Recalibrate the joystick, but switch the directions ;) If you have trouble doing it using the windows calibration tool, then use DIView There is a slight bug in the DIView manual calibration, you cannot type in negative values. To work around it, copy the value to the clipboard and paste. If you rea...
by evilC
17 May 2019, 09:12
Forum: Ask For Help
Topic: mouse wheel keybind
Replies: 8
Views: 1814

Re: mouse wheel keybind

i was asking if any1 has a script for this Without saying what "this" was... Your problem is that you are using the wrong command. ControlSend does not support Mouse Wheel - you are simply sending the text W H E E L U P You need ControlClick instead WheelUp:: KeyWait, WheelUp, D ControlClick,, ahk_...
by evilC
17 May 2019, 08:58
Forum: Ask For Help
Topic: Scritp stops working when an item in a folder is activated
Replies: 8
Views: 987

Re: Scritp stops working when an item in a folder is activated

ANYTHING starting # is not part of the "flow of control", it's a "directive". That is to say, when the script loads, AHK skims the whole file for any line starting # and processes it once, at startup. Any line starting with # will NOT be processed when AHK is working through lines of code as part of...
by evilC
17 May 2019, 08:50
Forum: Ask For Help
Topic: mouse wheel keybind
Replies: 8
Views: 1814

Re: mouse wheel keybind

It's like going into a garage and asking the mechanic to "Make the car work with all 5 of my family members". WTF does that even mean?? The seat needs adjusting? Some of them need a driving licence?? It could be ANYTHING Why should we put in a bunch of effort trying to second-guess what you mean, th...
by evilC
17 May 2019, 08:40
Forum: Ask For Help
Topic: Zoom to mouse cursor on browsers
Replies: 5
Views: 1013

Re: Touchpad like mouse zooming

If you can find equivalent hotkeys (Isn't it Ctrl & + or Ctrl & - ?) then just remap the wheel to those hotkeys while in chrome

Code: Select all

#IfWinActive ahk_class Chrome_WidgetWin_1
WheelUp::Send ^{+}
WheelDown::Send ^{-}
by evilC
17 May 2019, 08:04
Forum: Ask For Help
Topic: Viewing Insert Key
Replies: 5
Views: 731

Re: Viewing Insert Key

Insert does not support the T parameter for GetKeyState - only keys with a status light do (NumLock, CapsLock, ScrollLock) GetKeyState(Insert , T) is wrong, as there is no such variable Insert or T - you should have quotes around them. And even if you fixed that, the code is unreachable Enter::+Ent...
by evilC
17 May 2019, 07:59
Forum: Ask For Help
Topic: AHK omits to remap some of wheel scroll moves
Replies: 4
Views: 818

Re: AHK omits to remap some of wheel scroll moves

+WheelDown::Send {1} says "When I hold shift and roll the wheel down, release shift, send 1, then re-press shift again" Because you are able to roll the wheel very quickly, when you see ! or @, AHK is probably unable to release and re-press shift quickly enough. Does the app you are trying to send ...
by evilC
17 May 2019, 07:54
Forum: Ask For Help
Topic: mouse wheel keybind
Replies: 8
Views: 1814

Re: mouse wheel keybind

You are highly unlikely to get a "quick solution" when you have not described the problem
by evilC
17 May 2019, 04:51
Forum: Ask For Help
Topic: HELP: Problem with Choose Hotkey
Replies: 7
Views: 853

Re: HELP: Problem with Choose Hotkey

Your script does transfer from one hotkey to another just fine if you follow the procedure that you coded. Put 1 in the box, tick the checkbox, 1 works as hotkey Uncheck the box, type 2 in the box, check the checkbox, 2 works as hotkey, 1 does not work If you want the hotkey to automatically switch ...
by evilC
15 May 2019, 08:08
Forum: Ask For Help
Topic: Independent loop inside of larger AHK file? Topic is solved
Replies: 3
Views: 616

Re: Independent loop inside of larger AHK file? Topic is solved

The line ::testa::test A is before the loop. Hotkey / hotstring declarations in :: syntax stop execution, so the loop is unreachable code.
Put the hotstring at the end, with the other hotstring

Go to advanced search