Search found 302 matches

by Nightwolf85
23 Nov 2020, 09:46
Forum: Editors
Topic: Enable Function List in Notepad++ for AHK Scripts (with classes now)
Replies: 64
Views: 49090

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...
by Nightwolf85
26 Aug 2020, 11:46
Forum: Ask For Help
Topic: Can't interact with controls of a Child GUI Topic is solved
Replies: 7
Views: 275

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...
by Nightwolf85
26 Aug 2020, 06:18
Forum: Ask For Help
Topic: Can't interact with controls of a Child GUI Topic is solved
Replies: 7
Views: 275

Re: Can't interact with controls of a Child GUI Topic is solved

teadrinker wrote:
25 Aug 2020, 15:44
You can use this way:
Thank you very much!! that does seem to work. I wonder why it behaves different if done that way.
by Nightwolf85
25 Aug 2020, 08:59
Forum: Ask For Help
Topic: Can't interact with controls of a Child GUI Topic is solved
Replies: 7
Views: 275

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 ...
by Nightwolf85
24 Aug 2020, 11:02
Forum: Ask For Help
Topic: Can't interact with controls of a Child GUI Topic is solved
Replies: 7
Views: 275

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....
by Nightwolf85
16 Jun 2020, 13:56
Forum: Ask For Help
Topic: Right click menu on AHK exe pinned to taskbar?
Replies: 4
Views: 2034

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...
by Nightwolf85
01 Jun 2020, 13:10
Forum: Ask For Help
Topic: Don't execute script if a specified key was pressed before the hotkey Topic is solved
Replies: 3
Views: 198

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...
by Nightwolf85
14 Jun 2018, 08:05
Forum: Ask For Help
Topic: class / function / send Topic is solved
Replies: 2
Views: 808

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 ...
by Nightwolf85
06 Jun 2018, 10:44
Forum: Ask For Help
Topic: how to use the pipe operator
Replies: 1
Views: 478

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:

Code: Select all

~a::
~b::
    send c
return
by Nightwolf85
18 May 2018, 09:24
Forum: Ask For Help
Topic: Hotkey for Push-to-Talk + Delay Topic is solved
Replies: 2
Views: 1232

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%...
by Nightwolf85
30 Mar 2018, 12:10
Forum: Ask For Help
Topic: How to do ? -1 : 1 Topic is solved
Replies: 4
Views: 1272

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 : "")
by Nightwolf85
30 Mar 2018, 11:35
Forum: Ask For Help
Topic: Can someone tell me why it does not work?
Replies: 2
Views: 761

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...
by Nightwolf85
28 Mar 2018, 08:05
Forum: Ask For Help
Topic: Script checks date and not open on two computers at the same time
Replies: 10
Views: 2570

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 ...
by Nightwolf85
27 Mar 2018, 12:52
Forum: Ask For Help
Topic: Script checks date and not open on two computers at the same time
Replies: 10
Views: 2570

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...
by Nightwolf85
26 Mar 2018, 09:47
Forum: Ask For Help
Topic: How to get values from Array?
Replies: 4
Views: 895

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 := {...
by Nightwolf85
26 Feb 2018, 13:33
Forum: Ask For Help
Topic: Closing open Excel files safely without saving them Topic is solved
Replies: 4
Views: 1441

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...
by Nightwolf85
29 Nov 2017, 13:46
Forum: Ask For Help
Topic: Maths Calculations With AutoHotKey Topic is solved
Replies: 22
Views: 4419

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 ...
by Nightwolf85
29 Nov 2017, 12:54
Forum: Ask For Help
Topic: Maths Calculations With AutoHotKey Topic is solved
Replies: 22
Views: 4419

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...
by Nightwolf85
29 Nov 2017, 12:39
Forum: Ask For Help
Topic: Maths Calculations With AutoHotKey Topic is solved
Replies: 22
Views: 4419

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...
by Nightwolf85
29 Nov 2017, 12:25
Forum: Ask For Help
Topic: Maths Calculations With AutoHotKey Topic is solved
Replies: 22
Views: 4419

Re: Maths Calculations With AutoHotKey Topic is solved

Manlikezab12 wrote:...
You are running it when it is still compressed, this doesn't allow it to access the lib folder and it contains required functions.

unzip it first.

Go to advanced search