thank you Seven0528
it is a big help for me.
Search found 72 matches
- 03 Feb 2024, 06:12
- Forum: Ask for Help (v2)
- Topic: how to monitor a window resized or repositioned without settimer
- Replies: 7
- Views: 511
- 02 Feb 2024, 10:24
- Forum: Ask for Help (v2)
- Topic: how to monitor a window resized or repositioned without settimer
- Replies: 7
- Views: 511
Re: how to monitor a window resized or repositioned without settimer
I am not familiar with DLL calls. From my testing, it only detects the event when opening notepad.exe or restoring it from the taskbar icon. However, it does not detect when finishing dragging the notepad.exe window to another position, resizing the window by dragging the bottom right corner, etc. D...
- 02 Feb 2024, 09:17
- Forum: Ask for Help (v2)
- Topic: how to monitor a window resized or repositioned without settimer
- Replies: 7
- Views: 511
Re: how to monitor a window resized or repositioned without settimer
It's complex, but I'll try to understand and see what I can get. Thanks.mikeyww wrote: ↑02 Feb 2024, 07:39Hello,
This may give you some ideas.
https://autohotkey.com/board/topic/32628-tool-shellhook-messages/
- 02 Feb 2024, 04:54
- Forum: Ask for Help (v2)
- Topic: how to monitor a window resized or repositioned without settimer
- Replies: 7
- Views: 511
how to monitor a window resized or repositioned without settimer
i want to call a function when a window resized(restored, maximized, minimized, dragged to a new position).
but not using settimer to check.
but not using settimer to check.
- 30 Jul 2023, 13:45
- Forum: Ask for Help (v1)
- Topic: Issue with keydown?
- Replies: 1
- Views: 150
Re: Issue with keydown?
try this
Code: Select all
i::
while (GetKeyState(A_ThisHotKey , "P"))
{
Sendinput {Space}
}
keywait, %A_ThisHotKey%
return
- 30 Jul 2023, 12:55
- Forum: Ask for Help (v1)
- Topic: Need help with some functions
- Replies: 7
- Views: 317
- 30 Jul 2023, 12:53
- Forum: Ask for Help (v1)
- Topic: Need help with some functions
- Replies: 7
- Views: 317
Re: Need help with some functions
try this, it should be stop immediately, but it will always start from the beginning. the script runs the loop per 0.05 seconds, thus may take up some resources. global enable_action := false temp_func() Xbutton1:: SoundBeep, 300 ;; for debug purpose only, you can remove it enable_action := !enable_...
- 30 Jul 2023, 11:50
- Forum: Ask for Help (v1)
- Topic: Need help with some functions
- Replies: 7
- Views: 317
Re: Need help with some functions
it seems some how the settimer is blocking the Xbutton1 respond again. an ugly way to make it work global enable_action := false temp_func() Xbutton1:: SoundBeep, 300 enable_action := !enable_action return temp_func() { while true { if !(enable_action) { sleep 50 } else { ;Initialize random delays b...
- 30 Jul 2023, 10:10
- Forum: Ask for Help (v1)
- Topic: how to send Xbutton1 Up (delete please)
- Replies: 0
- Views: 148
how to send Xbutton1 Up (delete please)
it is working now, seems i make some mistake before.
- 12 Oct 2021, 01:17
- Forum: Ask for Help (v1)
- Topic: Run, %ComSpec% question.
- Replies: 2
- Views: 335
Re: Run, %ComSpec% question.
thank you for the example and reminds me add the quality parameter. After some testing. I found that works by removing the quotes for ""B:\youtube-dl.exe"" temp1 := "B:\youtube-dl.exe --update --no-overwrites --extract-audio --audio-format mp3 -o ""D:\`%(playlist_uploader)s\`%(playlist_title)s\`%(ti...
- 10 Oct 2021, 12:11
- Forum: Ask for Help (v1)
- Topic: Run, %ComSpec% question.
- Replies: 2
- Views: 335
Run, %ComSpec% question.
why Run, %ComSpec% /k %temp1% is not working ? :roll: temp1 := """B:\youtube-dl.exe"" --update --no-overwrites --extract-audio --audio-format mp3 -o ""D:\`%(playlist_uploader)s\`%(playlist_title)s\`%(title)s.%(ext)s"" --ignore-config --embed-thumbnail ""https://www.yyyyy.com/random_music""" Run, %Co...
- 27 Dec 2019, 09:53
- Forum: Wish List
- Topic: "FileExist" suggestion.
- Replies: 1
- Views: 2164
"FileExist" suggestion.
If I need to 100% sure a folder is exist, I need to use
Will it be better if it name as "PathExist", also adding 2 other function for absolute "folder exist" and "file exist".
Code: Select all
InStr(FileExist("FolderWithFilesAndSubfolders\*"), "D")
- 11 Dec 2019, 00:57
- Forum: Ask for Help (v1)
- Topic: Will comObj being terminated after exit the script? Topic is solved
- Replies: 2
- Views: 547
- 10 Dec 2019, 09:31
- Forum: Ask for Help (v1)
- Topic: Will comObj being terminated after exit the script? Topic is solved
- Replies: 2
- Views: 547
Will comObj being terminated after exit the script? Topic is solved
Do I need to terminate it manually or will it exit when exiting the ahk script?
Code: Select all
msg1 := comObj1.Exec("cmd.exe /q /c assoc .png").StdOut.ReadAll()
- 08 Nov 2019, 08:35
- Forum: Ask for Help (v1)
- Topic: Convert string(text) to html link<a> Topic is solved
- Replies: 3
- Views: 1156
Re: Convert string(text) to html link<a> Topic is solved
Thank you White_Whale & tmplinshi.
WinClip works perfectly.
Never know such wonderful library exist.
WinClip works perfectly.
Never know such wonderful library exist.
- 06 Nov 2019, 09:10
- Forum: Ask for Help (v1)
- Topic: Convert string(text) to html link<a> Topic is solved
- Replies: 3
- Views: 1156
Convert string(text) to html link<a> Topic is solved
The note application I am using accept html paste.
I want to convert normal text like..
to a html dom, not literally, and paste it as an object.
It should be related to CliboardAll, but I dont have any idea how to do it.
I want to convert normal text like..
Code: Select all
http://****.com
Code: Select all
<a href="http://****.com">Reference</a>
- 22 Oct 2019, 05:24
- Forum: Ask for Help (v1)
- Topic: hotstring question.
- Replies: 2
- Views: 479
- 21 Oct 2019, 01:51
- Forum: Ask for Help (v1)
- Topic: hotstring question.
- Replies: 2
- Views: 479
hotstring question.
I dont know what is a good Title for this question. Issue about using hotstring to input Japanese What I want to do is, when typing "n", it detects previous character(such as "な" ), and act differently. :*:ho::ほ :*:na::な :*:hon::ほん ;;<<This not work, it will trigger "ho" hotstring first; "n" also us...
- 19 Oct 2019, 09:26
- Forum: Ask for Help (v1)
- Topic: Unable call "class variable" from "variable"
- Replies: 2
- Views: 718
Re: Unable call "class variable" from "variable"
use obj[ expr ] := val . Eg, Thank you, I dont know object before. It also works in class variable too. Thanks Class VarContainer { static vv_TestVar } VarContainer.vv_TestVar := "Default" temp1 = vv_TestVar VarContainer[temp1] := "NEW" msgbox % VarContainer[temp1] ; RESULT: ; Error: The following ...
- 19 Oct 2019, 02:48
- Forum: Ask for Help (v1)
- Topic: Unable call "class variable" from "variable"
- Replies: 2
- Views: 718
Unable call "class variable" from "variable"
It works in normal variables, but not in class variable. Is there a way to make it work? I think it is the problem of the ".", also tried use "`.", not working either. Class VarContainer { static vv_TestVar } VarContainer.vv_TestVar := "Default" msgbox % VarContainer.vv_TestVar ; RESULT: ; Default ;...