Search found 2970 matches

by gregster
Today, 11:55
Forum: Ask For Help
Topic: Closing Window not working every time. Send !{F4}
Replies: 3
Views: 130

Re: Closing Window not working every time. Send !{F4}

The program(s) might run with elevated rights - try to run your script 'as admin' to check...
by gregster
Today, 11:22
Forum: Ask For Help
Topic: Script will not go away
Replies: 2
Views: 61

Re: Script will not go away

That has nothing to do with a still running AHK script, but this window has now a 'Alwaysontop' property as long as it exists (or you remove this property again). Either use AHK (or some other script language or program that allows that) again to toggle alwaysontop off, or just close and (re-open, i...
by gregster
Yesterday, 23:18
Forum: Ask For Help
Topic: KeyWait Fails with XButton1 and XButton2
Replies: 2
Views: 144

Re: KeyWait Fails with XButton1 and XButton2

So far, I can't reproduce it. It shows here 'short click' or 'long click', depending on how long I hold XButton1.
(Latest AHK version on Win10... well, I didn't run it as admin, but I don't think that's the reason)

Is this your only running and complete script ?
by gregster
Yesterday, 20:17
Forum: Ask For Help
Topic: 2 SetTimer -1 at same time, and SoundPlay, , 1
Replies: 3
Views: 148

Re: 2 SetTimer -1 at same time, and SoundPlay, , 1

Soundplay is a very simple command and certainly not ideally suited for things like this, but one possible and easy workaround might be to create a timer that calls Soundplay after a certain time, that means, the time that the sound file needs to run once... ;[...] SetTimer, TwinkleText, -1 gosub, ...
by gregster
Yesterday, 19:28
Forum: Ask For Help
Topic: RunDll32 spawing program PID that is immediatly discarded
Replies: 1
Views: 102

Re: RunDll32 spawing program PID that is immediatly discarded

Yes, you can't use the pid returned by the run command here because the network connections get opened in the explorer.exe process. So you might use other wintitle options, combining different criteria, if you like - although Network Connections as a title might be already sufficient. But anyway, le...
by gregster
Yesterday, 18:48
Forum: Ask For Help
Topic: code not running after I register a shell hook
Replies: 3
Views: 143

Re: code not running after I register a shell hook

I believe, your last question was already answered by tmplinshi in the parallel chinese topic: https://www.autohotkey.com/boards/viewtopic.php?f=27&t=68921&p=296776#p296776 To cut it short: this time, you made another part of your code unreachable (the part with the hook) by placing it below a retur...
by gregster
Yesterday, 18:06
Forum: Gaming
Topic: Hotkey Function
Replies: 1
Views: 74

Re: Hotkey Function

Welcome to the forum! I cant get this command "Hotkey,%taste_1%,Waschen, UserErrorlevel" working. If you want to create/define/modify a hotkey during script execution via the Hotkey command (in contrast to the more common label- :: -method), you have to make sure that the command gets executed at so...
by gregster
Yesterday, 15:53
Forum: Ask For Help
Topic: using TeraTerm with Cisco equipment
Replies: 8
Views: 166

Re: using TeraTerm with Cisco equipment

Please note that I didn't use single quotes ' , but backticks ( grave accents ), that means: ` , which is the standard AHK escape character and "which is at the upper left corner of most English keyboards": https://www.autohotkey.com/docs/commands/_EscapeChar.htm#Escape_Sequences The one you probabl...
by gregster
Yesterday, 11:42
Forum: Ask For Help
Topic: using TeraTerm with Cisco equipment
Replies: 8
Views: 166

Re: using TeraTerm with Cisco equipment

Hard to say from here, what will work on your special setup. If Send {Space} (separate line, not using text mode) doesn't work, perhaps try:

Code: Select all

^r::Send, {text}` `
; or:
^r::Send, {text} `
by gregster
Yesterday, 10:42
Forum: Ask For Help
Topic: using TeraTerm with Cisco equipment
Replies: 8
Views: 166

Re: using TeraTerm with Cisco equipment

For enter you can also try `n in text mode:

Code: Select all

^r::Send, {text}show version`n
(or `r or `r`n) Literal spaces should come out as spaces in text mode.
by gregster
Yesterday, 10:38
Forum: Ask For Help
Topic: using TeraTerm with Cisco equipment
Replies: 8
Views: 166

Re: using TeraTerm with Cisco equipment

Try separate send lines with separate modes:

Code: Select all

^r::
Send, {text}show version
Send, {enter}
return
by gregster
Yesterday, 10:03
Forum: Ask For Help
Topic: using TeraTerm with Cisco equipment
Replies: 8
Views: 166

Re: using TeraTerm with Cisco equipment

Try text mode (AHK v1.1.27+):

Code: Select all

^r::Send, {text}show version
by gregster
Yesterday, 01:56
Forum: Ask For Help
Topic: The same remap code at two key but different results
Replies: 4
Views: 141

Re: The same remap code at two key but different results

Well, unsurprisingly in the docs for Hotkeys: https://www.autohotkey.com/docs/Hotkeys.htm#Symbols :
~
When the hotkey fires, its key's native function will not be blocked (hidden from the system). [...]
by gregster
Yesterday, 01:52
Forum: Ask For Help
Topic: code not running after I register a shell hook
Replies: 3
Views: 143

Re: code not running after I register a shell hook

I don't think it has to do with the hook, but msgbox, TEST is unreachable code because of the return above it... just remove the return.
by gregster
Yesterday, 01:23
Forum: Ask For Help
Topic: The same remap code at two key but different results
Replies: 4
Views: 141

Re: The same remap code at two key but different results

If you press Numpad5 down , how should AHK know if you plan to also press Numpad6 or not? So, certainly it has to wait, until you release Numpad5 again, to send LButton or Rbutton. But if you don't mind that AHK sends LButton anyway, if you press Numpad5 down , then try: Numpad5::lbutton ~Numpad5 & ...
by gregster
Yesterday, 01:04
Forum: Ask For Help
Topic: Hot to use multiple key up and down as trigger?
Replies: 1
Views: 91

Re: Hot to use multiple key up and down as trigger?

Not sure, what you are saying about clicking. You want to hold Space & d (and Ctrl ), move your mouse yourself somewhere and click, and then release Space & d (and Ctrl ) ? Then perhaps: Space & d::Send {Ctrl down} Space & d up::Send {Ctrl up} Space::Space But if you use Space as a modifier like thi...
by gregster
15 Oct 2019, 23:45
Forum: Gaming
Topic: New to AHK Topic is solved
Replies: 2
Views: 188

Re: New to AHK Topic is solved

Welcome to the forum! After a very quick look, I don't see anything too obvious apart from CoordMode , Screen, Window at the top which isn't a thing - I would remove it: Screen is not a valid first parameter. (The constantly repeated CoordMode, Pixel, Window lines, on the other hand, are unnecessary...
by gregster
15 Oct 2019, 20:20
Forum: Ask For Help
Topic: Autohotkey doubles first letter of many words
Replies: 1
Views: 100

Re: Autohotkey doubles first letter of many words

all the affected words are in the script. In the auto-replacement text of hotstrings, I assume... well, you should show the script so that people can try to reproduce it. Not every program reacts alike to sent keys, some need specific send modes or key delays. Sometimes auto-complete can mess up th...
by gregster
15 Oct 2019, 15:08
Forum: Scripts and Functions
Topic: Upcoming Ahk2Exe Changes (2019)
Replies: 169
Views: 12510

Re: Upcoming Ahk2Exe Changes (2019)

My impression was always that compressing actually raised the likelihood of false positives (at least, back in the day), although I have no recent data to back this up.
by gregster
15 Oct 2019, 11:29
Forum: Ask For Help
Topic: How can i use HotString on Playstartion/Xbox??
Replies: 1
Views: 72

Re: How can i use HotString on Playstartion/Xbox??

AHK works only with the Windows operating system.

Go to advanced search