Search found 295 matches

by Nightwolf85
14 Jun 2018, 08:05
Forum: Ask For Help
Topic: class / function / send Topic is solved
Replies: 2
Views: 292

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: 150

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: 242

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: 411

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: 291

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: 698

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: 698

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: 360

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: 354

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: 1318

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: 1318

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: 1318

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: 1318

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

Re: Maths Calculations With AutoHotKey Topic is solved

Have you tried using this?
https://github.com/davebrny/in-line-calculator/releases
from here:
https://autohotkey.com/boards/viewtopic.php?t=27431

Edit:
To have it do what you requested just open the settings.ini file and set the trigger key to nothing.
by Nightwolf85
26 Nov 2017, 15:07
Forum: Ask For Help
Topic: How to turn on a keyboard light
Replies: 7
Views: 932

Re: How to turn on a keyboard light

It looks like you commented out the F11 toggle key, and that is where you added the function calls. Your F12 toggle code doesn't include the KeyboardLED calls at all. Try this, and still experiment with keyboard numbers. settitlematchmode,3 ;this affects IfWinNotActive, 2= partial window match, 3=ti...
by Nightwolf85
25 Nov 2017, 11:22
Forum: Ask For Help
Topic: Copy excel values (COM)
Replies: 3
Views: 442

Re: Copy excel values (COM)

Ahh, sorry without seeing the code I didn't know you were doing a copy and paste instead of directly copying the values.

Glad you figured it out.
by Nightwolf85
25 Nov 2017, 09:37
Forum: Ask For Help
Topic: Copy excel values (COM)
Replies: 3
Views: 442

Re: Copy excel values (COM)

Use .Text instead of .Value, that should do what you want.
by Nightwolf85
25 Nov 2017, 07:37
Forum: Ask For Help
Topic: simple script can't seem to read ini file
Replies: 5
Views: 491

Re: simple script can't seem to read ini file

Unless you really have a variable named on and are comparing to its contents, you need to put quotes around it.

Code: Select all

If (value = "on")
by Nightwolf85
24 Nov 2017, 10:52
Forum: Ask For Help
Topic: Turn one string into two variables
Replies: 1
Views: 239

Re: Turn one string into two variables

N chars is known, I'd use SubStr:

Code: Select all

stringb := "ThisStringIntoTwoVariable"
var1 := SubStr(stringb, 1, 14)
var2 := SubStr(stringb, 15)
MsgBox, %var1%`n%var2%
by Nightwolf85
24 Nov 2017, 10:38
Forum: Ask For Help
Topic: Making a auto hotkey script that is specific to one key work for a variable keys
Replies: 1
Views: 249

Re: Making a auto hotkey script that is specific to one key work for a variable keys

I'm not sure what you are trying to accomplish, the GetKeyState function you use in your attempts at the bottom already does what you are asking for it seems ( A function to determine the state of a key ). And using your exact example code has the expected results for me. Are you trying to make the ...

Go to advanced search