Search found 17 matches
- 16 Oct 2018, 20:14
- Forum: Ask for Help (v1)
- Topic: Move files based on date/time created
- Replies: 3
- Views: 1158
Re: Move files based on date/time created
FileMove wouldn't move a file if it's being locked by recording software, so there is no problem with that.
- 18 Sep 2018, 14:19
- Forum: Scripts and Functions (v1)
- Topic: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
- Replies: 204
- Views: 80994
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
probably worthy addition to library? Hope I did it right both together allowing to select line containing caret for future use, copy, clear, duplicate, move between controls, etc. GetCaretLineIndex() { ; Get index of the line containing the caret ; EM_LINEINDEX = 0xBB SendMessage, 0xBB, -1, 0, , % "...
- 24 Aug 2018, 03:25
- Forum: Scripts and Functions (v1)
- Topic: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
- Replies: 204
- Views: 80994
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Hi! Is there any better way to insert formatted text into table other than adding it manually like I did in this script? #NoEnv #SingleInstance Force SetWorkingDir %A_ScriptDir% Menu Tray, Icon, shell32.dll, 190 #include Class_RichEdit.ahk appname := "richtextthing" Gui +Resize +LastFound +hwnd%appn...
- 06 May 2018, 15:51
- Forum: Ask for Help (v1)
- Topic: Display part of a window in a GUI Topic is solved
- Replies: 3
- Views: 1350
Re: Display part of a window in a GUI Topic is solved
I think this library: https://autohotkey.com/board/topic/7169 ... how-video/ could do what you want.
examle how it works by showing a region of firefox gui:
examle how it works by showing a region of firefox gui:
Spoiler
- 06 May 2018, 12:26
- Forum: Ask for Help (v1)
- Topic: Getting a GUI to move with another window?
- Replies: 12
- Views: 6891
Re: Getting a GUI to move with another window?
Here is an example of a ShellHook to detect when Notepad is opened. I tried to use this but it appears that sometimes it misses if window was opened. I think it happens when I open different windows close to each other. I'm using all of your script except DisableCloseButton() function, I have Gosub...
- 03 May 2018, 11:30
- Forum: Ask for Help (v1)
- Topic: Getting a GUI to move with another window?
- Replies: 12
- Views: 6891
Re: Getting a GUI to move with another window?
Win_Hwnd := WinExist("ahk_exe excel.exe ahk_class XLMAIN") DllCall("SetParent", "uint", Gui_Hwnd, "uint", Win_Hwnd) is there difference between DllCall("SetParent", "uint", Gui_Hwnd, "uint", Win_Hwnd) and Gui, +LastFound +ToolWindow +AlwaysOnTop -Caption -Border +parent%Win_Hwnd% HWNDGui_Hwnd ?
- 21 Apr 2018, 16:52
- Forum: Ask for Help (v1)
- Topic: how make ahk pause / suspend when some program run
- Replies: 3
- Views: 2129
Re: how make ahk pause / suspend when some program run
it depends what your script does, if it's a bunch of hotkeys then I would use a timer #persistent #singleinstance Force SetTimer, Check, 500 Check: If WinActive("ahk_exe notepad.exe") and (!A_IsSuspended) Suspend, On If !WinActive("ahk_exe notepad.exe") and (A_IsSuspended) Suspend, Off return !a:: ;...
- 05 Jan 2018, 23:38
- Forum: Scripts and Functions (v1)
- Topic: Close Window (Passing a variable to timer)
- Replies: 5
- Views: 1865
Re: Close Window (Passing a variable to timer)
#Persistent #SingleInstance Force CloseWindow(hwnd, ExitApp, prm) { fn := prm.fn SetTimer % fn, Delete WinClose ahk_id %hwnd% If ExitApp ExitApp return } delay:= 7000 ExitAppAfterWinClose := 0 Run, notepad.exe, ,, ID WinWait ahk_pid %ID% WinGet, hwnd, ID, A CloseWindow_fn := Func("CloseWindow").bin...
- 06 Nov 2017, 01:05
- Forum: Ask for Help (v1)
- Topic: Gui Autosize problem with child gui window, weird behavior.
- Replies: 2
- Views: 717
Re: Gui Autosize problem with child gui window, weird behavior.
bumping again, hope someone could help me
- 13 Oct 2017, 08:25
- Forum: Ask for Help (v1)
- Topic: Gui Autosize problem with child gui window, weird behavior.
- Replies: 2
- Views: 717
Re: Gui Autosize problem with child gui window, weird behavior.
Code: Select all
Gui, titlebar%hwnd%:Add, Text, % "x+1 y+1 h0 w0 vQ"
GuiControlGet, Q, titlebar%hwnd%:Pos
Gui, titlebar%hwnd%: Show, % "h" QY
- 13 Oct 2017, 01:02
- Forum: Ask for Help (v1)
- Topic: Gui Autosize problem with child gui window, weird behavior.
- Replies: 2
- Views: 717
Gui Autosize problem with child gui window, weird behavior.
Hi, I was trying to make a cutrom titlebar with some extra features but I got stuck with a problem, every time I use " Gui, titlebar%hwnd%: Show, AutoSize " it changes the location for gui, is there a bug or I'm doing it wrong? Commenting " DllCall("SetParent", "uint", Gui_Hwnd, "uint", Win_Hwnd) " ...
- 28 Aug 2017, 05:49
- Forum: Ask for Help (v1)
- Topic: about changing class of compiled script Topic is solved
- Replies: 1
- Views: 979
about changing class of compiled script Topic is solved
Hi, I've found this post about changing class of complied exe https://autohotkey.com/board/topic/3388-compiled-scripts-window-class/#entry52356 It's says "Anything up to 15 characters is fine" but I need to set class to 20 characters and it works, but I believe it may cause bugs in some functionalit...
- 18 Aug 2017, 20:07
- Forum: Ask for Help (v1)
- Topic: Problem with copying lisview conent, only half getting copied Topic is solved
- Replies: 3
- Views: 914
Problem with copying lisview conent, only half getting copied Topic is solved
I'm trying to copy listviews selected content but for some reason it's not copying the whole selection but only about half of it. Am I doing it wrong? Doesn't matter how many rows I choose it's always copying about a half. #SingleInstance force #NoEnv ColumnNames := "1|2|3|4|5|6|7|8|9|10" Gui +Resiz...
- 11 Aug 2017, 13:51
- Forum: Ask for Help (v1)
- Topic: Variable assosiated to contol updating without Submiting? Topic is solved
- Replies: 3
- Views: 1091
Re: Variable assosiated to contol updating without Submiting? Topic is solved
I've figured couple of ways to work around to achieve the goal but I needed to know if I wasn't doing it wrong at the start Your way looks way more elegant though, thanks!Gio wrote:but if this behavior is undesired you can use GuiControlGet with a variable that is NOT the same as the controls variable.
- 11 Aug 2017, 07:00
- Forum: Ask for Help (v1)
- Topic: Variable assosiated to contol updating without Submiting? Topic is solved
- Replies: 3
- Views: 1091
Variable assosiated to contol updating without Submiting? Topic is solved
So I read in mannual "For example, specifying vMyEdit would store the control's contents in the variable MyEdit whenever the Gui Submit command is used." I'm not using GuiSubmit but once I change the date in the DateTime control it updated %CustomDate%, why is that? #SingleInstance force #NoEnv ; no...
- 04 Aug 2017, 00:14
- Forum: Ask for Help (v1)
- Topic: Need help to retrieve value from JSON obj Topic is solved
- Replies: 2
- Views: 926
Re: Need help to retrieve value from JSON obj Topic is solved
Thank you, wolf_II !
- 03 Aug 2017, 22:22
- Forum: Ask for Help (v1)
- Topic: Need help to retrieve value from JSON obj Topic is solved
- Replies: 2
- Views: 926
Need help to retrieve value from JSON obj Topic is solved
Hi, I have this JSON string {"QueryTime": 297.47270000000003,"Results" : [{"Player":"\"123\"","Net$USD":"77,00","TagCount":"4255","TagCount(Year)":"234435"}]} I'm trying to retreive the value of Net$USD but AHK won't let me to start a script and showing error "This character is not allowed here" her...