Improve this AHK

Discuss Median XL!
MedianUV
Jungle Hunter
29 | 4
I think it would be best if you could decide whether it has password or not when using up mode.
I might not want other people to be able to join my private Nihlathak/Cow for friends runs :D


~~~~
Try it now.
I think 'up' mode will include static defined passwords.
Worked for me.
User avatar
Willshaper
Djinn
503 | 29
Common Love Badge
Earned over 20 cookies
Great Supporter Badge
Donated 5 times
Common Guide Badge
Created a complete character guide
MedianUV wrote:
I think it would be best if you could decide whether it has password or not when using up mode.
I might not want other people to be able to join my private Nihlathak/Cow for friends runs :D


~~~~
Try it now.
I think 'up' mode will include static defined passwords.
Worked for me.


Works for me now :D Thanks!

https://i.imgur.com/Zogtmzt.jpg
User avatar
Willshaper
Djinn
503 | 29
Common Love Badge
Earned over 20 cookies
Great Supporter Badge
Donated 5 times
Common Guide Badge
Created a complete character guide
Bug report:

Issue:

Changing your hotkeys will leave both the old and the new one active. This can be done many times in a row, resulting in multiple combinations triggering the same hotkey.

How to reproduce:

Launch the Script, change your hotkey for either script function and press "Update". Both the new and old hotkey will now be active.

How to temp fix:

Manually reload the AHK script after pressing "Update". This will leave only the newest hotkey active.
User avatar
ryunp
Lava Lord
94 | 47
Common Popularity Badge
Has a thread with over 10.000 views
Common Love Badge
Earned over 20 cookies
Common Guide Badge
Created a complete character guide
Common Patron Badge
Patreon Contributor
Common Contribution Badge
Has collaborated to our forums, realms or mod
Great to see others learning/utilizing AHK!

MedianUV wrote:
ShadowDawn wrote:Wanted to know if you know how to make the "up" button say "+1" instead.

That was my original idea.
Stopped dead in my tracks when it gave me that error

+1_TT := "Increase game name nu... would be an illegal variable name. You would need to devise a way to identify the buttons when they are clicked without using their contents. It can get complicated, just know that there is a gui control option parameter to specify the callback function (gFunctionOrLabelNameHere).


Here are some more observations/tips that may be helpful:

Underlying Mechanics

System IO - The UI code is constantly creating and deleting a file during program usage. This is unnecessary since variables can hold the information in memory while the program is running.
Compatability - There are Hard-coded coordinates specifying game locations. This prevents anyone with a different resolution from using the program. This has no easy solution, sadly, but is something to think about.

AHK Specific Insight

String Literals (= vs :=)
► Assignment Operators and Literals

Argument Passing (builtin commands and functions)
► Parameters And Literals

Literals and Argument Usage
► Somewhat Less Abstract Example

Code Organization
► DRY KISS


Have fun, and let me know if you have any questions!
MedianUV
Jungle Hunter
29 | 4
Aaahh

Now this is refreshing!

Thank you for the bug report and detailed code write up friends
I'll make some popcorn later and have a look!

:D :D :D :D :D
i love this shit, dont even know why
User avatar
Aero
Madawc
6835 | 228
Great Posting Badge
Posted over 2.500 messages
Great Popularity Badge
Has a thread with over 50.000 views
Great Love Badge
Earned over 100 cookies
Great Supporter Badge
Donated 5 times
Common Showcase Badge
Median XL Broadcaster
Great Guide Badge
Created 3 complete character guides
Common Contribution Badge
Has collaborated to our forums, realms or mod
What would this be used for besides multilogging to fill a game?
User avatar
Willshaper
Djinn
503 | 29
Common Love Badge
Earned over 20 cookies
Great Supporter Badge
Donated 5 times
Common Guide Badge
Created a complete character guide
L H wrote:What would this be used for besides multilogging to fill a game?


I use this script for when running specific ubers over and over.

Gotta run Nihlathak 50 times?

Put name "Nihlathak" and it will auto up it to "Nihlathak-1" > "Nihlathak-2" etc by itself whenever you press your hotkey.

Very useful.