Can you post your full code?
Can the website be shared so that we can help debug the problem?
Search found 52 matches
- 24 Sep 2019, 16:37
- Forum: Ask for Help (v1)
- Topic: Account Login Macro
- Replies: 2
- Views: 543
- 24 Sep 2019, 16:28
- Forum: Ask for Help (v1)
- Topic: Help finding what I did wrong in script Topic is solved
- Replies: 2
- Views: 527
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,...
- 24 Sep 2019, 16:18
- Forum: Ask for Help (v1)
- Topic: EXE file not working on friend's machine Topic is solved
- Replies: 2
- Views: 515
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...
- 23 Sep 2019, 16:30
- Forum: Ask for Help (v1)
- Topic: Looking for a Right Mouse to Middle Mouse Hold Script Topic is solved
- Replies: 8
- Views: 1632
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...
- 22 Sep 2019, 13:48
- Forum: Ask for Help (v1)
- Topic: Hi I am not really understanding scripting.. is this possible..
- Replies: 4
- Views: 781
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...
- 21 Sep 2019, 12:28
- Forum: Ask for Help (v1)
- Topic: Hi I am not really understanding scripting.. is this possible..
- Replies: 4
- Views: 781
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.
To cancel the auto run, just tap w again.
Code: Select all
$w::
if (A_TimeSincePriorHotkey < 200)
SendInput {w down}
else
SendInput w
- 21 Sep 2019, 12:08
- Forum: Ask for Help (v1)
- Topic: How come some time ahk doesn't work
- Replies: 2
- Views: 487
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?
What program do you have in focus where it stops working, and then starts working when you click the task bar?
- 20 Sep 2019, 02:04
- Forum: Ask for Help (v1)
- Topic: Looking for a Right Mouse to Middle Mouse Hold Script Topic is solved
- Replies: 8
- Views: 1632
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
- 18 Sep 2019, 15:10
- Forum: Ask for Help (v1)
- Topic: How to extract a string? Topic is solved
- Replies: 6
- Views: 1209
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
- 18 Sep 2019, 11:12
- Forum: Ask for Help (v1)
- Topic: Two shortcuts on one key, quick press and hold
- Replies: 1
- Views: 1828
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 {...
- 13 Sep 2019, 11:51
- Forum: Ask for Help (v1)
- Topic: Trigger script upon window close
- Replies: 5
- Views: 1108
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
- 13 Sep 2019, 10:41
- Forum: Ask for Help (v1)
- Topic: Registry Key Contains Comma - How To Escape It?
- Replies: 14
- Views: 2563
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...
- 13 Sep 2019, 09:57
- Forum: Ask for Help (v1)
- Topic: Trigger script upon window close
- Replies: 5
- Views: 1108
- 12 Sep 2019, 18:01
- Forum: Ask for Help (v1)
- Topic: Registry Key Contains Comma - How To Escape It?
- Replies: 14
- Views: 2563
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.
- 12 Sep 2019, 17:58
- Forum: Ask for Help (v1)
- Topic: Dynamic Variable/Function?
- Replies: 2
- Views: 508
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...
- 12 Sep 2019, 17:25
- Forum: Ask for Help (v1)
- Topic: Registry Key Contains Comma - How To Escape It?
- Replies: 14
- Views: 2563
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...
- 12 Sep 2019, 16:59
- Forum: Ask for Help (v1)
- Topic: Return string to cmd screen from compiled .exe AHK script Topic is solved
- Replies: 4
- Views: 1554
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...
- 12 Sep 2019, 16:47
- Forum: Ask for Help (v1)
- Topic: Registry Key Contains Comma - How To Escape It?
- Replies: 14
- Views: 2563
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...
- 12 Sep 2019, 16:36
- Forum: Ask for Help (v1)
- Topic: How do i get this script to loop continuously?
- Replies: 1
- Views: 314
- 12 Sep 2019, 15:51
- Forum: Ask for Help (v1)
- Topic: Registry Key Contains Comma - How To Escape It?
- Replies: 14
- Views: 2563
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
https://www.autohotkey.com/docs/commands/_EscapeChar.htm