Search found 16934 matches
- Today, 19:03
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 20
- Views: 1000
Re: Help With script. Topic is solved
I don’t care what the character’s name is. I am pointing out that the window title not matching exactly is the main possible reason the window doesn’t activate when you press the hotkey. What does it show when that window is open and you run the script below? MsgBox, % WinExist("Will-shot ahk_exe Do...
- Today, 17:07
- Forum: Scripts and Functions (v1)
- Topic: DragToScroll - updated
- Replies: 39
- Views: 12593
Re: DragToScroll - updated
I assume you mean v2.0.4 since there is no v2.4, and there would have to be a lot more changed than just what you requested. The whole script would have to be translated to v2.
- Today, 08:59
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 20
- Views: 1000
Re: Help With script. Topic is solved
Are you sure the title of that window is exactly Will-shot with that exact capitalization and a regular hyphen in it? I would also put only one space after the comma and before that title. It's also possible there are hidden characters in the title. It's best to copy the title directly from Window S...
- Today, 08:38
- Forum: Scripts and Functions (v2)
- Topic: Easy Window Dragging KDE style, corrected for multi monitor setup
- Replies: 4
- Views: 544
Re: Easy Window Dragging KDE style, corrected for multi monitor setup
@jidoohanbaiki — You are apparently attempting to run the script with AHK v1 this time. Put this at the top of your script so that the AHK launcher always uses v2 to run the script:
Code: Select all
#Requires AutoHotkey v2.0
- Today, 07:30
- Forum: Ask for Help (v1)
- Topic: PixelSearch
- Replies: 5
- Views: 401
Re: PixelSearch
But I have no IDEA how I could use this so that a color is searched for from the middle of the screen 50px in all directions I didn't say you would use that. I said it was an example of how you incorporate an mcode function into your hotkey script. You actually have to write the function to do what...
- Today, 06:10
- Forum: Ask for Help (v2)
- Topic: Is it possible to pass named parameters? e.g. create_GUI(name: "status_GUI", bgcolor: "blue")
- Replies: 4
- Views: 365
Re: Is it possible to pass named parameters? e.g. create_GUI(name: "status_GUI", bgcolor: "blue")
This is very close to what you said you are looking to do, and the order doesn't matter (the advantage of named parameters), as the second GUI shows: #Requires AutoHotkey v2.0 status_GUI := create_GUI({name_GUI: "status_GUI", text: "hello", bgcolor: "blue", opt: "x880 y900 NoActivate"}) other_GUI :=...
- Today, 03:06
- Forum: Gaming
- Topic: take window information
- Replies: 6
- Views: 321
Re: take window information
You could try using UIA , although I doubt it will work for a game’s chat window. If there is a log file the game keeps on your machine that includes chat history, you could monitor that. As a last resort, you might have to use OCR. There are several OCR libraries on the forum. I suppose since you a...
- Today, 02:52
- Forum: Ask for Help (v1)
- Topic: PixelSearch
- Replies: 5
- Views: 401
Re: PixelSearch
You could write a function in C which would be compiled into mcode (machine code) and called by your AHK script. The function would search the memory of a bitmap that is a copy of the screen area. It would be very fast. Here is an example of an mcode function acting on a bitmap.
- Yesterday, 22:22
- Forum: Gaming
- Topic: take window information
- Replies: 6
- Views: 321
Re: take window information
No, that means ControlGetText won’t work because they’re not using standard Windows controls, which isn’t surprising for a game window.
- Yesterday, 13:58
- Forum: Ask for Help (v1)
- Topic: PixelSearch
- Replies: 5
- Views: 401
Re: PixelSearch
PixelSearch, by default, searches from top left to top right and then goes down one line until the color is successfully found. Actually, unlike ImageSearch, the direction of search depends on whether X1 is greater than X2 and whether Y1 is greater than Y2. Is it possible to start the search from t...
- Yesterday, 12:16
- Forum: Ask for Help (v1)
- Topic: How can we go back to DEFAULT Coordmode mode?
- Replies: 3
- Views: 268
Re: How can we go back to DEFAULT Coordmode mode?
If you want to go back to whatever the previous coord mode was without knowing what it was, you can do this: PrevCoordModeMouse := A_CoordModeMouse CoordMode, Mouse ,Screen MouseGetPos, MX, MY ....SOME CODE...... CoordMode, Mouse, % PrevCoordModeMouse It doesn’t matter if you use a Return or not bec...
- Yesterday, 07:03
- Forum: Gaming
- Topic: take window information
- Replies: 6
- Views: 321
Re: take window information
What you should be checking with Window Spy is whether the chat area of the window has a ClassNN control name. If it does, then try getting the text from that control using ControlGetText.
- Yesterday, 06:10
- Forum: Gaming Help (v1)
- Topic: AHK way too slow, like completely unusable.
- Replies: 1
- Views: 91
Re: AHK way too slow, like completely unusable.
You should try a key remap instead: ]::toggle_1 := !toggle_1 #If WinActive("Roblox") && (toggle_1) u::w h::a j::s k::d #if [::ExitApp And you shouldn’t give up on v2. Go ahead and try translating the above to v2, looking at the v2 documentation . It will be a good exercise, and you can ask for help ...
- Yesterday, 03:06
- Forum: Ask for Help (v1)
- Topic: change color Topic is solved
- Replies: 3
- Views: 343
Re: change colorrr Topic is solved
Create a simple GUI that is invoked by a hotkey and displays nothing but a Picture control of the color grid image (cropped much tighter than the image you attached), a Button control that is set to Default so that it is selected when Enter is pressed (the button can be outside of the visible extent...
- Yesterday, 02:48
- Forum: Ask for Help (v2)
- Topic: How to pass variables into Gui's callback function and how to terminate another function within one function?
- Replies: 1
- Views: 146
Re: How to pass variables into Gui's callback function and how to terminate another function within one function?
Hello everyone. Could you please teach me with simple examples? First question: How to pass variables into Gui's callback function? Example: #Requires AutoHotkey v2.0 bp := 6 MyGui := Gui() MyGui.Add('Button', 'w100 h60', 'Go').OnEvent('Click', MyFunc.Bind(bp)) MyGui.Show MyFunc(val, *) { MsgBox 'T...
- Yesterday, 02:25
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 20
- Views: 1000
Re: Help With script. Topic is solved
and so on... i just want that after i press the F1, F2 or FX button the script press a hotkey on keyboard, like ~ or ` (because its near F1, F2), quick to press. But with the ressalve, that one F1 must not pass the turn (must note have the hotkey associated to pass the turn on the game, just select...
- 06 May 2024, 22:42
- Forum: Gaming Help (v1)
- Topic: Help With script. Topic is solved
- Replies: 20
- Views: 1000
Re: Help With script. Topic is solved
The closest I can come to figuring out what you want is to have a separate hotkey for activating each character’s window. Are you wanting the script to automatically identify the various character windows and create a set of hotkesy for activating each of them? I don’t know why you keep showing that...
- 06 May 2024, 17:50
- Forum: Ask for Help (v2)
- Topic: Send and the Emoji Panel
- Replies: 7
- Views: 435
Re: Send and the Emoji Panel
I am on Win10, so that is apparently the difference.
- 06 May 2024, 16:57
- Forum: Ask for Help (v2)
- Topic: Send and the Emoji Panel
- Replies: 7
- Views: 435
Re: Send and the Emoji Panel
Works for me.
- 06 May 2024, 09:56
- Forum: Scripts and Functions (v2)
- Topic: ADOSQL v6
- Replies: 19
- Views: 1656
Re: ADOSQL v6
the code that caused the error is line 18 in the code one above. I used the "same" code that hisrRB57 provided. hisrRB57’s code has 19 lines total in it, and line 18 is just a blank line followed by one other line of code, not anywhere close to the lines of code the error message you posted from yo...