Search found 78 matches
- 26 Apr 2016, 07:19
- Forum: Gaming
- Topic: Help with specific game script
- Replies: 13
- Views: 3398
Re: Help with specific game script
Not a prebaked solution, but this should help you in future, run,notepad.exe ;run/use 100% ahk compatible program WinActivate, ahk_class Shell_TrayWnd ;deactivate it, so we can test if the next part works #ifwinactive, ahk_class Notepad ;target window being notepad p:: tooltip, hotkey activated ;vis...
- 18 Apr 2016, 08:38
- Forum: Ask For Help
- Topic: well guys am new here and looking for some help please
- Replies: 3
- Views: 864
Re: well guys am new here and looking for some help please
@John Isn't that a bit too complicated for such a simple goal? I would suggest something like this: r:: while GetKeyState("r", "P") { Send, {Click right} ; sends right click without moving the mouse Sleep, 700 ; delay in ms Send, {Click left} Sleep, 700 } Return Hope this helps. If you have any fur...
- 18 Apr 2016, 08:27
- Forum: Offtopic
- Topic: Why do you use AHK?
- Replies: 31
- Views: 10705
Re: Why do you use AHK?
I use it for almost everything. From simple to more complex scripts at work, related to finances and logistics or when scripting for personal use well I have ~3k scripts over 7 years on my home computer (huge part of that is what could be summed as stupid crap, but still). Simply put there is nothin...
- 15 Apr 2016, 08:35
- Forum: Ask For Help
- Topic: well guys am new here and looking for some help please
- Replies: 3
- Views: 864
Re: well guys am new here and looking for some help please
What you're after is alternating 'behavior', a switch -> toggle. A simple toggle works like this (plenty of other ones as well when you search with "ahk toggle"), toggle:=!toggle In simple english that's "put the opposite of the value of variable 'toggle' into toggle", if it's true then the opposite...
- 14 Apr 2016, 03:17
- Forum: Gaming
- Topic: Detect Steam overlay screen Topic is solved
- Replies: 5
- Views: 1895
Re: Detect Steam overlay screen Topic is solved
Been a while since I last dabbled with Steam and currently don't have access to Steam to test, but I remember tracking the overlay activity by checking "GameOverlayUI.exe" and it's memory usage. Not sure if that process still exists or if it's all integrated into the game nowadays (which it shouldn'...
- 12 Apr 2016, 02:31
- Forum: Gaming
- Topic: Recoil Script Update
- Replies: 6
- Views: 2169
Re: Recoil Script Update
The floor() is there to prevent rounding from calling the mouse_event with a float since that's what the outflow variables are for (collecting the 'subpixel' movements to be actuated in the next loop). So the proper/correct way would be, DllCall("mouse_event", "UInt", 0x01, "UInt", out_x >= 0 ? floo...
- 08 Apr 2016, 10:20
- Forum: Gaming
- Topic: Recoil Script Update
- Replies: 6
- Views: 2169
Re: Recoil Script Update
Simple dirty fix,
Code: Select all
~LButton::
~RButton::
while (GetKeyState(regexreplace("LButton","[~^!+]",""),"P") && GetKeyState(regexreplace("RButton","[~^!+]",""),"P")) {
- 04 Mar 2016, 07:46
- Forum: Ask For Help
- Topic: AHK 1.1.23.1 Topic is solved
- Replies: 3
- Views: 1040
Re: AHK 1.1.23.1 Topic is solved
Unless you're willing to put in some hours and more, just roll back to the previous version. If you're up for the task though, then try to isolate the issue, whether it's some majic that is 'added' (regardless of the script's contents) during compilation or maybe something to do with a specific comm...
- 03 Dec 2015, 08:26
- Forum: Gaming
- Topic: [LoL] Get data from champions selection ?
- Replies: 5
- Views: 3275
Re: [LoL] Get data from champions selection ?
With pure ahk, the only options you have are image recognition based ocr (viable since the name font was static), using one of the ocr libs for ahk or memory reading. Can't remember if LoL disliked memory reading/poking since it's been a while from the last time i checked. The better option would be...
- 18 Nov 2015, 14:32
- Forum: Gaming
- Topic: need help concerning the "/"
- Replies: 9
- Views: 2422
Re: need help concerning the "/"
Code: Select all
a::send % "{enter}/all stuffstuff{enter}"
b::send, {ENTER}`/all stuffiestuff{ENTER}
- 16 Nov 2015, 19:51
- Forum: Ask For Help
- Topic: Make a map editor for simple 2D games
- Replies: 12
- Views: 3794
Re: Make a map editor for simple 2D games
;~ #include, Gdip.ahk src_tilesheet := "PathAndObjects.png" tile_dim := 32 editor_w := tile_dim*10, editor_h := tile_dim*4 tile_arr := {} gdip := Gdip_Startup() bmp := Gdip_CreateBitmapFromFile(src_tilesheet) bmp_w := Gdip_GetImageWidth(bmp) bmp_h := Gdip_GetImageHeight(bmp) tileCount_x := bmp_w/ti...
- 16 Nov 2015, 18:08
- Forum: Scripts and Functions
- Topic: Img2Clicks, translate color values <n of img into mouse clicks
- Replies: 1
- Views: 1231
Img2Clicks, translate color values <n of img into mouse clicks
http://snag.gy/f7vY2.jpg Wrote a script to an ask for help topic (https://www.autohotkey.com/boards/viewtopic.php?f=5&t=10405), the original was pretty slow and crummy but, it was quite fun so I went on and finished the script using GDIP.ahk instead of gdi32 and runs pretty smoothly now. Basically ...
- 16 Nov 2015, 12:48
- Forum: Ask For Help
- Topic: Make a map editor for simple 2D games
- Replies: 12
- Views: 3794
Re: Make a map editor for simple 2D games
Here's a base for a 2d tilemap script. Has the basic functionality required and the rendering is quite ezpz, just screenshot and paste into paint :) You can use ahk to take a 'snapshot' from the gui and then save it as a file but, most options require a huge wall of text or externals/additional libs...
- 14 Nov 2015, 14:21
- Forum: Ask For Help
- Topic: make my mouse draw a picture i gave it?
- Replies: 12
- Views: 7318
Re: make my mouse draw a picture i gave it?
Just remove the "winactivate" and "winwait" stuff from the "Space" hotkey and it'll start clicking anywhere you like. Of course you'll have to be careful since the, now posessed mouse, will start clicking the image everywhere. To only use left click, replace the following.. if (value < 180 && value ...
- 14 Nov 2015, 13:39
- Forum: Ask For Help
- Topic: make my mouse draw a picture i gave it?
- Replies: 12
- Views: 7318
Re: make my mouse draw a picture i gave it?
It got 'stuck' because 'scanning' the image takes a while when using the method I did. You should give it another go with a smaller multiplier, like 0.2 or 0.1 (200x200 img took like a 30ish secs on my comp with multiplier of 1). You should change the "space" hotkey to something less obtrusive like ...
- 14 Nov 2015, 12:34
- Forum: Ask For Help
- Topic: make my mouse draw a picture i gave it?
- Replies: 12
- Views: 7318
Re: make my mouse draw a picture i gave it?
You're still being pretty obscure. Do you want to translate vectors into mousemoves or do a 1 to 1 trace from a bitmap into another application? If you want it to actually draw, mouse drags, then the only 'realistic' choice would be using a vector image because a bitmap would require ridiculous amou...
- 13 Nov 2015, 20:15
- Forum: Ask For Help
- Topic: Find out and replicate how an application controls another
- Replies: 1
- Views: 804
Re: Find out and replicate how an application controls another
I think it might be worth checking out ahkhid (https://autohotkey.com/board/topic/3801 ... functions/).
There is a lot a lot a lot of info on that topic as well which might give you a clue on how to proceed with your project.
There is a lot a lot a lot of info on that topic as well which might give you a clue on how to proceed with your project.
- 13 Nov 2015, 20:07
- Forum: Ask For Help
- Topic: on the fly ocr
- Replies: 1
- Views: 643
Re: on the fly ocr
Possible but, a bit unrealistic. Most ahk ocr scripts floating around work by 'transcribing' an image. I.e. load in the image, crunching on it a bit and then giving you the results (with quite a lot of errors). In other words it's a pretty heavy process and having that happen in real time, 60ish tim...