Search found 278 matches

by Noitalommi_2
Yesterday, 16:17
Forum: Ask for Help (v2)
Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
Replies: 9
Views: 511

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
Yesterday, 16:01
Forum: Ich brauche Hilfe
Topic: WheelUp-, WheelDown-Hotkey wegen defektem Scrollrad - V2 Topic is solved
Replies: 5
Views: 290

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: 3
Views: 181

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

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

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

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

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: 4
Views: 345

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

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

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

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

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

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

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

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

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...
by Noitalommi_2
16 May 2024, 10:22
Forum: Ask for Help (v2)
Topic: check the ftp-server - CMD-commands
Replies: 4
Views: 359

Re: check the ftp-server - CMD-commands

Hi. ... My desire is to check if the ftp server is ok. ... I don't know, maybe you're already using this but you could use ping to check whether the server is ok. If the server sends a response, then the server should be ok. #Requires AutoHotkey 2.0 #SingleInstance MsgBox Ping("www.google.com") MsgB...
by Noitalommi_2
12 May 2024, 10:59
Forum: Ich brauche Hilfe
Topic: aus eins mach drei ? Topic is solved
Replies: 6
Views: 462

Re: aus eins mach drei ? Topic is solved

Hi. Ich habe mir für eigene Zwecke aus dieser Funktion eine Klasse gebastelt und hier gepostet. (v2) glnklein In der CreateEllipticRgn-Dokumentation von MS wird empfohlen, dass HRGN-Objekt mit der DeleteObject-Funktion zu löschen wenn man es nicht mehr benötigt. Dies kannst du tun, in dem du DllCall...
by Noitalommi_2
12 May 2024, 10:52
Forum: Skripte und Funktionen
Topic: [class] CreateElliptic (v2)
Replies: 0
Views: 211

[class] CreateElliptic (v2)

CreateElliptic zeichnet einen Kreis oder eine Ellipse auf den Bildschirm. Kann auch in Spielen als Crosshair verwendet werden wenn diese im Fenstermodus laufen. Class CreateElliptic { __New(CenterX, CenterY, Color, RadiusA, RadiusB, Thickness := 1, Transparency := -1, Fill := false) { this.CenterX :...

Go to advanced search