@Seven0528
Thanks for the explanation and i find your script is quite useful, will put it into my code collection.
Search found 321 matches
- 07 May 2024, 02:06
- Forum: Ask for Help (v2)
- Topic: How do I use the MsgBox "help" button Topic is solved
- Replies: 11
- Views: 854
- 07 May 2024, 00:21
- Forum: Ask for Help (v2)
- Topic: How do I use the MsgBox "help" button Topic is solved
- Replies: 11
- Views: 854
Re: How do I use the MsgBox "help" button Topic is solved
Thanks @Noitalommi_2, the first code block works for me. Now I'm wondering, what does this do? g := Gui("+OwnDialogs") This is the required GUI that receives the WM_HELP message. At least I think so. :mrgreen: Here is an idea how you could handle multiple urls. (I couldn't get it to work without re...
- 06 May 2024, 06:05
- Forum: Ask for Help (v2)
- Topic: How do I use the MsgBox "help" button Topic is solved
- Replies: 11
- Views: 854
Re: How do I use the MsgBox "help" button Topic is solved
Hi.
You don't have to show the Gui.
Edit:
Alternatively, you could handle it this way.
You don't have to show the Gui.
Code: Select all
OnMessage(WM_HELP := 0x0053, (*) => Run("www.google.com"))
g := Gui("+OwnDialogs")
MsgBox("test", "Help", 16384)
Alternatively, you could handle it this way.
Code: Select all
if MsgBox("Do you need help?", "Help?", 262180) = "Yes"
Run("www.google.com")
- 06 May 2024, 00:04
- Forum: Ask for Help (v2)
- Topic: optimize code converted from v1.1 Topic is solved
- Replies: 15
- Views: 785
Re: optimize code converted from v1.1 Topic is solved
marypoppins_1 I changed it. The regex needle is also different, "\pL" means any letter. If it bothers you, you could also use the previous needle "[a-zA-Z]" . ^NumpadMult:: { B := ClipboardAll(), A_Clipboard := "" if !(Send("^c"), ClipWait(0.1)) Send("^a^c"), ClipWait() Count := 0 Loop Parse, A_Cli...
- 05 May 2024, 23:51
- Forum: Ask for Help (v2)
- Topic: OK, I'll just tell you what I'm trying (persistent timers)
- Replies: 6
- Views: 569
Re: OK, I'll just tell you what I'm trying (persistent timers)
robinson I adjusted the formatting and the script reloads after 10 seconds of inactivity, resetting count and time to zero. #Requires AutoHotkey 2.0 #SingleInstance z:: { static Start := A_TickCount , Count := 0 SetTimer Re()=>Reload(), 0 SendText ++Count "`n" GetTime() " --> " KeyWait(ThisHotkey) ...
- 05 May 2024, 15:42
- Forum: Ask for Help (v2)
- Topic: OK, I'll just tell you what I'm trying (persistent timers)
- Replies: 6
- Views: 569
Re: OK, I'll just tell you what I'm trying (persistent timers)
Hi. Please try this. Edit: I'm using SendEvent in this script because Notepad can't handle Send/SendInput for me. You can change this if necessary. #Requires AutoHotkey 2.0 #SingleInstance z:: { static Start := A_TickCount , Count := 0 TimeStart := GetTime() KeyWait(ThisHotkey) TimeEnd := GetTime() ...
- 05 May 2024, 13:15
- Forum: Ask for Help (v2)
- Topic: optimize code converted from v1.1 Topic is solved
- Replies: 15
- Views: 785
Re: optimize code converted from v1.1 Topic is solved
But before optimizing, I'm not quite clear on what exactly you want. Alternating between upper and lower case letters. I think so. ^^ okay thank you noitalommi. with regards to my post about alternating cases, is there something i can do besides fixing the first few lines that contain the errorleve...
- 05 May 2024, 11:46
- Forum: Ask for Help (v2)
- Topic: optimize code converted from v1.1 Topic is solved
- Replies: 15
- Views: 785
Re: optimize code converted from v1.1 Topic is solved
I just wanted to add that ClipWait has a return value (See here ), which is either true or false (1 or 0), in which case the exclamation mark indicates that the return value must be false so that the line below is executed. You could also write it like this: Send "^c" ReturnValue := ClipWait(0.1) if...
- 05 May 2024, 06:14
- Forum: Ask for Help (v2)
- Topic: optimize code converted from v1.1 Topic is solved
- Replies: 15
- Views: 785
Re: optimize code converted from v1.1 Topic is solved
Hi. I think your script is fine as it is, exept that the Errorlevel variable serves no purpose and the script could be shorten a little bit but that's just personal taste. ^NumpadAdd:: { B := ClipboardAll(), A_Clipboard := "" if !(Send("^c"), ClipWait(0.1)) Send("^a^c"), ClipWait() A_Clipboard := St...
- 04 May 2024, 07:08
- Forum: Ich brauche Hilfe
- Topic: Inhalte eines Edit-Controls abfragen, einfügen, ändern etc mit V2 Topic is solved
- Replies: 3
- Views: 482
Re: Inhalte eines Edit-Controls abfragen, einfügen, ändern etc mit V2 Topic is solved
Das ist eigentlich gar nicht so kompliziert. Wenn du da einmal durchgestiegen bist, möchtest du die v1-Syntax nicht mehr nutzen.
Und ich finde Möglichkeit 2 ist besser lesbar aber im Grunde ist es egal, wie du das händelst.
Und ich finde Möglichkeit 2 ist besser lesbar aber im Grunde ist es egal, wie du das händelst.
- 04 May 2024, 06:49
- Forum: Ich brauche Hilfe
- Topic: Inhalte eines Edit-Controls abfragen, einfügen, ändern etc mit V2 Topic is solved
- Replies: 3
- Views: 482
Re: Inhalte eines Edit-Controls abfragen, einfügen, ändern etc mit V2 Topic is solved
Hi. Möglichkeit 1 G := Gui() G.Add("Edit", "x10 y11 w80 h20 Number vStunde", 2) G.Add("Button", "x10 y30 w80 h22", "Aendern") .OnEvent("Click", Button) G.Add("Text", "x10 y60 w100 h20 vText", "Test") G.Show Button(*) { G["Stunde"].Text := 30 G["Text"].Text := 30 } Möglichkeit 2 G := Gui() MyEdit := ...
- 03 May 2024, 10:16
- Forum: Ask for Help (v2)
- Topic: How to get chrome URL while Youtube is in fullscreen?
- Replies: 1
- Views: 231
- 03 May 2024, 10:13
- Forum: Ask for Help (v2)
- Topic: "media_prev" key misbehaves when I include "enter" key. Topic is solved
- Replies: 5
- Views: 390
Re: "media_prev" key misbehaves when I include "enter" key. Topic is solved
@alawsareps
I also added “L” to the second KeyWait, it should work now.
I also added “L” to the second KeyWait, it should work now.
- 03 May 2024, 09:37
- Forum: Ask for Help (v2)
- Topic: "media_prev" key misbehaves when I include "enter" key. Topic is solved
- Replies: 5
- Views: 390
Re: "media_prev" key misbehaves when I include "enter" key. Topic is solved
Hi. This works on my end, I have added the logical state (L) of KeyWait. #Requires AutoHotkey v2.0 Media_Prev:: { if KeyWait('Media_Prev', 'LT0.3') { Send("__short.press.prev") } else { Send("__LONG.press.prev") KeyWait('Media_Prev', "L") } } enter::send("enter key")
- 03 May 2024, 08:58
- Forum: Ich brauche Hilfe
- Topic: Behandlung von "Fehlern" bei der Skriptausführung in AHK V2 Topic is solved
- Replies: 4
- Views: 560
Re: Behandlung von "Fehlern" bei der Skriptausführung in AHK V2 Topic is solved
- 02 May 2024, 11:37
- Forum: Ask for Help (v2)
- Topic: Gui Edit (TextBox) auto show/hide scrollbar on mouse hover? Topic is solved
- Replies: 7
- Views: 800
Re: Gui Edit (TextBox) auto show/hide scrollbar on mouse hover? Topic is solved
Hi. After some testing with ControlGetStyle, i figured that the problem is Redraw(). Seems like the scroll bar can't be redrawn while the scroll bar up/down arrows fading away. So, waiting until the animation is finished, could be used as a workaround. Animation lengths is about 1.3s. #Requires Auto...
- 27 Apr 2024, 23:08
- Forum: Ask for Help (v2)
- Topic: Using ControlSetText() for windows in a specific order. Topic is solved
- Replies: 2
- Views: 474
Re: Using ControlSetText() for windows in a specific order. Topic is solved
Hi. hiahkforum The script example in my last post regarding your original topic here , shows a way of keeping track of each gui using an array of Hwnds. This example here isn't much different from the other one, except that there is a separate array for the controls. It changes the numbering of each...
- 24 Apr 2024, 21:18
- Forum: Gaming
- Topic: Help with making code for keyboard Macro
- Replies: 2
- Views: 282
Re: Help with making code for keyboard Macro
Hi. @omeganexus
Can't test it, but this might work.
Can't test it, but this might work.
Code: Select all
#Requires AutoHotkey 2.0
#SingleInstance
+q::SendEvent "{q down}{e down}" ; shift+q
q::{
if GetKeyState("q")
SendEvent "{q up}"
if GetKeyState("e")
SendEvent "{e up}"
}
- 24 Apr 2024, 20:54
- Forum: Gaming
- Topic: Help with making code for keyboard input to controller Topic is solved
- Replies: 6
- Views: 409
Re: Help with making code for keyboard input to controller Topic is solved
Cmecu Assumes you're attacking with Numpad 3. And as you've probably already noticed, the kick only works when you're standing still and the camera is facing forward. ; Numpad8 = move forward ; Numpad3 = light attack *NumpadIns:: { ; Kick SendInput "{Numpad8 down}" Sleep 20 SendInput "{Numpad8 down...
- 24 Apr 2024, 11:34
- Forum: Gaming
- Topic: Help with making code for keyboard input to controller Topic is solved
- Replies: 6
- Views: 409
Re: Help with making code for keyboard input to controller Topic is solved
Hi. Cmecu Why don't you assign these actions to other free keyboard keys and create NumpadDot and NumpadAdd hotkeys to send these respective keys? :think: Edit: Just checked the game, you can use this. Bind "Dash/Backstep/Roll" to key 9 and "Jump" to key 0 in game. #Requires AutoHotkey 2.0 #SingleIn...