Search found 16 matches

by autopuff
09 Jan 2018, 01:58
Forum: Ask for Help (v1)
Topic: How to insert the number of looping at the end of every loop?
Replies: 2
Views: 532

Re: How to insert the number of looping at the end of every loop?

Loop { random, x, 1, 10000, iterations := a_index } until x = 845 MsgBox % "Found number 845 after : " iterations " iterations." ExitApp The iteration only shows in the message box, but I originally want to insert it into the text. So shouldn't there be something like clipboard = clipboard = %a_ind...
by autopuff
07 Jan 2018, 04:53
Forum: Ask for Help (v1)
Topic: How to insert the number of looping at the end of every loop?
Replies: 2
Views: 532

How to insert the number of looping at the end of every loop?

Hi all. I usually run my loop for infinite times through documents and sometimes I need to know how many loops are performed in cases of errors. Since the code constantly input contents to a word doc, I think it would be a good way to keep tracks if the code can print the number of loops already per...
by autopuff
16 Dec 2017, 01:05
Forum: Ask for Help (v1)
Topic: Additional keypad recommendations for more buttons? Topic is solved
Replies: 15
Views: 3203

Re: Additional keypad recommendations for more buttons? Topic is solved

Should do. I am in the process of moving and my G13 is packed away, but I am pretty certain that the G13 uses the same LGS software as G-series mice. I posted this on Reddit and people have confirmed that the same technique also works for the Razer software, so take your pick of devices. If not usi...
by autopuff
20 Nov 2017, 18:44
Forum: Ask for Help (v1)
Topic: Additional keypad recommendations for more buttons? Topic is solved
Replies: 15
Views: 3203

Re: Additional keypad recommendations for more buttons? Topic is solved

Hehe, even better... Open LGS, position your mouse over the + mark by the "Commands" panel on the left, then hit F1. It makes the first binding, then you click OK yourself and it remembers the position of the OK button and does the remaining 11 binds for you. You can then just drag keys F13-F12 to ...
by autopuff
20 Nov 2017, 16:50
Forum: Ask for Help (v1)
Topic: Using if while multiple conditions need to be met Topic is solved
Replies: 5
Views: 1182

Re: Using if while multiple conditions need to be met Topic is solved

We may need to see the final code to make sure nothing odd is going on. Do you use return in either of the If blocks? Do you use use an else statement? The final code that I simplified down to didn't use any elses. Nevermind. It works just fine now. This thing happened last time when I used Control...
by autopuff
20 Nov 2017, 16:06
Forum: Ask for Help (v1)
Topic: Additional keypad recommendations for more buttons? Topic is solved
Replies: 15
Views: 3203

Re: Additional keypad recommendations for more buttons? Topic is solved

@boiler it depends. If he is using it for a game that has bindings to CTRL, ALT and Shift, then that precludes the use of any modifiers. Also, many games will ignore modifier state, so using a hotkey for CTRL+SHIFT+W is still probably going to move the character forward. Sorry I haven't stated my c...
by autopuff
20 Nov 2017, 15:57
Forum: Ask for Help (v1)
Topic: Using if while multiple conditions need to be met Topic is solved
Replies: 5
Views: 1182

Re: Using if while multiple conditions need to be met Topic is solved

The only thing I'm seeing is "factor out" the Take the screenshot step. It's common to both second-level if's. If A = Window { If B!=Image To File ; this is != or not-equals { Several clicks to make B the image to file Sleep, 100 } Take the screenshot ; saves you a line here, and an else } else { S...
by autopuff
20 Nov 2017, 15:49
Forum: Ask for Help (v1)
Topic: Additional keypad recommendations for more buttons? Topic is solved
Replies: 15
Views: 3203

Re: Additional keypad recommendations for more buttons? Topic is solved

@evilC @boiler I don't use that for gaming either. I'm using a laptop so sometimes I just want extended keys to push while laying back in my chair rather than reach to all the function keys on the top of the keyboard. A keypad with keys that can be recognized as being different from the normal keybo...
by autopuff
20 Nov 2017, 02:40
Forum: Ask for Help (v1)
Topic: Additional keypad recommendations for more buttons? Topic is solved
Replies: 15
Views: 3203

Additional keypad recommendations for more buttons? Topic is solved

AHK is so useful that I almost used up all my keys on the keyboard. Instead of applying combinations of keys, I kinda want to buy an additional keypad/gameboard for more keys to use. I intended to buy the Logitech G13 gameboard but found out several posts saying that assigning AHK script to that dev...
by autopuff
19 Nov 2017, 03:29
Forum: Ask for Help (v1)
Topic: Using if while multiple conditions need to be met Topic is solved
Replies: 5
Views: 1182

Using if while multiple conditions need to be met Topic is solved

My code works fine but it's super redundant. I need to meet two conditions (A = Window AND B = Image to File) to take a screenshot, or it will do several clicks to meet the 2 conditions. The following is a simplified version of my code: if A = Window { if B= Image to File { Take the screenshot } els...
by autopuff
17 Nov 2017, 12:16
Forum: Ask for Help (v1)
Topic: How to click a button that has no ClassNN
Replies: 1
Views: 903

How to click a button that has no ClassNN

I'm pretty curious about this issue. I usually use the WinMove to locate the window to a specific place and then use MouseClick. However, the process is very redundant, especially when I need to click several buttons without ClassNN--cannot use ControlClick. So is there any more advanced way to solv...
by autopuff
14 Nov 2017, 22:41
Forum: Ask for Help (v1)
Topic: Auto-rename duplicate file name when saving a file
Replies: 1
Views: 666

Auto-rename duplicate file name when saving a file

I am working on a project where I need to save 2 screenshots from 1 original picture. I used the AHK to copy exactly the original picture's name as the new file names. Since I need to take 2 screenshots, I run into a situation where I need to change the duplicate file name to save the screenshot. An...
by autopuff
29 Oct 2017, 13:01
Forum: Ask for Help (v1)
Topic: How to make ABBYY screenshot reader work? Topic is solved
Replies: 4
Views: 1333

Re: How to make ABBYY screenshot reader work? Topic is solved

I question the use of SetControlDelay -1 . Reading the documentation for that command: Although a delay of -1 (no delay at all) is allowed, it is recommended that at least 0 be used, to increase confidence that the script will run correctly even when the CPU is under load. But I'm basically at a lo...
by autopuff
28 Oct 2017, 20:51
Forum: Ask for Help (v1)
Topic: How to make ABBYY screenshot reader work? Topic is solved
Replies: 4
Views: 1333

How to make ABBYY screenshot reader work? Topic is solved

I need ABBYY as part of my script to do the OCR. For the ease of explanation, I extracted that part out as the single script below: #SingleInstance, force F7:: WinActivate, ABBYY Screenshot Reader ahk_class #32770 Sleep, 100 SetControlDelay -1 ControlClick, Button1, ABBYY Screenshot Reader ahk_class...
by autopuff
24 Jul 2017, 15:53
Forum: Ask for Help (v1)
Topic: A loop within another loop? (script included)
Replies: 1
Views: 427

A loop within another loop? (script included)

I'm currently using AHK to automatically jump around 2 software, one of which is a audio player and the other one is a online service in the chrome. The problem is that the online one can sometimes stop and stuck, but the audio player keeps working, so I need to restart the whole thing again since I...
by autopuff
29 Jun 2017, 19:11
Forum: Ask for Help (v1)
Topic: Question with a loop script Topic is solved
Replies: 1
Views: 472

Question with a loop script Topic is solved

Question: I tried my best to write myscript based on several posts but it doesn't work. Could someone have a look at it and help me out? If you have a much better way to perform the loop, feel free to write it below. Thank you very much! Goal: 1. Press ctrl+shift+s 2. Wait for 1 minute 3. Press ctrl...

Go to advanced search