Search found 40 matches

by Tcharr
05 Feb 2020, 05:48
Forum: Ask For Help
Topic: Prevent modifier keys to be sent to application?
Replies: 12
Views: 864

Re: Prevent modifier keys to be sent to application?

What happens when you comment out

Code: Select all

Send {Alt Down}
?
by Tcharr
05 Feb 2020, 05:39
Forum: Gaming
Topic: Scan for text and click it once found Topic is solved
Replies: 10
Views: 1063

Re: Scan for text and click it once found Topic is solved

@joe7dust
Nice. Glad you got it working. :)
by Tcharr
04 Feb 2020, 06:15
Forum: Gaming
Topic: Scan for text and click it once found Topic is solved
Replies: 10
Views: 1063

Re: Scan for text and click it once found Topic is solved

@Tcharr I thought that using the client coordmode would allow me to specify coordinates to click anywhere on any monitor, but it seems that the windowspy values change depending on what window is active. I don't understand why that would be. Which coordmode should I be using to ensure that it doesn...
by Tcharr
04 Feb 2020, 05:37
Forum: Gaming
Topic: Scan for text and click it once found Topic is solved
Replies: 10
Views: 1063

Re: Scan for text and click it once found Topic is solved

joe7dust The first thing I see is that you are clicking at the same coordinates returned by ImageSearch. Note that (FoundX, FoundY) is the upper left corner of the image location. If your sample image has its origin in the middle of your target, then no problem there, but if your sample image has i...
by Tcharr
03 Feb 2020, 22:02
Forum: Gaming
Topic: Scan for text and click it once found Topic is solved
Replies: 10
Views: 1063

Re: Scan for text and click it once found Topic is solved

@joe7dust

I haven't worked much with browser windows, but my first check might be with Window Spy to try to identify the control.
by Tcharr
03 Feb 2020, 16:21
Forum: Ask For Help
Topic: Prevent modifier keys to be sent to application?
Replies: 12
Views: 864

Re: Prevent modifier keys to be sent to application?

What about the {Blind} option as described in the Send topic in Help? Blind always sends alt and does not really work. :( I was thinking about this section from the Send topic.. Modifier keys are restored differently to allow a Send to turn off a hotkey's modifiers even if the user is still physica...
by Tcharr
03 Feb 2020, 16:17
Forum: Ask For Help
Topic: Prevent modifier keys to be sent to application?
Replies: 12
Views: 864

Re: Prevent modifier keys to be sent to application?

What about the {Blind} option as described in the Send topic in Help? Blind always sends alt and does not really work. :( Have you tried... !WheelUp:: CoordMode, Mouse,Screen MouseGetPos, StartX, StartY MouseMove, 2000, 100 SendWheelUp() Sleep, 50 MouseMove, StartX, StartY Return SendWheelUp() send...
by Tcharr
03 Feb 2020, 15:35
Forum: Ask For Help
Topic: Prevent modifier keys to be sent to application?
Replies: 12
Views: 864

Re: Prevent modifier keys to be sent to application?

What about the {Blind} option as described in the Send topic in Help?
by Tcharr
03 Feb 2020, 15:32
Forum: Ask For Help
Topic: Can windows have 2 different IDs???!? Getmousepos not equal to WinActive
Replies: 6
Views: 571

Re: Can windows have 2 different IDs???!? Getmousepos not equal to WinActive

Are you talking about class, exe, or pid? What does Window Spy tell you about the window in question?
by Tcharr
03 Feb 2020, 13:37
Forum: Gaming
Topic: Scan for text and click it once found Topic is solved
Replies: 10
Views: 1063

Re: Scan for text and click it once found Topic is solved

Is it really text, or an image of text? Where does it appear?
by Tcharr
03 Feb 2020, 06:05
Forum: Ask For Help
Topic: Prevent modifier keys to be sent to application?
Replies: 12
Views: 864

Re: Prevent modifier keys to be sent to application?

I found the reason for your problem.
https://www.autohotkey.com/docs/misc/Remap.htm wrote:...a remapping never "releases" the modifier keys which are used to trigger it.
Now to find a solution...

Code: Select all

!WheelUp::
	send {Alt up} ;will this release the modifier used to call this function?
	send {WheelUp}
Return
by Tcharr
03 Feb 2020, 05:41
Forum: Gaming
Topic: Create a toggle in a hotkey?
Replies: 9
Views: 821

Re: Create a toggle in a hotkey?

I'm glad you got it sorted. :dance:
by Tcharr
03 Feb 2020, 05:39
Forum: Ask For Help
Topic: PixelSearch is not working right.
Replies: 2
Views: 232

Re: PixelSearch is not working right.

0x3A3539 is a very dark grey or light black, regardless of RGB vs. BGR. It is possible that one pixel of that color can be in the 250 x 145 pixel area you are searching. Can you post a screenshot of the area in question with and without your target?
by Tcharr
02 Feb 2020, 12:39
Forum: Ask For Help
Topic: Need Help Setting An On/Off Toggle For A Script I Have!
Replies: 2
Views: 255

Re: Need Help Setting An On/Off Toggle For A Script I Have!

The line I added at the top is common use. You can replace the #p with whichever hotkey you want. :) #p::Pause ; Pressing Win+P once will pause the script. Pressing it again will unpause. ~$LButton:: KeyWait LButton, T0.05 If ErrorLevel While GetKeyState("LButton", "P"){ Click Sleep 25 } return
by Tcharr
02 Feb 2020, 12:24
Forum: Gaming
Topic: Create a toggle in a hotkey?
Replies: 9
Views: 821

Re: Create a toggle in a hotkey?

@drondron1986

Maybe contained in a function?

Code: Select all

#If, WinActive("ahk_exe houdini.exe")

Toggle := 1


Xbutton::Send, % Toggle = 1 ? ( "Y", Toggle := Volume_Down ) : ( SpaceY(), Toggle := 1 )
Return

SpaceY()
{
	send {Space down}
	send {y down}
	sleep 30
	send {y up}
	send {Space up}
	return
}
by Tcharr
02 Feb 2020, 05:46
Forum: Gaming
Topic: Trying to make a loop for MHW:IB
Replies: 1
Views: 327

Re: Trying to make a loop for MHW:IB

Simple spam

Code: Select all

loop
{
	send {space down}
	sleep 2000
	send {space up}
}
More complex would be to use SearchPixel or ImageSearch to detect when cutscene is gone. Much better for random timed events, imo.
by Tcharr
01 Feb 2020, 15:42
Forum: Ask For Help
Topic: Normal mapping and key reuse
Replies: 2
Views: 249

Re: Normal mapping and key reuse

Does it work when you press F10 and 1?
by Tcharr
01 Feb 2020, 15:33
Forum: Ask For Help
Topic: Empty Space In Variable Name
Replies: 13
Views: 774

Re: Empty Space In Variable Name

You might approximate a space in a variable name by using an underscore instead.

Example:

Code: Select all

Gui 1: Add , Text, +cFFFFFF x10 y10 w100 h20 vMy_Variable gClick, MyTest
by Tcharr
01 Feb 2020, 15:22
Forum: Ask For Help
Topic: Iterative loop not working Topic is solved
Replies: 3
Views: 382

Re: Iterative loop not working Topic is solved

Have you tried

Code: Select all

Send % "comp-" . IDArr%A_index%
by Tcharr
01 Feb 2020, 14:53
Forum: Gaming
Topic: Auto-hide mouse cursor during gameplay Topic is solved
Replies: 8
Views: 1143

Re: Auto-hide mouse cursor during gameplay Topic is solved

@Evil-e

Input can be changed to a loop that checks for mouse movement. A_TimeIdle or one of its relatives would be useful, I think. :)

Anyway, I am glad you found a worthy solution to meet your needs. Fare well.

Go to advanced search