Search found 2609 matches

by swagfag
23 Mar 2018, 18:30
Forum: Ask For Help
Topic: How to differentiate between Modifier+Key and just Key.
Replies: 2
Views: 169

Re: How to differentiate between Modifier+Key and just Key.

i find that hard to believe

Code: Select all

+WheelUp::MsgBox, % "from " . A_ThisHotkey
z::ExitApp

Code: Select all

WheelUp::MsgBox, % "from " . A_ThisHotkey
z::ExitApp
run both as separate scripts and results as expected are produced
by swagfag
23 Mar 2018, 13:13
Forum: Ask For Help
Topic: Regex
Replies: 6
Views: 444

Re: Regex

https://autohotkey.com/docs/misc/RegEx-QuickRef.htm#Options The escape sequence \K is similar to a look-behind assertion because it causes any previously-matched characters to be omitted from the final matched string. For example, foo\Kbar matches "foobar" but reports that it has matched "bar". \b m...
by swagfag
23 Mar 2018, 04:32
Forum: Ask For Help
Topic: Pixelsearch problem?? Topic is solved
Replies: 10
Views: 1258

Re: Pixelsearch problem?? Topic is solved

i mean, just read the entire doc page on pixelsearch FDAA0C isnt a color, but an uninitialized variable default mode pixel search expects BGR color. also id suggest prefixing them with 0x default mode scans top to bottom, column by column from left to right, in that order also pixelsearching your en...
by swagfag
22 Mar 2018, 15:39
Forum: Gaming
Topic: Want a script that checks possibilities Topic is solved
Replies: 4
Views: 369

Re: Want a script that checks possibilities Topic is solved

what is this for? i dont understand the first part
by swagfag
22 Mar 2018, 11:37
Forum: Ask For Help
Topic: Block keystroke inputs from the user
Replies: 3
Views: 247

Re: Block keystroke inputs from the user

fromit wrote:The only available keystroke interrupts is with BlockInput On/Off in which case im losing data..

what??
by swagfag
21 Mar 2018, 13:26
Forum: Gaming
Topic: Need Help
Replies: 2
Views: 297

Re: Need Help

i dont get what your problem is

are you trying to find out when a script has been started, or how long its been running for or when its supposed to finish?

anyway, have a look at A_TickCount
by swagfag
21 Mar 2018, 06:14
Forum: Gaming
Topic: Read address value in bytes Topic is solved
Replies: 3
Views: 417

Re: Read address value in bytes Topic is solved

https://autohotkey.com/docs/commands/DllCall.htm#types

An unsigned character (UChar) can be used with functions that expect a BYTE.

so presumably using your lib

Code: Select all

yourObj.read(yourAddress, "UChar")
by swagfag
20 Mar 2018, 18:10
Forum: Ask For Help
Topic: Button on second click
Replies: 7
Views: 486

Re: Button on second click

#NoEnv #WinActivateForce #SingleInstance, Force #MaxThreadsPerHotkey 2 SendMode, Input SetBatchLines, -1 SetTitleMatchMode, 2 SetWorkingDir, %A_ScriptDir% class Robot { shouldSendAlternate := false sendAlternate(key := "") { RegExMatch(A_ThisHotkey, "(\w+)", thisHotkey) key := (this.shouldSendAlter...
by swagfag
20 Mar 2018, 16:57
Forum: Ask For Help
Topic: Remapping Functionality Topic is solved
Replies: 10
Views: 693

Re: Remapping Functionality Topic is solved

#NoEnv #WinActivateForce #SingleInstance, Force #MaxThreadsPerHotkey 2 SendMode, Input SetBatchLines, -1 SetTitleMatchMode, 2 SetWorkingDir, %A_ScriptDir% #If, hasDoubleClicked() *MButton::Send, {LButton Down} #If *MButton Up::Send, {LButton Up} Esc::ExitApp, 0 hasDoubleClicked(doubleClickThreshold...
by swagfag
20 Mar 2018, 13:15
Forum: Ask For Help
Topic: Is RANDOM command broken? Topic is solved
Replies: 7
Views: 554

Re: Is RANDOM command broken? Topic is solved

Odlanir wrote:@swagfag : Out of curiosity, how do you get the number 57177 ? Since I ran the Op code ( several time with 10.000.000 iterations ) and the max number for me is 57167.
its a miscalculation on my part: i subtracted (2^31 - 1) a bunch of times, instead of just 2^31
by swagfag
20 Mar 2018, 13:05
Forum: Ask For Help
Topic: Undo Back to a Save Point Topic is solved
Replies: 3
Views: 335

Re: Undo Back to a Save Point Topic is solved

i think youre better off explaining what the problem youre actually trying to solve is, what your endgame is, rather than trying to come up with some random solution that might or might not even be applicable at this point we can only guess what an acceptable solution could be you could for example ...
by swagfag
20 Mar 2018, 12:06
Forum: Ask For Help
Topic: Share screen on Skype Topic is solved
Replies: 5
Views: 545

Re: Share screen on Skype Topic is solved

you can try taking a look at the skype app with inspect https://msdn.microsoft.com/en-us/librar ... ng_inspect

and if it can detect any controls, invoke them using Acc.ahk
by swagfag
20 Mar 2018, 11:57
Forum: Ask For Help
Topic: Is RANDOM command broken? Topic is solved
Replies: 7
Views: 554

Re: Is RANDOM command broken? Topic is solved

random has an upper range of (2^31)-1. the number youre feeding to random exceeds this upper limit, overflows a bunch of times and what ends up happening is youre running random with (0, 57177)
by swagfag
20 Mar 2018, 07:05
Forum: Ask For Help
Topic: [PHOTOSHOP] ~ Shortcuts tend to lag or misbehave
Replies: 9
Views: 608

Re: [PHOTOSHOP] ~ Shortcuts tend to lag or misbehave

Code: Select all

d::Send, {Alt Down}
d Up::Send, {Alt Up}
by swagfag
19 Mar 2018, 15:03
Forum: Gaming
Topic: Ahk not intercepting keystrokes randomly
Replies: 5
Views: 444

Re: Ahk not intercepting keystrokes randomly

cant reproduce
by swagfag
14 Mar 2018, 17:41
Forum: Gaming
Topic: How to write this ImageSearch code best?
Replies: 5
Views: 463

Re: How to write this ImageSearch code best?

if youre gonna do 30 searches use GDIP_ImageSearch instead
by swagfag
06 Mar 2018, 08:38
Forum: Ask For Help
Topic: Loop thru Associative Array
Replies: 9
Views: 1227

Re: Loop thru Associative Array

man just post the code that isnt working so we can see whats wrong with it
by swagfag
14 Jul 2017, 11:25
Forum: Ask For Help
Topic: #include not working?
Replies: 6
Views: 548

Re: #include not working?

what exactly are you trying to achieve? i heavily doubt youre using include the way its meant to

Go to advanced search