Search found 11 matches
- 01 Dec 2020, 08:22
- Forum: Ask For Help
- Topic: Is there anyway to make my Array smaller
- Replies: 1
- Views: 131
Is there anyway to make my Array smaller
Hi, I have written a script that presses {down} {Right} {Up} {Left} 50 times, distinctively. However, I build my loop by having this huge array. Is there anyway to keep a smaller array, yet does the same thing? #SingleInstance, Force SetBatchLines, -1 Arr:=["{Down}","{Down}","{Down}","{Down}","{Down...
- 24 Oct 2020, 07:44
- Forum: Ask For Help
- Topic: Insert other action when toggle loop is still on going
- Replies: 1
- Views: 48
Insert other action when toggle loop is still on going
Hi, I have "a" key bound to toggle loop to continues send "a" key every 300 millisecond, and another key bound to send "b" 5 times. What I wish to accomplish is when the loop that is sending "a" is ongoing, anytime I press "b" key, it will pause "a" and insert "bbbbb" in that ongoing string without ...
- 17 Oct 2020, 05:27
- Forum: Ask For Help
- Topic: Bind a key to toggle loop on/off
- Replies: 1
- Views: 91
Bind a key to toggle loop on/off
Hi, I have made a loop script to search for two images. When found, it will play bye.wav. How do I bind it to a key to toggle the loop on and off. Thanks you. CoordMode, Pixel, Screen Loop { ImageSearch, FoundX, FoundY, 1, 641, 354, 1025, *100 Talk.png if ErrorLevel = 0 { SoundPlay, bye.wav Sleep 20...
- 04 Apr 2020, 02:58
- Forum: Ask For Help
- Topic: Pause a timer loop without pausing the whole script
- Replies: 1
- Views: 206
Pause a timer loop without pausing the whole script
I have assigned a key to a perform a timer loop, that cycles through my Notepad, explorer and Powerpoint windows every 4 seconds. I hit the assigned toggle key again to pause. But the problem is that I have to wait for the function "Hit 4" to terminate before it completely stops. Is there a way to p...
- 10 Feb 2019, 02:09
- Forum: Ask For Help
- Topic: Retaining the original function of hotkey
- Replies: 1
- Views: 409
Retaining the original function of hotkey
Hi, I have set my Right, Left, Down, Up arrow keys as hotkey, but I also want to retain their original function. I have searched the forum to and found to add "~" if front of hotkey. So I add ~ infront of Right, Left, Up, Down, but it doesn't work. Below is my code #IfWinActive, WindowA Right:: Left...
- 02 Feb 2019, 09:14
- Forum: Ask For Help
- Topic: Inserting commands with a hotkey while settimer loop is ongoin
- Replies: 1
- Views: 378
Inserting commands with a hotkey while settimer loop is ongoin
I have created a hotkey (Delete) to initiate/stop a loop of pressing spacebar and right arrow alternatively and indefinitely. I have also created another hotkey (Insert) to do certain things that I want to do. When I hit hotkey (Insert) while the loop is ongoing, the commands under that hotkey does ...
- 21 Jan 2019, 13:18
- Forum: Ask For Help
- Topic: Need help detecting a key pressed while in loop
- Replies: 6
- Views: 838
Re: Need help detecting a key pressed while in loop
Thanks hellbent. But where should I put IfWinActive in the code, in the loop? or before the loop
- 21 Jan 2019, 10:19
- Forum: Ask For Help
- Topic: Need help detecting a key pressed while in loop
- Replies: 6
- Views: 838
Re: Need help detecting a key pressed while in loop
Thank you evilC. Thanks for the help and suggestion. However, is there other way to do this without binding the arrow keys as hotkeys, since I have other window running at same time, and those arrow keys needs to be used as it is while not effecting the Poet/Warrior windows. Thank you.
- 21 Jan 2019, 05:55
- Forum: Ask For Help
- Topic: Need help detecting a key pressed while in loop
- Replies: 6
- Views: 838
Need help detecting a key pressed while in loop
I am playing a game where I have to hit spacebar and direction arrow alternatively and repeatedly. Because of my limited coding experience, I was only able to create a code that hit space bar and ONE direction only (either Right, Left, Up or Down by changing it in the code). I am looking for an some...
- 20 Jan 2019, 05:01
- Forum: Ask For Help
- Topic: Detecting key pressed and change variable in loop
- Replies: 3
- Views: 895
Re: Detecting key pressed and change variable in loop
Thank you Rohwedder for helping. I tried your code and it works. However, since I have to use arrow key in other windows, binding the arrow keys will effect those keys in my other window. Is there another method that you don't have to bind the window keys, but detect them when pressed. Thank you. I ...
- 19 Jan 2019, 12:43
- Forum: Ask For Help
- Topic: Detecting key pressed and change variable in loop
- Replies: 3
- Views: 895
Detecting key pressed and change variable in loop
Hi, below the loop I have now. It presses {Space} and arrow key {Right} alternatively. I am looking for a way to modify the code slightly, so that it detects the arrow key I press while in the loop, and implement that arrow key I just pressed inside the loop without affecting {Space}. So when is goi...