Search found 302 matches
- 23 Nov 2020, 09:46
- Forum: Notepad++
- Topic: Enable Function List in Notepad++ for AHK Scripts (with classes now)
- Replies: 64
- Views: 77005
Re: Enable Function List in Notepad++ for AHK Scripts (with classes now)
If anybody still checks this thread, Notepad++ has changed the way function list customization works ( I think with v7.9.1 ) Each different language now needs to be in it's own file. I've attached the one I'm using , however I feel it is possibly outdated and may not be the best anymore. You also ne...
- 26 Aug 2020, 11:46
- Forum: Ask for Help (v1)
- Topic: Can't interact with controls of a Child GUI Topic is solved
- Replies: 8
- Views: 1224
Re: Can't interact with controls of a Child GUI Topic is solved
Unlike the GUI option +Parent the winapi SetParent does not modify the WS_CHILD or WS_POPUP window styles of the window whose parent is being changed, so there is the difference. Thank you for doing the research there, I was not looking up the correct documentation to find that! So basically it isn...
- 26 Aug 2020, 06:18
- Forum: Ask for Help (v1)
- Topic: Can't interact with controls of a Child GUI Topic is solved
- Replies: 8
- Views: 1224
Re: Can't interact with controls of a Child GUI Topic is solved
Thank you very much!! that does seem to work. I wonder why it behaves different if done that way.
- 25 Aug 2020, 08:59
- Forum: Ask for Help (v1)
- Topic: Can't interact with controls of a Child GUI Topic is solved
- Replies: 8
- Views: 1224
Re: Can't interact with controls of a Child GUI Topic is solved
This might not be helpful, but if copy your code and minimize the Child gui and immediately maximize it again, I can write in the first edit-box. I noticed that as well, it is strange. If I remove +ParentMain it seems to work tho? It does work, it just no longer confines the Child GUI to be within ...
- 24 Aug 2020, 11:02
- Forum: Ask for Help (v1)
- Topic: Can't interact with controls of a Child GUI Topic is solved
- Replies: 8
- Views: 1224
Can't interact with controls of a Child GUI Topic is solved
Hello, I'm not sure if this is just me not understanding the relationship between a parent and child window, or something wrong with my computer. I am hoping this is just a simple thing I am doing wrong, or even better it works as expected for everyone else, and it is just my computer being strange....
- 16 Jun 2020, 13:56
- Forum: Ask for Help (v1)
- Topic: Right click menu on AHK exe pinned to taskbar?
- Replies: 4
- Views: 2654
Re: Right click menu on AHK exe pinned to taskbar?
If you are set on using the taskbar icon, instead of the system tray icon as previously mentioned, you can check out this guide for creating custom jumplists. It is old! but comments say it still works on Windows 10. https://www.howtogeek.com/howto/30131/create-custom-windows-7-jumplists-for-apps-th...
- 01 Jun 2020, 13:10
- Forum: Ask for Help (v1)
- Topic: Don't execute script if a specified key was pressed before the hotkey Topic is solved
- Replies: 3
- Views: 559
Re: Don't execute script if a specified key was pressed before the hotkey Topic is solved
I have a solution that uses the Hotkey Command . Hotkey, IF, WinActive("ahk_exe notepad.exe") Hotkey,g,doThing, on Hotkey,+g,doThing, on Hotkey, IF Return #If WinActive("ahk_exe notepad.exe") Enter:: Esc:: Hotkey, IF, WinActive("ahk_exe notepad.exe") Hotkey,g, Toggle Hotkey,+g, Toggle Hotkey, IF Ret...
- 14 Jun 2018, 08:05
- Forum: Ask for Help (v1)
- Topic: class / function / send Topic is solved
- Replies: 2
- Views: 1141
Re: class / function / send Topic is solved
Is func123() part of the conn_to_some_api class? If it isn't then the this object doesn't exist inside, and so as a solution you could pass it as a parameter: make the function be func123(obj) and use obj.send(data) to send the data (can probably still call it 'this' but that may be confusing since ...
- 06 Jun 2018, 10:44
- Forum: Ask for Help (v1)
- Topic: how to use the pipe operator
- Replies: 1
- Views: 622
Re: how to use the pipe operator
Do you mean to use | as OR?
If so, you can just put each on it's own line:
If so, you can just put each on it's own line:
Code: Select all
~a::
~b::
send c
return
- 18 May 2018, 09:24
- Forum: Ask for Help (v1)
- Topic: Hotkey for Push-to-Talk + Delay Topic is solved
- Replies: 2
- Views: 1977
Re: Hotkey for Push-to-Talk + Delay Topic is solved
Does using SetTimer like this work how you want? Loop { SoundGet, MicVol,MASTER,VOLUME, %A_Index% If (MicVol == 97.00) { Mic = %A_Index% Break } } XButton1:: SetTimer, ReMute, Off SoundSet, 0, MASTER, MUTE, %Mic% KeyWait XButton1 SetTimer, ReMute, -750 Return ReMute: SoundSet, 1, MASTER, MUTE, %Mic%...
- 30 Mar 2018, 12:10
- Forum: Ask for Help (v1)
- Topic: How to do ? -1 : 1 Topic is solved
- Replies: 4
- Views: 1663
Re: How to do ? -1 : 1 Topic is solved
Does putting grouping ( ) around the tertiary operator help at all?
Code: Select all
maxCamG / (2 * Pi) * (Atan((Y2 - Y1) / (X2 - X1)) + 3 * Pi / 2) (X1 < X2 ? -Pi : "")
- 30 Mar 2018, 11:35
- Forum: Ask for Help (v1)
- Topic: Can someone tell me why it does not work?
- Replies: 2
- Views: 964
Re: Can someone tell me why it does not work?
PixelSearch is a command, it sets OutputVarX and OutputVarY, it doesn't return a value at all. Because of this, the check against the value true is invalid. You could try something like this instead (not tested): !u:: Gui Submit, NoHide Loop { PixelSearch, OutputVarX, OutputVarY, 0, 0, A_ScreenWidth...
- 28 Mar 2018, 08:05
- Forum: Ask for Help (v1)
- Topic: Script checks date and not open on two computers at the same time
- Replies: 10
- Views: 3347
Re: Script checks date and not open on two computers at the same time
Hello friend, thanks for the help, I wonder if these modifications I made inside the code if they are correct? the intention is that the program does not open after the date that was placed in the variable (DateExpired) I think if you format the time like this it works as you describe? DateExpired ...
- 27 Mar 2018, 12:52
- Forum: Ask for Help (v1)
- Topic: Script checks date and not open on two computers at the same time
- Replies: 10
- Views: 3347
Re: Script checks date and not open on two computers at the same time
Using info I got from this thread: https://autohotkey.com/boards/viewtopic.php?t=6547 I came up with this example which should always give the current date no matter what the user has their computer set to: timeLoc := A_Temp . "\Time.txt" RunWait, %ComSpec% /c w32tm /monitor /computers:us.pool.ntp.o...
- 26 Mar 2018, 09:47
- Forum: Ask for Help (v1)
- Topic: How to get values from Array?
- Replies: 4
- Views: 1357
Re: How to get values from Array?
I think you are not understanding just how "complex" (and strange) your array is. This gets what you want, but isn't intuitive, You need the first index number to match the number after Text ie. First[ 1 ]["Text 1 "] and also you need to have the [1] at the end, which should always be a 1 First := {...
- 26 Feb 2018, 13:33
- Forum: Ask for Help (v1)
- Topic: Closing open Excel files safely without saving them Topic is solved
- Replies: 4
- Views: 2435
Re: Closing open Excel files safely without saving them Topic is solved
I understand the following code works to close Excel files and saving them ( http://www.autohotkey.com/board/topic/80771-excel-close-and-save-all-invisible-workbooks/ ). However, I would like to close several files without saving any of them. Any suggestions? Remove the 1 from the close line, as th...
- 29 Nov 2017, 13:46
- Forum: Ask for Help (v1)
- Topic: Maths Calculations With AutoHotKey Topic is solved
- Replies: 23
- Views: 7713
Re: Maths Calculations With AutoHotKey Topic is solved
Still the same problem. I have to type = button before answer pops up. If this is too much hassle for you don't worry about it. Strange with that as my settings file for the script I only have to hit enter and it evaluates the answer. Since I'm not the creator of that script I can't really provide ...
- 29 Nov 2017, 12:54
- Forum: Ask for Help (v1)
- Topic: Maths Calculations With AutoHotKey Topic is solved
- Replies: 23
- Views: 7713
Re: Maths Calculations With AutoHotKey Topic is solved
Yeah that's the problem, I don't want to type = button before it will give me answer. I want to type it plain without = and then it gives answer. Is there a trigger key such as enter key? Like It triggers when you press enter key? I'm not too sure if that would work. I'm new to this so I'm struggli...
- 29 Nov 2017, 12:39
- Forum: Ask for Help (v1)
- Topic: Maths Calculations With AutoHotKey Topic is solved
- Replies: 23
- Views: 7713
Re: Maths Calculations With AutoHotKey Topic is solved
So after I unzip how does it work? I type 2*2 it will come up as 4? or do I have to modify something as you said. Open the settings file and make the trigger key equal nothing i.e. [settings] enable_hotstrings = yes trigger_key = (DELETE what was here) result_endkey = = equation_endkey = # result_h...
- 29 Nov 2017, 12:25
- Forum: Ask for Help (v1)
- Topic: Maths Calculations With AutoHotKey Topic is solved
- Replies: 23
- Views: 7713
Re: Maths Calculations With AutoHotKey Topic is solved
You are running it when it is still compressed, this doesn't allow it to access the lib folder and it contains required functions.Manlikezab12 wrote:...
unzip it first.