Search found 16996 matches
- Today, 20:51
- Forum: Ask for Help (v1)
- Topic: The window doesnt fit in the screen
- Replies: 1
- Views: 24
Re: The window doesnt fit in the screen
@DRS -- Please put [code][/code] tags around your code when posting a script on the forum. And please ask questions in "Ask for Help" (where this thread was moved to), not in "Scripts and Functions" which is for sharing working scripts, not for getting help with scripts.
- Today, 15:26
- Forum: Ask for Help (v2)
- Topic: Hotkeys to switch betwen labels v2 Topic is solved
- Replies: 7
- Views: 303
Re: Hotkeys to switch betwen labels v2 Topic is solved
Becuase i am runing a long script and what i need is that, based in some events, go directly to a label in particular. As Seven0528 mentioned, you can do this without labels, and you should. You could what you described by having the code in a series of functions, and you just call the function tha...
- Today, 12:37
- Forum: Ask for Help (v2)
- Topic: Send menu item to other function?
- Replies: 5
- Views: 164
Re: Send menu item to other function?
#SingleInstance #Requires AutoHotkey v2+ PrinterToolMenu() PrinterToolMenu(*) { Switches := " ( /e display printing preferences /ge enum per machine printer connections /k print test page to specified printer /o display printer queue view /p display printer properties /s display server properties /...
- Today, 12:18
- Forum: Ask for Help (v2)
- Topic: Script wanted
- Replies: 7
- Views: 292
Re: Script wanted
yes i mean others cant close it . hide it from sys tray. and can i set a shortcut key to start or stop this script? thank you for your response I agree that this isn't a subject we will be discussing here. This is what could be used to create malware (no matter what your intentions are for it) -- h...
- Today, 08:48
- Forum: Ask for Help (v2)
- Topic: Need help with script to send keys :(
- Replies: 5
- Views: 226
Re: Need help with script to send keys :(
Some applications just don't respond to virtual keypresses. You could try running the script as administrator or otherwise address UAC . I'm not a gamer, but since you brought it up... I don't see the distinction between playing against the computer and other humans. If you artificially are able gai...
- Today, 08:41
- Forum: Ask for Help (v2)
- Topic: Script wanted
- Replies: 7
- Views: 292
Re: Script wanted
Can i hide or prevent this scrips from closing or can i protect is closing with password I don't know what this means. You mean so others can't close it? For what purpose? its exe is not working You probably tried to compile it with the wrong AHK binary -- v1 instead of v2. AHK file works only when...
- Today, 07:24
- Forum: Ask for Help (v2)
- Topic: Cant figure out how to make coordmode work at all Topic is solved
- Replies: 3
- Views: 154
Re: Cant figure out how to make coordmode work at all Topic is solved
In v2, expressions are used throughout. In expressions, literal strings must be quoted. If you don't use quotes, it thinks you are trying to use variables named Mouse and Screen.
- Today, 07:21
- Forum: Ask for Help (v2)
- Topic: Script wanted
- Replies: 7
- Views: 292
Re: Script wanted
Code: Select all
#Requires AutoHotkey v2.0
loop {
WinWait 'Find Sales Receipts'
WinClose
}
- Today, 07:12
- Forum: Ask for Help (v2)
- Topic: Cant figure out how to make coordmode work at all Topic is solved
- Replies: 3
- Views: 154
Re: Cant figure out how to make coordmode work at all Topic is solved
Code: Select all
#Requires AutoHotkey v2.0
CoordMode 'Mouse', 'Screen'
; Tabs 1-3
u::Click 90, 1010
i::Click 250, 1010
o::Click 450, 1010
- Today, 07:05
- Forum: Ask for Help (v2)
- Topic: Basic hotkey translation?
- Replies: 8
- Views: 182
Re: Basic hotkey translation?
Thanks, i guess i was doing something wrong because now it's working! I'm curious why AHK doesn't also have sort of user interface like X-Keys MacroWorks, that would open up the app to a lot more people who lack basic coding skills!? Different target audience. This is a scripting language, and its ...
- Today, 06:59
- Forum: Ask for Help (v2)
- Topic: String Manipulation between ^ and /
- Replies: 22
- Views: 1015
Re: String Manipulation between ^ and /
Nice references, except I don't know who T Adams is.
- Today, 06:53
- Forum: Ask for Help (v2)
- Topic: Basic hotkey translation?
- Replies: 8
- Views: 182
Re: Basic hotkey translation?
Sorry, i meant that it's not working in the following respect: If i close Cubase13.exe, then try to type text in any other app, numpad 1 & 2 are not writing a number, but 3 is. That shouldn't be the case, and I can't reproduce the problem. Make sure you don't have any other scripts still running th...
- Today, 06:39
- Forum: Ask for Help (v2)
- Topic: Need help with script to send keys :(
- Replies: 5
- Views: 226
Re: Need help with script to send keys :(
Code: Select all
#Requires AutoHotkey v2.0
F1:: {
Send '{Ctrl down}'
Sleep 1000
Send 'wsd{Ctrl up}'
}
- Today, 06:22
- Forum: Ask for Help (v2)
- Topic: Basic hotkey translation?
- Replies: 8
- Views: 182
Re: Basic hotkey translation?
It should restrict it to only when a window of that application is active. I don’t see how those key remappings could be active when other windows are active.
- Yesterday, 22:39
- Forum: AutoHotkey_H
- Topic: thqby's AutoHotkey_H v2.0 & v2.1
- Replies: 8
- Views: 1493
Re: thqby's AutoHotkey_H v2.0 & v2.1
changxiaotiao — Twice now we have fixed your codebox tags. The code goes in between the pair of tags, not after them. Please place the tags correctly when you post code. You can also use [code][/code] tags, which default to AHK syntax highlighting. They also go around the code, and there is an icon...
- Yesterday, 19:25
- Forum: Ask for Help (v2)
- Topic: COM Word highlighting toggle help
- Replies: 2
- Views: 122
Re: COM Word highlighting toggle help
NumpadAdd:: { ; SendEvent("!+h") ; highlight w := ComObjActive("Word.Application") if (SubStr(w.Selection.Range.Text, -1) = ' ') ; w.Selection.SetRange(w.Selection.Range.Start, w.Selection.Range.End - 1) ; these two lines deselect the trailing space w.Selection.Range.HighlightColorIndex := w.Select...
- Yesterday, 14:09
- Forum: Ask for Help (v2)
- Topic: Remapping buttons on "Windows Modern USB-C Speaker"?
- Replies: 1
- Views: 92
Re: Remapping buttons on "Windows Modern USB-C Speaker"?
Check the KeyHistory and see what it shows (if anything) when you press that button.
- Yesterday, 11:07
- Forum: Gaming
- Topic: Simple keywait + rapidfire
- Replies: 13
- Views: 554
Re: Simple keywait + rapidfire
It's possible. I'm not going to take the time to keep iterating this, but maybe someone else will, unless you are going to try to implement the logic yourself.
- Yesterday, 07:46
- Forum: Gaming
- Topic: Simple keywait + rapidfire
- Replies: 13
- Views: 554
Re: Simple keywait + rapidfire
Not sure what you mean by the F1 toggling all functions on/off. Do you mean just to make the hotkeys inactive? Or do you mean if they are in the middle of spamming, you want F1 to stop the spamming as well?
- Yesterday, 06:19
- Forum: Ask for Help (v2)
- Topic: Hotkeys to switch betwen labels v2 Topic is solved
- Replies: 7
- Views: 303
Re: Hotkeys to switch betwen labels v2 Topic is solved
Don’t use Goto. At all. Ever.
Why are you putting the code to be executed outside the hotkey functions anyway? Just put the code you want to execute inside the functions themselves.
Why are you putting the code to be executed outside the hotkey functions anyway? Just put the code you want to execute inside the functions themselves.