Search found 75 matches

by John
15 Apr 2016, 08:35
Forum: Ask For Help
Topic: well guys am new here and looking for some help please
Replies: 3
Views: 564

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...
by John
14 Apr 2016, 03:17
Forum: Gaming
Topic: Detect Steam overlay screen Topic is solved
Replies: 5
Views: 1463

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'...
by John
12 Apr 2016, 02:31
Forum: Gaming
Topic: Recoil Script Update
Replies: 6
Views: 1392

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...
by John
08 Apr 2016, 10:20
Forum: Gaming
Topic: Recoil Script Update
Replies: 6
Views: 1392

Re: Recoil Script Update

Simple dirty fix,

Code: Select all

~LButton::
~RButton::
while (GetKeyState(regexreplace("LButton","[~^!+]",""),"P") && GetKeyState(regexreplace("RButton","[~^!+]",""),"P")) {
by John
04 Mar 2016, 07:46
Forum: Ask For Help
Topic: AHK 1.1.23.1
Replies: 3
Views: 646

Re: AHK 1.1.23.1

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...
by John
03 Dec 2015, 08:26
Forum: Gaming
Topic: [LoL] Get data from champions selection ?
Replies: 5
Views: 2012

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...
by John
18 Nov 2015, 14:32
Forum: Gaming
Topic: need help concerning the "/"
Replies: 9
Views: 1545

Re: need help concerning the "/"

Code: Select all

a::send % "{enter}/all stuffstuff{enter}"
b::send, {ENTER}`/all stuffiestuff{ENTER}
by John
16 Nov 2015, 19:51
Forum: Ask For Help
Topic: Make a map editor for simple 2D games
Replies: 12
Views: 2674

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...
by John
16 Nov 2015, 18:08
Forum: Scripts and Functions
Topic: Img2Clicks, translate color values <n of img into mouse clicks
Replies: 1
Views: 978

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 ...
by John
16 Nov 2015, 12:48
Forum: Ask For Help
Topic: Make a map editor for simple 2D games
Replies: 12
Views: 2674

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...
by John
14 Nov 2015, 14:21
Forum: Ask For Help
Topic: make my mouse draw a picture i gave it?
Replies: 11
Views: 4434

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 ...
by John
14 Nov 2015, 13:39
Forum: Ask For Help
Topic: make my mouse draw a picture i gave it?
Replies: 11
Views: 4434

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 ...
by John
14 Nov 2015, 12:34
Forum: Ask For Help
Topic: make my mouse draw a picture i gave it?
Replies: 11
Views: 4434

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...
by John
13 Nov 2015, 20:15
Forum: Ask For Help
Topic: Find out and replicate how an application controls another
Replies: 1
Views: 582

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.
by John
13 Nov 2015, 20:07
Forum: Ask For Help
Topic: on the fly ocr
Replies: 1
Views: 451

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...

Go to advanced search