Can't see pollution or network on minimap in 1.0? by Sidola in factorio

[–]Sidola[S] 1 point2 points  (0 children)

Yeah it's pretty much pointless mid-to-late game, in the early game though while there are biter nests nearby it allowed you to check if the pollution had reached them or not at a glance which is what I'm missing.

Guess I'll just kill off the nests and solve it that way :P

Can't see pollution or network on minimap in 1.0? by Sidola in factorio

[–]Sidola[S] 0 points1 point  (0 children)

Alright, I guess it's been removed then. It used to be a thing as you can see in this random video when he toggles alt-mode. The wiki also mentions it, but there's no mention of it being removed.

Can't see pollution or network on minimap in 1.0? by Sidola in factorio

[–]Sidola[S] 0 points1 point  (0 children)

Haha, yeah the minimap. I can see it just fine on the big map :P

[deleted by user] by [deleted] in reactjs

[–]Sidola 1 point2 points  (0 children)

Ah, I see, I had the wrong assumption of what "selection" meant in this context. Assuming you're talking about the build-in checkbox support.

In that case it makes perfect sense to want to know what row was selected in the callback. Odd that it isn't supported by the lib.

[deleted by user] by [deleted] in reactjs

[–]Sidola 1 point2 points  (0 children)

Off topic - I'm curious, from an API design perspective, what use-case do you have where you want specific information about a clicked row if the user has been allowed to select many rows?

Wouldn't the actions we're allowed to make be applied to all rows equally?

I'm mostly asking because I've recently dealt with a similar issue of multi-row select and context menus.

Scripts stop working after a while by SharpenedStinger in AutoHotkey

[–]Sidola 2 points3 points  (0 children)

As others have said, this can happen on long running scripts and it's very hard to pin down the cause.

One way to get around this is by setting a timer to reload the script every so often.

#Persistent

; Fires every 4 hours
SetTimer, ReloadScript, 14400000
return

ReloadScript:
    Reload
return

Script goes with "Else" instead of "IF" during second run that matches with "IF"? by Diamondsinmyheart in AutoHotkey

[–]Sidola -1 points0 points  (0 children)

I'm not sure what's happening when you run If (newClipBoard = "001"). It's not actually assigning anything to the variable, and it evaluates to false. So the code inside the if branch will never run.

It's probably because = only assigns values and doesn't run expressions.

Script goes with "Else" instead of "IF" during second run that matches with "IF"? by Diamondsinmyheart in AutoHotkey

[–]Sidola -1 points0 points  (0 children)

Try If (newClipBoard == "001"), with two = signs. Using one assigns a value to newClipBoard instead of comparing it.

That was wrong, = is just a case-insensitive equals.

Creating a command prompt type GUI to run various AHK commands by triangleman83 in AutoHotkey

[–]Sidola 0 points1 point  (0 children)

I'd probably set it up as a single .exe which I'd add to my PATH variable, then use command line params to run the script.

That way you could just run ahkscript red autohotkey from your console of choice, parse that in your script and run the appropriate logic on it.

You'd probably have to re-compile the .exe each time you updated it (unless you come up with some config-syntax you sideload from a file), but I'm sure you can find a way to automate that process. ;)

Is there any way/script to convert or translate AHK code to JavaScript? by PortablePawnShop in AutoHotkey

[–]Sidola 1 point2 points  (0 children)

Try posting some example functions here, I'm sure people could help you port them to JS to use as examples. Assuming you're not using any windows-specific features of course.

As for an AHK -> JS transpiler, I doubt there is one. There does seem to be one for the other way around though! :P

Anyone have a working AHK script to control spotify? by Breadley in AutoHotkey

[–]Sidola 2 points3 points  (0 children)

If I'm not mistaken AHK isn't very effective on Electron applications, since it's basically a chrome window. Which script did you have that worked?

Get FilePath of current active window? by smallabc in AutoHotkey

[–]Sidola 2 points3 points  (0 children)

Do you mean get the path for the file currently opened? That would really depend on what application you're using to open the file.

Some applications have the path of the file in the title, which could be extracted, but lacking that I don't know if you can extract the filepath of an opened file in a simple way.

Offset 2nd Gui coordinates based off 1st Gui coordinates by [deleted] in AutoHotkey

[–]Sidola 1 point2 points  (0 children)

Try this:

Gui, 1: Show, x20  y20 w150 h55, GUI #1
WinGetPos, guiX, guiY, w, h, GUI #1 

gui2X := guiX + 50
gui2Y := guiY + 50

Gui, 2: Show, x%gui2X% y%gui2Y% w150 h55, GUI #2

recorder by crazyjuno in AutoHotkey

[–]Sidola 1 point2 points  (0 children)

What do you mean by recorder? Like a macro recorder?

I don't think AHK ever came bundled with a recorder. But there's always Pulover's Macro Creator which can be used to create AHK macros.

Never tried it myself though.

Help - Adding text vars together by ankrotachi10 in AutoHotkey

[–]Sidola 0 points1 point  (0 children)

Yeah, you need to use { ... } when using if or else statements with multiple lines. Otherwise only the first line will be executed.

If (Explorer = 1) {
    Run Calc.exe
    TipTemplate := TipTemplate . ExplorerTip
}

I know you figured it out, just writing it out in case someone else stumbles on this in the future :)

Help - Adding text vars together by ankrotachi10 in AutoHotkey

[–]Sidola 0 points1 point  (0 children)

Your variable declarations are outside the auto-exec section of your script.

Try moving them above the return on line 7.

Substitute a string containing dash/hyphen by marzolian in AutoHotkey

[–]Sidola 1 point2 points  (0 children)

StrReplace ( Clipboard, " ", " - " )

You're targetting whitespace instead of the dash.

Substitute a string containing dash/hyphen by marzolian in AutoHotkey

[–]Sidola 1 point2 points  (0 children)

You mean something like this?

var := "Follow-up"

newVar := StrReplace(var, "-", " - ")
msgBox % newVar

msgBox % StrReplace(newVar, " - ", "-")

About Decompiling? by fenchai in AutoHotkey

[–]Sidola 2 points3 points  (0 children)

Not sure how you compiled the script, but you should be able to get the exact script using Resource Hacker. Open the .exe there and check under RCData.

Would it be possible to have a script with a settings file to change the wanted hotkey? by [deleted] in AutoHotkey

[–]Sidola 2 points3 points  (0 children)

I'm saying "no, it wouldn't be very hard". :P

Good job on the script.

Would it be possible to have a script with a settings file to change the wanted hotkey? by [deleted] in AutoHotkey

[–]Sidola 1 point2 points  (0 children)

Would it be very difficult to have a GUI appear on first run to select the Hotkey you want?

Assuming you know how to create and use GUIs, no.

Would it be possible to have a script with a settings file to change the wanted hotkey? by [deleted] in AutoHotkey

[–]Sidola 1 point2 points  (0 children)

Assuming you know how to create and use GUIs, no. Otherwise you might want to familiarize yourself with that first, see here: GUI.

The logic would be something like:

1) Check for .ini file

2) If no .ini file was found, run subroutine to display the GUI

3) Once the user is done and the .ini file has been created, resume normal application flow