Search found 46 matches

by densch
24 Jun 2019, 14:04
Forum: Ask For Help
Topic: controlsend not working in game
Replies: 8
Views: 904

Re: controlsend not working in game

oh my god, I finally made it work! (At least partially) the whole time I did what was written everywhere. use the windows title, it's ahk_class or it's ahk_exe. but when reading on what wintitle could be, i found something foolproof: PID! the corresponding process' id! sure, I would probably have to...
by densch
24 Jun 2019, 13:23
Forum: Ask For Help
Topic: controlsend not working in game
Replies: 8
Views: 904

Re: controlsend not working in game

nevermind, i just created a completely new empty script, put in hte example from the controlsend page. after modifying the title (it just doesnt say Untitled.) it worked. so controlsend is working. it just doesnt work with my game for whatever reason :-( from what I heard, controlsend doesnt seem to...
by densch
24 Jun 2019, 13:18
Forum: Ask For Help
Topic: controlsend not working in game
Replies: 8
Views: 904

Re: controlsend not working in game

that one was just a typo here in the forum.
i tried everything but it just wont work :-/


is there some alternative to controlsend?
i cant even get it to write in normal notepad :-(
by densch
23 Jun 2019, 12:58
Forum: Ask For Help
Topic: controlsend not working in game
Replies: 8
Views: 904

Re: controlsend not working in game

Did the test, literal nothing happened in all these cases.
as mentioned before, for whatever reason
not even
controlsent, Edit1, {x}, Untitled
does anything when notepad is open.

What am I doing so wrong? :-/

is there some alternative to controlsend?
by densch
23 Jun 2019, 04:56
Forum: Ask For Help
Topic: controlsend not working in game
Replies: 8
Views: 904

Re: controlsend not working in game

Okay, I just tried using controlsend with notepad, which is recommended around here a lot.
not even that seems to work :-(

I must be doing something fundamentally wrong and don't know what :-(
by densch
23 Jun 2019, 01:02
Forum: Ask For Help
Topic: controlsend not working in game
Replies: 8
Views: 904

controlsend not working in game

Hey, I am playing some old game on this super nintendo emulator (ZSNES on this list is the used emulator: https://romsmania.cc/emulators/super-nintendo) now i have a script with Send commands and co that works great. but I wanted to use controlsend so I dont have to have the game window open at all ...
by densch
22 Jun 2019, 12:55
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 951

Re: how to measure time between button down and button up?

how do I use controlsend without knowing class_nn?
What's the syntax, can you please give me an example? (I want to press down arrow in that inactive window)
by densch
21 Jun 2019, 13:48
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 951

Re: how to measure time between button down and button up?

My dear friends, I have a question bulding up on the above things: the program works as intended. but it would be even greater if this could work in the background as well. so I wouldn't have to have the window at the front and could rather do other stuff. either the window not having focus or being...
by densch
20 Jun 2019, 14:55
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 951

Re: how to measure time between button down and button up?

good to know, even though that's some weird syntax.

now it finally does the job perfectly.

Thanks again to everyone! :-)
by densch
20 Jun 2019, 14:22
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 951

Re: how to measure time between button down and button up?

sorry but I have yet another question: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_Sc...
by densch
20 Jun 2019, 14:02
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 951

Re: how to measure time between button down and button up?

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starti...
by densch
20 Jun 2019, 13:54
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 951

Re: how to measure time between button down and button up?

Next try: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consiste...
by densch
20 Jun 2019, 13:34
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 951

Re: how to measure time between button down and button up?

okay, found the issue. a single empty space behind the Up somehow rendered it unusable (who the f*ck made that convention?). anyways the new code is: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common erro...
by densch
20 Jun 2019, 13:28
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 951

Re: how to measure time between button down and button up?

Hey I jsut wrote this code. but it told me that Up is an invalid hotkey. how do I refer to he up arrow key then? and do i understand it right that the b hotkey for example triggers upon presiing down the b button? and doesnt care about if b is released? so only the down event counts? #NoEnv ; Recomm...
by densch
20 Jun 2019, 12:48
Forum: Ask For Help
Topic: simple for number loop
Replies: 3
Views: 242

Re: simple for number loop

yeah, you got it. the same concept as if I wanted to go through a 2 layer array like {{1,2}{3,4}} I'll try your concept how it work. and that A_Index always just refers to the current index of the innermost loop? let's say i wanted i and j to go from 100 to 400 instead. sur I could change the things...
by densch
20 Jun 2019, 12:30
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 951

Re: how to measure time between button down and button up?

really nobody any idea how to catch a button down or button up event?
by densch
20 Jun 2019, 10:14
Forum: Ask For Help
Topic: simple for number loop
Replies: 3
Views: 242

simple for number loop

in other programm languages there is a construct like "for (i=0 till i=5)" or something like that. a for loop that does the for loop for values i=0, i=1,...,i=4,i=5. is there an equivalent thingie in autohotkey? saw the for page but it talsk about objects and stuff which confuses me :-/ the backgrou...
by densch
20 Jun 2019, 06:34
Forum: Ask For Help
Topic: Detect colors similar to another color?
Replies: 13
Views: 1079

Re: Detect colors similar to another color?

okay, color detection works for now. despite the pixelgetcolor documentation specifing bgr, it actually uses rgb. had to use some color hex display site to verify which order of the 3 parts was the right one. finally got the color values of the needed color too. with tolerance=25, I really only get ...
by densch
20 Jun 2019, 05:54
Forum: Ask For Help
Topic: Detect colors similar to another color?
Replies: 13
Views: 1079

Re: Detect colors similar to another color?

oh, okay. I was somehow under the impression since
/*
*/
does multiline comments, that // should do single line ones.


tried it, at least it does it's usual stuff again and not give me error.
now I'll be on my quest until the next issue arises :-)

Go to advanced search