Search found 4715 matches

by evilC
28 May 2019, 12:43
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 331
Views: 85843

Re: FindText - Capture screen image into text and then find it Topic is solved

So in your code, I am assuming that ok := FindText(...) is returning false, when you expect it to return true?
by evilC
28 May 2019, 12:21
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 331
Views: 85843

Re: FindText - Capture screen image into text and then find it Topic is solved

Dude... it's 2000 lines of code! If you cannot boil your problem down to less code, or at the very least say "when line X executes, I am expecting Y to happen but Z happens", I simply cannot be bothered...
by evilC
28 May 2019, 12:06
Forum: General Discussion
Topic: Down at the AHK gun store...
Replies: 2
Views: 412

Down at the AHK gun store...

A little doodle I did today...
Image
by evilC
28 May 2019, 11:41
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 331
Views: 85843

Re: FindText - Capture screen image into text and then find it Topic is solved

I don't really have the time to analyse what all the code is doing
https://autohotkey.com/docs/commands/RegExMatch.htm#Examples
3rd example shows how to use case-insensitive matching
by evilC
28 May 2019, 11:34
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 331
Views: 85843

Re: FindText - Capture screen image into text and then find it Topic is solved

WRT FindText not being case-insensitive, at a glance it looks like the RegexMatch commands are not using case-insensitive mode

Add i) to the start of the match pattern
by evilC
28 May 2019, 11:22
Forum: Ask For Help
Topic: MouseHook causes severe input issues for hotkeys which do not use it
Replies: 10
Views: 527

Re: MouseHook causes severe input issues for hotkeys which do not use it

In all my years of coding AHK, I have never, ever seen ANY code that uses KeyWait which cannot be done in a more robust manner. A short timeout is not bad, but a KeyWait with no timeout is bad code, period IMHO
by evilC
28 May 2019, 11:18
Forum: Ask For Help
Topic: AHK omits to remap some of wheel scroll moves
Replies: 4
Views: 261

Re: AHK omits to remap some of wheel scroll moves

P.S. One last thing, why I cannot declare variables in the beginning of script but inside hotkey declaration? You have a return statement before the setting of the variables CoordMode, Mouse, Screen return ; <--- STOPS EXECUTION ; UNREACHABLE CODE ; declared variables are not visible inside hotkey ...
by evilC
28 May 2019, 11:10
Forum: Gaming
Topic: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)
Replies: 92
Views: 35796

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

DllCall("mouse_event"... is functionally identical to DllCall("SendInput" ... NEITHER of them can move the mouse to a specific point on the screen, both of them move the mouse by a RELATIVE amount (eg "10 units left of the current position") Also, neither of these move the mouse in PIXELS, they move...
by evilC
28 May 2019, 11:05
Forum: Ask For Help
Topic: HELP: Problem with Choose Hotkey
Replies: 7
Views: 320

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: 145

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: 852

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: 988
Views: 316308

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: 383

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: 133

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: 426

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: 209

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: 268

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: 220

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...

Go to advanced search