Search found 4561 matches

by boiler
24 May 2020, 09:01
Forum: Ask For Help
Topic: Script working outside of the program
Replies: 1
Views: 46

Re: Script working outside of the program

Use ControlSend, although it doesn't work with all windows. You'll need to identify the window's title so it sends it to the desired window.
by boiler
24 May 2020, 08:26
Forum: Forum Issues
Topic: AHK logo for some forum themes
Replies: 9
Views: 301

AHK logo for some forum themes

This is obviously not an important issue, but perhaps it's not too difficult to address. Some of the Digi themes don't show the AHK logo at the top, although the one simply named Digi does. The others instead show a "phpBB" logo. It would be nice to have the AHK logo when using these themes as well....
by boiler
24 May 2020, 07:56
Forum: Ask For Help
Topic: Allow code to run if there is a return on top
Replies: 4
Views: 75

Re: Allow code to run if there is a return on top

Just keep a */ above the return so you it will end the comment when you put a /* at the top, like tihs:

Code: Select all

MsgBox
*/
return

Esc::ExitApp
Then when you add the top part, the Esc:: is still active:

Code: Select all

Some new code

/*
MsgBox
*/
return

Esc::ExitApp
by boiler
24 May 2020, 07:11
Forum: Ask For Help
Topic: Auto Button Setup
Replies: 1
Views: 22

Re: Auto Button Setup

It sounds like you already have a script that clicks. Just replace the Click command (or whatever other method it's using to send a mouse click) with Send, a (to send the a key).
by boiler
24 May 2020, 07:07
Forum: Ask For Help
Topic: Allow code to run if there is a return on top
Replies: 4
Views: 75

Re: Allow code to run if there is a return on top

Don't place the hotkey at the top. You just need to put the code you want to execute in the auto-execute section, the end of which is marked by a return.

Code: Select all

MsgBox
return

Esc::ExitApp
by boiler
24 May 2020, 06:53
Forum: Ask For Help
Topic: Variable name inside a variable
Replies: 2
Views: 56

Re: Variable name inside a variable

Try this:

Code: Select all

WinCount := 1

; getting window name by pressing alt + a
!a::
WinGetTitle,%WinCount%,A ; Reason I used %WinCount%: to represent 1, I'll set it more and more 
MsgBox,,,% "Window name """ %WinCount% """ stored on var " WinCount
WinCount := WinCount + 1
by boiler
24 May 2020, 05:25
Forum: Ask For Help
Topic: AutoHotkey is affecting how long I must hold a mouse button
Replies: 3
Views: 90

Re: AutoHotkey is affecting how long I must hold a mouse button

You might want to check your CPU usage via Task Manager. Perhaps you have scripts running that are maxing out your CPU or at least significantly taxing it. When you say, “When I exit AutoHotkey,” does that mean by closing any actively running scripts? Are you killing any AHK processes via Task Manag...
by boiler
24 May 2020, 03:53
Forum: Ask For Help
Topic: Rename sequentially by shifting number series (file009.txt onwards)
Replies: 14
Views: 469

Re: Rename sequentially by shifting number series (file009.txt onwards)

So what’s the problem? The new code does exactly what it’s supposed to do according to your request, and your “true colors” video does not show the problem with files numbered 1-8 that you showed before (that the file that should have been 009 somehow became 011 instead). You attached that video in ...
by boiler
23 May 2020, 22:22
Forum: Ask For Help
Topic: AutoHotkey is affecting how long I must hold a mouse button
Replies: 3
Views: 90

Re: AutoHotkey is affecting how long I must hold a mouse button

You have hundreds of AHK scripts running at the same time?
by boiler
23 May 2020, 21:00
Forum: Ask For Help
Topic: sorting csv file based within range of rows.
Replies: 8
Views: 165

Re: sorting csv file based within range of rows.

It would be easier if you actually swapped positions based on score rather than assigning rank. That way you could bubble sort the entire list by score (yes, it temporarily mixes dates), then sort the whole list by date, which will leave it sorted by score within each date.
by boiler
23 May 2020, 20:43
Forum: Ask For Help
Topic: if and else. higher or lower than a certain amount
Replies: 10
Views: 257

Re: if and else. higher or lower than a certain amount

i thought that Else if (clipboard > 10) is the condition... It is the condition only for the block of code (enclosed by braces) of what immediately follows it. Then there is a block of code conditional on the else if. Then there is the last block of code that you didn’t precede by any condition, so...
by boiler
23 May 2020, 13:33
Forum: Ask For Help
Topic: if and else. higher or lower than a certain amount
Replies: 10
Views: 257

Re: untitled

No it's not set to do just that. It's set to copy what is highlighted when q is pressed, and if that amount is higher than 10 do one thing, and if it's not do something else, then it does a third thing no matter what because it's not conditional on anything (other than q being pressed). It's the exa...
by boiler
23 May 2020, 12:00
Forum: Ask For Help
Topic: OnExit() - Does the instruction work? Topic is solved
Replies: 4
Views: 102

Re: OnExit() - Does the instruction work? Topic is solved

He's not saying OnExit wouldn't trigger the MyExit function. He's saying that it has never been set up to do so because your code never executes the OnExit("MyExit",-1) line itself. That is because it's not in the auto-execute section or otherwise in the program flow. Put the OnExit line at the top ...
by boiler
23 May 2020, 11:32
Forum: Ask For Help
Topic: Rename sequentially by shifting number series (file009.txt onwards)
Replies: 14
Views: 469

Re: Rename sequentially by shifting number series (file009.txt onwards)

Ross , here is the corrected script for the one confirmed issue. It seems you must have had some other issue with your 1-8 files. FileSelectFile, FirstPath, 1,, Select first of the series of files to rename if !FirstPath { MsgBox, No file selected. Exiting app. ExitApp } SplitPath, FirstPath,, Path...
by boiler
23 May 2020, 10:28
Forum: Ask For Help
Topic: Rename sequentially by shifting number series (file009.txt onwards)
Replies: 14
Views: 469

Re: Rename sequentially by shifting number series (file009.txt onwards)

Thanks for that feedback, @just me.

@Ross, can you confirm that you really are having the issue with the 1-8 files or maybe you had some naming issue in that group the first time?
by boiler
23 May 2020, 09:48
Forum: Ask For Help
Topic: Rename sequentially by shifting number series (file009.txt onwards)
Replies: 14
Views: 469

Re: Rename sequentially by shifting number series (file009.txt onwards)

Thanks, @just me. I'll fix that up. I wonder what's happening with the other issue that I couldn't reproduce.
by boiler
23 May 2020, 09:27
Forum: Ask For Help
Topic: Rename sequentially by shifting number series (file009.txt onwards)
Replies: 14
Views: 469

Re: Rename sequentially by shifting number series (file009.txt onwards)

When I run it using your first scenario, I get the exact expected result: foto 1.txt foto 2.txt foto 3.txt foto 4.txt foto 006.txt foto 007.txt foto 008.txt foto 009.txt With the second scenario, I do need to fix up the leading zero issue on the 10 and 100 files. But it's strange that your first one...
by boiler
23 May 2020, 08:32
Forum: Ask For Help
Topic: if and else. higher or lower than a certain amount
Replies: 10
Views: 257

Re: untitled

When did you want the code to run that follows where you said "for some reason it keep running"? The way you have it, it's going to do the if part or the else part, then it will do the bottom part in either case. You can add a return before that like BoBo suggests to stop that code from running. How...
by boiler
22 May 2020, 18:23
Forum: Ask For Help
Topic: FileInstall usage
Replies: 9
Views: 250

Re: FileInstall usage

Sorry, I reversed the parameters of the FileAppend line. Should be:

Code: Select all

	FileAppend, % "FileInstall, " A_LoopFileFullPath ", " A_LoopFileName "`n", MyFileInstallScript.ahk

Go to advanced search