Search found 321 matches

by Noitalommi_2
26 May 2024, 07:31
Forum: Gaming
Topic: Can AHK decect a chnage in pixel color? Clicking icon/ability in game.
Replies: 24
Views: 1561

Re: Can AHK decect a chnage in pixel color? Clicking icon/ability in game.

Hi. Based on what I've read about this topic, here's an example script you could try out. #Requires AutoHotkey 2.0 #SingleInstance $1:: ; $ prefix to prevent that the hotkey trigger itself $2:: $3:: { if PixelGetColor(1385, 1302) = 0x141414 ; if Color is 0x141414 press 1,2 or 3 SendEvent "{" SubStr(...
by Noitalommi_2
25 May 2024, 07:57
Forum: Ask for Help (v2)
Topic: Detect text colour/format in clipboard Topic is solved
Replies: 4
Views: 312

Re: Detect text colour/format in clipboard Topic is solved

Hi. I played around with ClipboardAll() and this is the result. It goes through the binary code in the clipboard once and returns the character codes and copies it all back into the clipboard, which you can then paste into an editor. It seems to have formatted code where the color can be found. You ...
by Noitalommi_2
24 May 2024, 19:03
Forum: Gaming
Topic: r6 crouch spam Topic is solved
Replies: 3
Views: 426

Re: r6 crouch spam Topic is solved

Hi.

It should work if you change Send("c") to SendEvent("{c}").
by Noitalommi_2
21 May 2024, 16:17
Forum: Ask for Help (v2)
Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
Replies: 9
Views: 675

Re: Reopen Last closed window script (v1 -> v2) Topic is solved

But somehow the script throws no error and works regardless? If you run your variant, open any folder with other folders inside it, and in the same window go to another folder, then close that window, then try to open the last closed one by hotkey - you will see what the problem is. Ah ok, it would...
by Noitalommi_2
21 May 2024, 16:01
Forum: Ich brauche Hilfe
Topic: WheelUp-, WheelDown-Hotkey wegen defektem Scrollrad - V2 Topic is solved
Replies: 5
Views: 643

Re: WheelUp-, WheelDown-Hotkey wegen defektem Scrollrad - V2 Topic is solved

Hi. In dem Fall könnte man die statische Variable weglassen und stattdessen A_PriorHotkey nutzen. $WheelDown:: $WheelUp:: { if A_PriorHotkey = ThisHotkey Send "{" SubStr(ThisHotkey, 2) "}" } Der allererste Send-Befehl geht damit zwar ins Leere, da A_PriorHotkey zu Beginn noch leer ist. Sollte aber e...
by Noitalommi_2
20 May 2024, 20:08
Forum: Ask for Help (v2)
Topic: why I can't this.var with if statement?
Replies: 5
Views: 325

Re: why I can't this.var with if statement?

Hi.

@xMaxrayx
I guess you must use this.HasOwnProp("musicplayer__path") instead of IsSet(this.musicplayer__path)? :think:
by Noitalommi_2
20 May 2024, 20:01
Forum: Ask for Help (v2)
Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
Replies: 9
Views: 675

Re: Reopen Last closed window script (v1 -> v2) Topic is solved

ComObjConnect(Window, "Shell_") It's called for NavigateComplete2 events for connected shell windows ( https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa768285(v=vs.85) ). Ah, ok. I thought this was a leftover without a caller, so i commented...
by Noitalommi_2
20 May 2024, 07:38
Forum: Ask for Help (v2)
Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
Replies: 9
Views: 675

Re: Reopen Last closed window script (v1 -> v2) Topic is solved

just me wrote:
20 May 2024, 06:16
Shell_NavigateComplete2() is used to update the current path after navigating in an existing explorer window.
But where and when is Shell_NavigateComplete2() called in this script?
by Noitalommi_2
20 May 2024, 03:16
Forum: Gaming
Topic: how to make middle mouse button alternate between inputing three times and once per click
Replies: 8
Views: 550

Re: how to make middle mouse button alternate between inputing three times and once per click

Theleifblower wrote:
19 May 2024, 23:41
is there any way i can isolate the middle mouse button to be the only key that has its input blocked while the script runs
Try the second script I posted.
by Noitalommi_2
20 May 2024, 02:58
Forum: Ask for Help (v2)
Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
Replies: 9
Views: 675

Re: Reopen Last closed window script (v1 -> v2) Topic is solved

Hi. I went through teadrinker's v1 script and here is the v2 result. I haven't tested it for to long but it opens the last closed explorer window as expected. And I noticed that the Shell_NavigateComplete2 function is not used in the script, so i commented it out. As it turns out, this is important....
by Noitalommi_2
19 May 2024, 15:14
Forum: Ask for Help (v2)
Topic: Troubleshooting location of ToolTip...
Replies: 5
Views: 507

Re: Troubleshooting location of ToolTip...

Hi.

Just wondering, could it be that the tool tip is hitting the edges of the screen or taskbar, causing the position to shift?
by Noitalommi_2
19 May 2024, 06:55
Forum: Ask for Help (v2)
Topic: How to use hotkey object functions Topic is solved
Replies: 6
Views: 391

Re: How to use hotkey object functions Topic is solved

@niCode
Had this as my first attempt as well, check the return Value, it's not correct.

Edit: Post is gone or I'm hallucinating. :lol:
by Noitalommi_2
19 May 2024, 06:27
Forum: Ask for Help (v2)
Topic: How to use hotkey object functions Topic is solved
Replies: 6
Views: 391

Re: How to use hotkey object functions Topic is solved

Another try. Loop 10 Hotkey "<^" A_Index-1, f.Bind(A_Index-1) ; Left Ctrl + 0 - 9, binds A_Index-1 f(Parameter, ThisHotkey) => a.b(Parameter, ThisHotkey) ; You can certainly write this in the line above but I don't know how. class a { static b(para1, para2){ SendText "+" para1 "!" para1 ", Hotkey= "...
by Noitalommi_2
19 May 2024, 04:06
Forum: Ask for Help (v2)
Topic: How to use hotkey object functions Topic is solved
Replies: 6
Views: 391

Re: How to use hotkey object functions Topic is solved

Hi.

Edit2: Couldn't get it to work with a loop but this does at least use the parameter.

Code: Select all

Hotkey "<^" 1, (*) => a.b("Test 1")
Hotkey "<^" 2, (*) => a.b("Test 2")


class a {
	static b(s){
		SendText "+" s "!" s
	}
}
by Noitalommi_2
19 May 2024, 01:39
Forum: Ask for Help (v2)
Topic: Get and set caret cursor position?
Replies: 2
Views: 270

Re: Get and set caret cursor position?

Hi.

As you described, I think the "NoActivate" option when showing the gui is what you're looking for. NoActivate shows the Gui without activating it, so that the current keyboard focus is retained.
MyGui.Show("x0 y0 w200 h200 NoActivate")
by Noitalommi_2
17 May 2024, 11:28
Forum: Ask for Help (v2)
Topic: Making Gui Pic not visible leaves white rectange... Topic is solved
Replies: 2
Views: 240

Re: Making Gui Pic not visible leaves white rectange... Topic is solved

Hi.

this fing.BackColor := "FFFFFF" must be fing.BackColor := "FF0072"
by Noitalommi_2
17 May 2024, 10:24
Forum: Ask for Help (v2)
Topic: Does the triggering of CapsLock's hotkey be faster than the change of the CapsLock state itself?
Replies: 2
Views: 188

Re: Does the triggering of CapsLock's hotkey be faster than the change of the CapsLock state itself?

Hi. Your first script works just fine on my PC. However there might be an issue with "unusual keyboard drivers" As the documentation says: Systems with unusual keyboard drivers might be slow to update the state of their keys, especially the toggle-state of keys like CapsLock. A script that checks th...
by Noitalommi_2
16 May 2024, 21:49
Forum: Gaming
Topic: how to make middle mouse button alternate between inputing three times and once per click
Replies: 8
Views: 550

Re: how to make middle mouse button alternate between inputing three times and once per click

Hi. Please try this. #Requires AutoHotkey 2.0 #SingleInstance SendMode "Event" SetMouseDelay 100 ; delay after each click in ms *MButton:: { static toggle := 1 if toggle := !toggle Click else Click(,, 3) } Edit: Different approach but same result. #Requires AutoHotkey 2.0 #SingleInstance *MButton:: ...
by Noitalommi_2
16 May 2024, 20:10
Forum: Ask for Help (v2)
Topic: check the ftp-server - CMD-commands
Replies: 4
Views: 411

Re: check the ftp-server - CMD-commands

Could try something like this. #Requires AutoHotkey 2.0 #SingleInstance OutputVar := Mtee("/?") ; lists options MsgBox OutputVar Mtee(Options) { ; script & mtee.exe must be in the same folder CommandLine := A_WorkingDir . "\mtee.exe " . Options objShell := ComObject("WScript.Shell") objExec := objSh...

Go to advanced search