Search found 93 matches
- 23 Aug 2022, 12:25
- Forum: Ask for Help (v1)
- Topic: Pause script after pressing a hotkey until pressing the next hotkey and vice versa Topic is solved
- Replies: 3
- Views: 601
Re: Pause script after pressing a hotkey until pressing the next hotkey and vice versa Topic is solved
I'm sure there may be a shorter way to do this, but here is the quick and dirty. Try: HKey3 := True ;True indicates that the key is available for pressing HKey4 := True ~*3:: If (HKey3) { ControlClick, X401 Y296, ahk_class #32770 sleep, 1 Hkey3 := False HKey4 := True } Return ~*4:: If (Hkey4) { Con...
- 23 Aug 2022, 11:06
- Forum: Ask for Help (v1)
- Topic: Pause script after pressing a hotkey until pressing the next hotkey and vice versa Topic is solved
- Replies: 3
- Views: 601
Pause script after pressing a hotkey until pressing the next hotkey and vice versa Topic is solved
Hey everyone. I need to set it up so that each hotkey only triggers ControlClick once until another hotkey is pressed, like a sequence. If you press 3, ControlClick is triggered, but if you press it again, nothing is done until you press 4 and vice versa. Basically, each hotkey works only once and d...
- 24 Oct 2020, 08:29
- Forum: Ask for Help (v1)
- Topic: Disable Mouse Click in specific area of screen Topic is solved
- Replies: 5
- Views: 2046
Re: Disable Mouse Click in specific area of screen Topic is solved
#If corner() *LButton:: *RButton:: *MButton:: *XButton1:: *XButton2::Return #If corner() { cornr := False MouseGetPos, xpos, ypos margin := A_ScreenWidth - 200 If xpos between %margin% and %A_ScreenWidth% If ypos between 1 and 200 cornr := True Return cornr } The script blocks the button if the mou...
- 24 Oct 2020, 07:49
- Forum: Ask for Help (v1)
- Topic: Disable Mouse Click in specific area of screen Topic is solved
- Replies: 5
- Views: 2046
Disable Mouse Click in specific area of screen Topic is solved
I need to disable mouse clicks in this small specific area, as can be seen on the screenshot. The symbols are located in the upper right corner on the screen. Basically I have to set it up so that I can't click on these icons. This script here almost does the job, but I don't know how to find the ri...
- 07 Nov 2019, 08:43
- Forum: Ask for Help (v1)
- Topic: Small issue with my AutoRun Script Topic is solved
- Replies: 2
- Views: 510
Re: Small issue with my AutoRun Script Topic is solved
Rohwedder wrote: ↑07 Nov 2019, 07:25Hallo,
perhaps:Code: Select all
~*w:: send,{LShift Down} keywait,w Send,{LShift Up} return ~XButton2::send,{LShift Down}{w Down} ~$f7::ExitApp
Thank you very much Rohwedder! Works very well.
- 07 Nov 2019, 05:10
- Forum: Ask for Help (v1)
- Topic: Small issue with my AutoRun Script Topic is solved
- Replies: 2
- Views: 510
Small issue with my AutoRun Script Topic is solved
Hey everyone. I'm afraid I have a little problem with my script. ~$w:: send,{LShift Down} keywait,w Send,{LShift Up} return ~$XButton2:: send,{LShift Down} send,{w Down} return ~$f7::ExitApp This is my AutoRun script. Whenever I hold the key "w" down, it holds "LShift" down. So far so good. That wor...
- 08 Aug 2019, 12:49
- Forum: Ask for Help (v1)
- Topic: Multiple #IfWinNotActive Topic is solved
- Replies: 3
- Views: 574
Re: Multiple #IfWinNotActive Topic is solved
I should have noticed (someone else did) that your GroupAdd commands never get executed because you have them after a hotkey definition and not up in the auto-execute section. Should be like this: #NoTrayIcon #Persistent GroupAdd, GroupName , ahk_class window1 GroupAdd, GroupName , ahk_exe window2 ...
- 08 Aug 2019, 08:05
- Forum: Ask for Help (v1)
- Topic: Multiple #IfWinNotActive Topic is solved
- Replies: 3
- Views: 574
Multiple #IfWinNotActive Topic is solved
Hey everyone. Straight to the point. I am using a script that does not allow mouse clicks outside certain application(s), only inside application(s). That means that, once that application(s) ends, you can't click on anything. The only way to stop this is to hold F7 for 1.5 seconds. My script looks ...
- 19 Dec 2018, 09:45
- Forum: Ask for Help (v1)
- Topic: Send key only once after HotKey has been pressed Topic is solved
- Replies: 4
- Views: 2592
Re: Send key only once after HotKey has been pressed Topic is solved
I tested your script (and also added a $). Is this really the whole script? Because for me it makes no sense that it sends P continously, because there is no loop. Are you saying that you press AND release P, but it keeps sending P? Or are you saying you press AND hold P, and it keeps sending? The ...
- 19 Dec 2018, 08:46
- Forum: Ask for Help (v1)
- Topic: Send key only once after HotKey has been pressed Topic is solved
- Replies: 4
- Views: 2592
Re: Send key only once after HotKey has been pressed Topic is solved
$p:: ; $ prevents the key from triggering itself sleep, 100 Send, p KeyWait, p ; wait for the key to be released return For more keys you can use #UseHook a:: b:: sleep, 100 Send, %A_ThisHotkey% KeyWait, %A_ThisHotkey% return Hey GEV, thanks for your reply! Unfortunately, it is not working. I tried...
- 19 Dec 2018, 07:22
- Forum: Ask for Help (v1)
- Topic: Send key only once after HotKey has been pressed Topic is solved
- Replies: 4
- Views: 2592
Send key only once after HotKey has been pressed Topic is solved
Hey everybody. This is my code: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir...
- 09 Nov 2018, 16:39
- Forum: Ask for Help (v1)
- Topic: Mouse Move Left Send K, Mouse Move Left Send H Topic is solved
- Replies: 4
- Views: 1321
Re: Mouse Move Left Send K, Mouse Move Left Send H Topic is solved
I sometimes use this `magic` to push values an updating value to an array with 2 keys in a loop: xPosArr[ mod( a_index-1, 2 )+1 ] key 1 being the current value and key 2 being the previous value. Here it is applied to your question ( on line 12 ): 973c71077b906cc0c871413232a18e43 Hey TLM, pretty in...
- 09 Nov 2018, 12:59
- Forum: Ask for Help (v1)
- Topic: Mouse Move Left Send K, Mouse Move Left Send H Topic is solved
- Replies: 4
- Views: 1321
Re: Mouse Move Left Send K, Mouse Move Left Send H Topic is solved
Hallo, try: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consi...
- 09 Nov 2018, 05:51
- Forum: Ask for Help (v1)
- Topic: Mouse Move Left Send K, Mouse Move Left Send H Topic is solved
- Replies: 4
- Views: 1321
Mouse Move Left Send K, Mouse Move Left Send H Topic is solved
Here is the script: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures ...
- 01 Nov 2018, 05:39
- Forum: Ask for Help (v1)
- Topic: Making this awesome Google Translate Script work for DeepL Topic is solved
- Replies: 40
- Views: 12905
Re: Making this awesome Google Translate Script work for DeepL Topic is solved
Sorry for the late reply, but thank you very much swagfag for your helpful participation! Your way of dealing with translations is better than the other one. And fixes these two issues.
- 30 Oct 2018, 17:26
- Forum: Ask for Help (v1)
- Topic: Making this awesome Google Translate Script work for DeepL Topic is solved
- Replies: 40
- Views: 12905
Re: Making this awesome Google Translate Script work for DeepL Topic is solved
So its fairly simple on how to use the DeepL class version. The first thing is to grab the class and either save it as its own or just include inside your main script (might be easier within the main script). Then set up the new class via translate := new DeepLTranslator() which will turn the class...
- 30 Oct 2018, 11:33
- Forum: Ask for Help (v1)
- Topic: Making this awesome Google Translate Script work for DeepL Topic is solved
- Replies: 40
- Views: 12905
Re: Making this awesome Google Translate Script work for DeepL Topic is solved
I would take a look a this post https://autohotkey.com/boards/viewtopic.php?f=76&t=49683&p=238850&hilit=deepl#p238850 This has a good class for using deepl Thanks for the link buddy. I came across the topic a few times already. Looks very promising... I don't want to sound ridiculous here, but I do...
- 30 Oct 2018, 05:23
- Forum: Ask for Help (v1)
- Topic: Making this awesome Google Translate Script work for DeepL Topic is solved
- Replies: 40
- Views: 12905
Re: Making this awesome Google Translate Script work for DeepL Topic is solved
Oh men, looks like this is a bug with the new version of the site (?). You can "fix" this if you sign out of your account, then it will show the old one. Atleast for me.
- 27 Oct 2018, 04:26
- Forum: Ask for Help (v1)
- Topic: Making this awesome Google Translate Script work for DeepL Topic is solved
- Replies: 40
- Views: 12905
Making this awesome Google Translate Script work for DeepL Topic is solved
I came across the best Google Translate Script I found on the internet so far. It's very very easy to use. Just highlight any text, press F1 and Ctrl+V and you have what you need. But I literally just discovered DeepL, and in my opinion it is way better than Google Translate. You get better results....
- 24 Oct 2018, 15:45
- Forum: Ask for Help (v1)
- Topic: Two remap key scripts with delay Topic is solved
- Replies: 2
- Views: 936
Re: Two remap key scripts with delay Topic is solved
Sorry for the late response buddy. Thanks for your help!Rohwedder wrote: ↑22 Oct 2018, 08:37Hallo,
replace:by:Code: Select all
~RButton::Space
Code: Select all
~*Rbutton:: Sleep, 30 Send,{Blind}{Space DownR} Return ~*Rbutton Up::Send,{Blind}{Space Up}