Search found 27 matches

by Syrup
30 Aug 2023, 08:37
Forum: Ask for Help (v1)
Topic: Prevent Chrome window from being closed
Replies: 1
Views: 171

Prevent Chrome window from being closed

Hello. I'm trying to find a way to prevent a Chrome window from being closed, at least via the "X" icon at the top-right corner. Searching around there are a few popular scripts that can "disable" the close button of certain programs, but unfortunately Chrome is one of those where they won't work. M...
by Syrup
22 Aug 2023, 10:17
Forum: Ask for Help (v1)
Topic: LibreOfficeCalc Basic read/write script
Replies: 0
Views: 201

LibreOfficeCalc Basic read/write script

Hello. I've been browsing for hours trying to find a way to directly "write" or read values (mostly write) to a LibreOffice Calc sheet. It seems that, while a handful of scripts seem to do this, they all share the same initial flaw: they all, without exception, seem to require the creation of a new ...
by Syrup
21 Aug 2023, 18:07
Forum: Ask for Help (v1)
Topic: GUI - Referencing Edit boxes content
Replies: 1
Views: 210

GUI - Referencing Edit boxes content

I'm creating a GUI with some edit boxes and stuff. Long story short, I need to write a string in an Edit box, then either automatically upon input (upon writing the string), or after pressing a separate Button, I want the content of the Edit box to be pasted somewhere. Problem is, I can't seem to be...
by Syrup
14 Aug 2023, 12:46
Forum: Ask for Help (v1)
Topic: Wildcards in If statement for WindowTitle Topic is solved
Replies: 4
Views: 540

Re: Wildcards in If statement for WindowTitle Topic is solved

Script is really nice, yea, thanks. It does open up to a better alternative than what I originally had in mind, which I tried to adjust it to my specific situation. The original idea was just to check if the window was there, but now I kinda wanna push it a bit further lol So here are the adjustment...
by Syrup
11 Aug 2023, 09:48
Forum: Ask for Help (v1)
Topic: Wildcards in If statement for WindowTitle Topic is solved
Replies: 4
Views: 540

Wildcards in If statement for WindowTitle Topic is solved

Hello. I'm trying to create a way to "detect" if the current tab in Chrome is the one where the script is supposed to run (and if so, the script runs; if not, the script terminates). I managed to create this bit of code: WinGetTitle, currentTab, A If (currentTab = "New Tab - Google Chrome") { MsgBox...
by Syrup
08 Aug 2023, 08:14
Forum: Ask for Help (v1)
Topic: ControlClick not working Topic is solved
Replies: 3
Views: 385

Re: ControlClick not working Topic is solved

Don't even know what to say in these situations lol
Yea of course that works. I guess I misinterpreted the meaning of what it would do if the window wasn't specified (I assumed when left blank it would just perform the action on whatever was the active window on my screen). Thanks ^^
by Syrup
08 Aug 2023, 02:31
Forum: Ask for Help (v1)
Topic: ControlClick not working Topic is solved
Replies: 3
Views: 385

ControlClick not working Topic is solved

\:: SetControlDelay -1 ControlClick, x500 y500,,,R,1,,, Return Esc::ExitApp I must have tried every possible variation of the command, but yea...somehow I can't get it to work. Ideally I wanted it to double-click with Left, but I ended up using single click with Right to "debug" and at least see if...
by Syrup
02 Sep 2022, 10:35
Forum: Ask for Help (v1)
Topic: Any kind of "feedback" system?
Replies: 5
Views: 859

Re: Any kind of "feedback" system?

Second reply wasn't me lol Anyway, the method via copy-check clipboard does what I need, so thanks. I'm trying to figure out how to do this now: if the clipboard doesn't have what I want it to have, then display a message box and stop the script (leave the message box on, though). I tried the follow...
by Syrup
29 Aug 2022, 13:17
Forum: Ask for Help (v1)
Topic: Any kind of "feedback" system?
Replies: 5
Views: 859

Any kind of "feedback" system?

Hello. I'm wondering if there is any way to have some sort of "feedback" in an AHK script. What I'm looking for is something like this: at one point during a script's execution, the script "gets" a certain value (for example, a text string copied to the Clipboard via the script itself), and then if ...
by Syrup
04 Dec 2021, 01:52
Forum: Ask for Help (v1)
Topic: Can ahk find "image coordinates" ?
Replies: 1
Views: 372

Can ahk find "image coordinates" ?

I am aware that ahk can find the screen coordinates (the mouse position, in X;Y), but is there a way of finding the "relative coordinates" of an image? For example, when you open a picture with Microsoft Paint you can read the X;Y coordinates of the image (the top-left pixel is 0;0), regardless of t...
by Syrup
30 Nov 2021, 00:09
Forum: Ask for Help (v1)
Topic: Excel - Auto-move to next cell after input
Replies: 2
Views: 408

Re: Excel - Auto-move to next cell after input

For sure only one letter or digit. If cell is not empty it can (needs-to) be overwritten (I can wipe it clean manually if needed, but ideally it would just overwrite previous content).
by Syrup
29 Nov 2021, 15:24
Forum: Ask for Help (v1)
Topic: Excel - Auto-move to next cell after input
Replies: 2
Views: 408

Excel - Auto-move to next cell after input

Hello. My goal is to have a script that will automatically move to the next cell in an excel spreadsheet after inputting any key in a specific cell range. So for most of the spreadsheet I don't want the ahk script to do anything, but for a limited range of cells (about a dozen) I'd like a script tha...
by Syrup
23 Sep 2021, 10:41
Forum: Gaming Help (v1)
Topic: Cannot recognize starting key for script
Replies: 3
Views: 705

Re: Cannot recognize starting key for script

I know it's a "game problem", not an "ahk problem"...
The question is, is there a way to bypass this? A different way of coding, of activating the script, or anything of the sort?
by Syrup
22 Sep 2021, 04:56
Forum: Gaming Help (v1)
Topic: Cannot recognize starting key for script
Replies: 3
Views: 705

Cannot recognize starting key for script

Hello. With a certain game I'm playing, certain keys seem to never activate the script. The script itself works; I know this because other keys will in fact trigger the script properly. So, example: XButton1:: { Send, W } Return Esc::ExitApp 1:: { Send, W } Return Esc::ExitApp The first script works...
by Syrup
02 Jun 2021, 11:47
Forum: Gaming Help (v1)
Topic: ControlSend with NumpadAdd
Replies: 6
Views: 962

Re: ControlSend with NumpadAdd

Already tried the .exe admin, game is already windowed, and have now tried the delay. Unfortunately it doesn't seem to fix the issue.
by Syrup
02 Jun 2021, 11:34
Forum: Gaming Help (v1)
Topic: ControlSend with NumpadAdd
Replies: 6
Views: 962

Re: ControlSend with NumpadAdd

So, I tried with the following, but it oddly seems to work only occasionally. I'm not sure what prompts it to work sometimes, but not other times. \:: Loop { Sleep, 300 ControlSend,ahk_parent, {NumpadAdd}, ahk_class [application name] Sleep, 500 ControlSend,ahk_parent, {NumpadAdd}, ahk_class [applic...
by Syrup
02 Jun 2021, 08:30
Forum: Gaming Help (v1)
Topic: ControlSend with NumpadAdd
Replies: 6
Views: 962

ControlSend with NumpadAdd

Title says it. I'm experimenting with ControlSend a bit, but it seems not to work with certain keys. One of them is the NumpadAdd key. The format should be correct, because when I replace "NumpadAdd" with another key, for example "g", the script works as intended. It also works just fine when I use ...
by Syrup
27 Mar 2021, 20:16
Forum: Ask for Help (v1)
Topic: GetPos from first script, use it in the second one
Replies: 2
Views: 210

Re: GetPos from first script, use it in the second one

-----------
Nevermind what I wrote before (if someone read); it works now, thanks :p
by Syrup
27 Mar 2021, 17:55
Forum: Ask for Help (v1)
Topic: GetPos from first script, use it in the second one
Replies: 2
Views: 210

GetPos from first script, use it in the second one

Hello. I need to make a two-parts script. I need to use the first part always, but I don't always want to trigger the second part (I only want it triggered if a certain condition is met, and I manually check that condition before "giving it the go" with a second input on my part). The second part of...
by Syrup
19 Mar 2021, 10:12
Forum: Ask for Help (v1)
Topic: "Find a picture" and click accordingly
Replies: 1
Views: 149

"Find a picture" and click accordingly

Hello. I'm wondering if there is some kind of function where the program can "check if a picture is on-screen" (for example, say, an enemy sprite on-screen), and, if such image is detected, then play a certain set of actions accordingly. If possible, then, I'd appreciate it if someone could point me...

Go to advanced search