Search found 52 matches

by ilhom
24 Sep 2019, 16:37
Forum: Ask For Help
Topic: Account Login Macro
Replies: 2
Views: 359

Re: Account Login Macro

Can you post your full code?
Can the website be shared so that we can help debug the problem?
by ilhom
24 Sep 2019, 16:28
Forum: Ask For Help
Topic: Help finding what I did wrong in script Topic is solved
Replies: 2
Views: 380

Re: Help finding what I did wrong in script Topic is solved

2 problems. 1) You need to add a return after you finish creating the GUI. 2) Need a Gui, Submit for the OK button in order for those variables to obtain their submitted value in the GUI. Code below has those fixes. Gui, +AlwaysOnTop Gui, color, 000000 Gui, Font, cWhite Gui, color,, 000000 Gui, Add,...
by ilhom
24 Sep 2019, 16:18
Forum: Ask For Help
Topic: EXE file not working on friend's machine Topic is solved
Replies: 2
Views: 359

Re: EXE file not working on friend's machine Topic is solved

I have an AHK called Snipping Tool that I got off this forum. It works great, I love it. However, I used the converter to make it into an exe file so my colleagues can use the hotkey. They are running windows 10 and have snipping tool just like I do. But it is not working for either of them. Though...
by ilhom
23 Sep 2019, 16:30
Forum: Ask For Help
Topic: Looking for a Right Mouse to Middle Mouse Hold Script Topic is solved
Replies: 8
Views: 1008

Re: Looking for a Right Mouse to Middle Mouse Hold Script Topic is solved

Does not work either. With you first script I've got a normal right click wehen using the CTRL modifier. With the new script I've got the hold Mbutton, but CTRL does not got recognized. Adding the wildcard to my original should do what you're asking. This will also work with alt, shift, etc. $*RBut...
by ilhom
22 Sep 2019, 13:48
Forum: Ask For Help
Topic: Hi I am not really understanding scripting.. is this possible..
Replies: 4
Views: 646

Re: Hi I am not really understanding scripting.. is this possible..

Hey thanks a lot... the problem with this is that it stops you normally using w.... or so it seemed.. I tried editing it to have it switch on and off with either a key or a middle mouse button.. but I couldn't get it to do anything... TL;DR - How would I modify the code above to remove the double t...
by ilhom
21 Sep 2019, 12:28
Forum: Ask For Help
Topic: Hi I am not really understanding scripting.. is this possible..
Replies: 4
Views: 646

Re: Hi I am not really understanding scripting.. is this possible..

Try this. The 200 is the amount of milliseconds to detect if it's been double tapped or not. You can adjust this if you want.
To cancel the auto run, just tap w again.

Code: Select all

$w::
if (A_TimeSincePriorHotkey < 200)
	SendInput {w down}
else
	SendInput w
by ilhom
21 Sep 2019, 12:08
Forum: Ask For Help
Topic: How come some time ahk doesn't work
Replies: 2
Views: 334

Re: How come some time ahk doesn't work

Can you post an example script that stops working for you?
What program do you have in focus where it stops working, and then starts working when you click the task bar?
by ilhom
20 Sep 2019, 02:04
Forum: Ask For Help
Topic: Looking for a Right Mouse to Middle Mouse Hold Script Topic is solved
Replies: 8
Views: 1008

Re: Looking for a Right Mouse to Middle Mouse Hold Script Topic is solved

The middle mouse button will trigger if you hold down the right mouse button for 200ms. You can increase this time by changing T0.2 to a higher value.

Code: Select all

$RButton::
keywait, RButton, T0.2
    if (Errorlevel = 1)
	{
		Click, down, Middle
		KeyWait, RButton
		Click, up, Middle
	}
	else
		Click, Right
by ilhom
18 Sep 2019, 15:10
Forum: Ask For Help
Topic: How to extract a string? Topic is solved
Replies: 6
Views: 769

Re: How to extract a string? Topic is solved

Too many spaces it seems.

Code: Select all

Var=1 NULL;;0
StringSplit, Var_Array, Var, %A_Space%,,
Msgbox %Var_Array1%   ;Output 1
Msgbox %Var_Array2%   ;Output NULL;;0
by ilhom
18 Sep 2019, 11:12
Forum: Ask For Help
Topic: Two shortcuts on one key, quick press and hold
Replies: 1
Views: 455

Re: Two shortcuts on one key, quick press and hold

You can add a timeout to KeyWait, and then use ErrorLevel to determine if the key is tapped or held down. I also added a bit more to your If statement to make the shift key function like it normally would. $RShift:: KeyWait, RShift, T0.3 If (ErrorLevel = 1) { Send {Shift Down} KeyWait, RShift Send {...
by ilhom
13 Sep 2019, 11:51
Forum: Ask For Help
Topic: Trigger script upon window close
Replies: 5
Views: 703

Re: Trigger script upon window close

I think I understand better now.

Code: Select all

;Normal invoice script here

IfWinActive, Recall
{
    ;Perform actions in Recall window
    WinWaitNotActive, Recall
    ;Perform actions when Recall window is closed
}

;Continue normal invoice script here
by ilhom
13 Sep 2019, 10:41
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1479

Re: Registry Key Contains Comma - How To Escape It?

What if you open up regedit and go to the value and try to change it there? That could narrow down if it's a permission issue with the account/the value is locked, or with ahk making the edit. Here is something that could help: https://www.howtogeek.com/262464/how-to-gain-full-permissions-to-edit-pr...
by ilhom
13 Sep 2019, 09:57
Forum: Ask For Help
Topic: Trigger script upon window close
Replies: 5
Views: 703

Re: Trigger script upon window close

I believe you're looking for IfWinNotActive
https://www.autohotkey.com/docs/commands/WinActive.htm
by ilhom
12 Sep 2019, 18:01
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1479

Re: Registry Key Contains Comma - How To Escape It?

Okay, what if you copy the output from the msgbox and paste it as the value for the last parameter in RegWrite and RegRead? If that works, then I would imagine you would be correct about it variables being problematic in the function.
by ilhom
12 Sep 2019, 17:58
Forum: Ask For Help
Topic: Dynamic Variable/Function?
Replies: 2
Views: 294

Re: Dynamic Variable/Function?

I am using three variables. Var1 is the baseline which I modify, 2 and 3 are always simply Var1+x. Two questions 1) What is the simplest way to write n1:=1 n2:=(n1+1) n3:=(n1+2) 2) Can we further simplify and define n2 as always n1+1, without writing the whole formula out every time it is called? I...
by ilhom
12 Sep 2019, 17:25
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1479

Re: Registry Key Contains Comma - How To Escape It?

I was using the old syntax: RegWrite, ValueType, RootKey, SubKey , ValueName, Value Regardless, I used the new syntax as you suggested but to no avail. I check the registry value, and it still does not change after I press my hotkey. At this point I'm really doubting regwrite supports %variables% T...
by ilhom
12 Sep 2019, 16:59
Forum: Ask For Help
Topic: Return string to cmd screen from compiled .exe AHK script Topic is solved
Replies: 4
Views: 691

Re: Return string to cmd screen from compiled .exe AHK script Topic is solved

Can check to see if the command console is active through IfWinActive and then input the string. https://www.autohotkey.com/docs/commands/WinActive.htm So if console isn't active, it runs however you have it running now. If console is active, you can send the input as text so you can see the command...
by ilhom
12 Sep 2019, 16:47
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1479

Re: Registry Key Contains Comma - How To Escape It?

Wait is it possible to write a variable to a registry value? RegWrite,REG_BINARY,HKLM,SOFTWARE\...\Properties,{24dbb0fc-9311-4b3d-9cf0-18ff155639d4}`,1,%Listen1Change% Refer to this: https://www.autohotkey.com/docs/commands/RegWrite.htm RegWrite, ValueType, KeyName , ValueName, Value Here is what y...
by ilhom
12 Sep 2019, 15:51
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1479

Re: Registry Key Contains Comma - How To Escape It?

That post you linked is correct. Check out EscapeChar to see how an accent is used for certain characters.

https://www.autohotkey.com/docs/commands/_EscapeChar.htm

Go to advanced search