Search found 2043 matches

by Xtra
15 Nov 2020, 20:56
Forum: Gaming
Topic: Help with toggling the shift key
Replies: 5
Views: 131

Re: Help with toggling the shift key

Code: Select all

PgDn::Send % GetKeyState("Shift") ? "{Shift up}" : "{Shift down}"
by Xtra
15 Nov 2020, 20:23
Forum: Ask For Help
Topic: Loop, Parse - Merge lines
Replies: 6
Views: 147

Re: Loop, Parse - Merge lines

Get_Letters() { Send ^c ; Copy marked lines ClipWait, 2 str := Trim(Clipboard) , first := [] , last := [] Loop, Parse, str, `n, `r { num := SubStr(A_LoopField, 1, InStr(A_LoopField, ":") - 1) char := SubStr(A_LoopField, InStr(A_LoopField, ":") + 1) (first[num] = "") ? (first[num] := char) : (last[n...
by Xtra
14 Nov 2020, 19:05
Forum: Scripts and Functions
Topic: ToGrayscale() : Converts GDI bitmap to Greyscale
Replies: 19
Views: 859

Re: ToGrayscale() : Converts GDI bitmap to Greyscale

@SKAN it will be interesting to see what you come up with. As always thanks for sharing. :thumbup:
by Xtra
14 Nov 2020, 19:00
Forum: Scripts and Functions
Topic: Gdip_GrayScale(pBitmap)
Replies: 5
Views: 299

Re: Gdip_GrayScale(pBitmap)

Is converting to greyscale using the machine code any faster than using a color matrix? How about using a color effect? Gdip_CreateEffect. This allows you to apply a color filter on the image that can desaturate the colours. Using a color matrix did not give the results i needed. Whether something ...
by Xtra
14 Nov 2020, 18:52
Forum: Scripts and Functions
Topic: Gdip_GrayScale(pBitmap)
Replies: 5
Views: 299

Re: Gdip_GrayScale(pBitmap)

BTW, why is mcode much larger for x64 than x86 ? :shock: I compiled your code with Pelles C and code size is less different. I used Option 3 when compiling for speed vs code size. I dont know the exact details why one is quite a bit larger than the other. reference: https://github.com/zxc010613/mco...
by Xtra
13 Nov 2020, 23:19
Forum: Scripts and Functions
Topic: ToGrayscale() : Converts GDI bitmap to Greyscale
Replies: 19
Views: 859

Re: ToGrayscale() : Converts GDI bitmap to Greyscale

SKAN wrote:
13 Nov 2020, 21:46
Ok. I will post a different version that does conversion with machine code.
@SKAN i did this a few months back and just posted it here:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=83208
by Xtra
13 Nov 2020, 23:12
Forum: Scripts and Functions
Topic: Gdip_GrayScale(pBitmap)
Replies: 5
Views: 299

Gdip_GrayScale(pBitmap)

20200919190415.png Grayscale done with machine code. Requires Gdip bitmap as input. Source based on: https://www.codeproject.com/Questions/327689/how-to-convert-coloured-image-to-grayscale-in-C-or See solution #2 We can do this with all integers. We can multiply the factors by 1024, then do the mat...
by Xtra
12 Nov 2020, 23:44
Forum: Gaming
Topic: Remapping for PES
Replies: 2
Views: 211

Re: Remapping for PES

Code: Select all

~a::changeKey := true
~a up::changeKey := false

#If (changeKey)
up::Numpad8
down::Numpad2
Left::Numpad4
Right::Numpad6
#If
by Xtra
12 Nov 2020, 23:32
Forum: Gaming
Topic: falcon4 BMS 4.34 communication
Replies: 1
Views: 254

Re: falcon4 BMS 4.34 communication

$1::Send, {T 6}4 ; press 1 to send TTTTTT4
or
$1::Send, TTTTTT4 ; press 1 to send TTTTTT4
by Xtra
12 Nov 2020, 23:00
Forum: Ask For Help
Topic: Cycle Script on CapsLock up Topic is solved
Replies: 6
Views: 111

Re: Cycle Script on CapsLock up Topic is solved

Toggle example:

Code: Select all

CapsLock & Down::
	if (myTEST := !myTEST)
	{
        MsgBox, 4128, myTest, Routine one, 1
	}
	else
	{
        MsgBox, 4128, myTest, Routine two, 1
	}
return
by Xtra
12 Nov 2020, 15:55
Forum: Gaming
Topic: Clicking random place inside a circle
Replies: 9
Views: 237

Re: Re: Clicking random place inside a circle

Possibly by using:
ImageSearch
PixelGetColor
PixelSearch

Think: how would a human know where your hero is?
by Xtra
12 Nov 2020, 14:19
Forum: Ask For Help
Topic: Wait for six-digit number Topic is solved
Replies: 4
Views: 92

Re: Wait for six-digit number Topic is solved

Example:

Code: Select all

EndKeys := "abcdefghijklmnopqrstuvwxyz ,./;'[]{}:"">?\|+_)(*&^%$#@!~``"

Loop
{
    Input, str, V L6 B, % EndKeys
	RegExMatch(str, "\d{6}", m)
	if (m)
		MsgBox, , 6 numbers entered!, % m
}
edit as needed
HTH
by Xtra
12 Nov 2020, 13:59
Forum: Gaming
Topic: Clicking random place inside a circle
Replies: 9
Views: 237

Re: Clicking random place inside a circle

autohotkey11 wrote:
12 Nov 2020, 12:19
Image Broken Link for safety
Until, cx*cx + cy*cy = Radius*Radius
by Xtra
11 Nov 2020, 15:26
Forum: Offtopic
Topic: « What's on your mind? »
Replies: 4491
Views: 1069739

Re: « What's on your mind? »

tidbit wrote:
11 Nov 2020, 15:22
getting my post count up
About time... :D
by Xtra
11 Nov 2020, 02:10
Forum: Ask For Help
Topic: Why is the script crashing???
Replies: 10
Views: 223

Re: Why is the script crashing???

Good to hear you got it sorted out.
starting/closing Gdip quite often
Normally this shouldnt be causing an issue.
by Xtra
11 Nov 2020, 01:33
Forum: Gaming
Topic: [Script] Auto Key Presser for World of Warcraft or other MMOs
Replies: 3
Views: 1879

Re: [Script] Auto Key Presser for World of Warcraft or other MMOs

Give this a try it should give you some ideas: #NoEnv #UseHook // is necessary if the script uses the Send command to send the keys that comprise the hotkey itself #CommentFlag // ; Change to C++ comment style #IfWinActive World of Warcraft // Works only in World of Warcraft. You can change the name...
by Xtra
10 Nov 2020, 01:45
Forum: Ask For Help
Topic: Why is the script crashing???
Replies: 10
Views: 223

Re: Why is the script crashing???

I would put the gdip startup in the auto-execute section (top of script) and use OnExit to shutdown gdip. Then remove all the gdip startup/shutdown in all functions .

You also are using Gdip_DisposeImage(pBitmap) in ResizeImage() when there is no pBitmap to dispose?
by Xtra
10 Nov 2020, 01:03
Forum: Ask For Help
Topic: Why is the script crashing???
Replies: 10
Views: 223

Re: Why is the script crashing???

Hint:
pToken := Gdip_Startup()
Gdip_Shutdown(pToken)
I've noticed that when I don't use ResConImg to resize the file (so only taking screenshots), the program doesn't crash.
When you call ResConImg() gdip is not started.

HTH

Go to advanced search