Search found 258 matches

by Osprey
24 minutes ago
Forum: Ask For Help
Topic: Run Script when my USB headphones are plugged in/unplugged
Replies: 2
Views: 40

Re: Run Script when my USB headphones are plugged in/unplugged

Close this thread. The question has been answered. BoBo to the rescue again.
by Osprey
Yesterday, 15:07
Forum: Gaming
Topic: How to stop ongoing commands.
Replies: 1
Views: 15

Re: How to stop ongoing commands.

You could assign a hotkey to either Pause or Reload the script. q::Pause q::Reload The difference is that Pause will just pause the script and a second press will un-pause it (so that it resumes where it left off), while Reload will permanently end it and start the script over again fresh. My guess ...
by Osprey
Yesterday, 15:01
Forum: Ask For Help
Topic: Menu Font ?
Replies: 4
Views: 65

Re: Menu Font ?

According to the docs, "font" isn't a recognized Menu command. Based on that, I'd say that you can't change the font.
by Osprey
20 Jan 2018, 16:54
Forum: Ask For Help
Topic: mouse/touch click??
Replies: 6
Views: 70

Re: mouse/touch click??

Try:

Code: [Select all]GeSHi © Codebox Plus

#If WinActive("ahk_exe notepad.exe")
Q::Click, 100, 100

Replace notepad.exe with the executable name of the program that you're using and the numbers with the coordinates that you want to click at.
by Osprey
18 Jan 2018, 17:34
Forum: Ask For Help
Topic: Help with functions keys
Replies: 1
Views: 25

Re: Help with functions keys

First of all, I would simply try: Ctrl & 1::Send, {F1} If that doesn't cut it, try running the following script... CoordMode, ToolTip, Screen CleanTimer := -1000 ; Must be a negative number (the timer will run only once) Loop, 5000 { Hotkey, % "~*" GetKeyName(Format("vk{:x}",...
by Osprey
18 Jan 2018, 17:15
Forum: Ask For Help
Topic: AutoHotkey only working when script window is open
Replies: 2
Views: 43

Re: AutoHotkey only working when script window is open

If you want F18 to do that on its own, you shouldn't have the # sign in front. That turns it into a Win+F18 hotkey, meaning that pressing F18 alone isn't enough to trigger it.
by Osprey
18 Jan 2018, 17:08
Forum: Ask For Help
Topic: sending a period
Replies: 2
Views: 34

Re: sending a period

I'm able to send a period to Chrome with a simple Send, . command. Do you mean the "Del" key on the numpad? If so, try Send, {NumpadDel} or Send, {NumpadDot} (when NumLock is on).
by Osprey
18 Jan 2018, 16:34
Forum: Ask For Help
Topic: WinExist() issue - not working
Replies: 3
Views: 92

Re: WinExist() issue - not working

Your first reference to "WinExist" should be a function call, like the rest, and you have a space in the middle of your last WinExist() function call. Re-write it as the following: if WinExist("New notification") or WinExist("ahk_class Windows.UI.Core.CoreWindow") or Wi...
by Osprey
16 Jan 2018, 19:32
Forum: Ask For Help
Topic: ahk2exe and library includes issue
Replies: 4
Views: 62

Re: ahk2exe and library includes issue

Pacheco wrote:The installer seems to create a copy of "AutoHotkeyA32.exe" as "AutoHotkey.exe" automatically.

Ah, OK. I've only ever downloaded the ZIP version, not the installer version, since I like portability.
by Osprey
16 Jan 2018, 19:27
Forum: Ask For Help
Topic: Possible A_LoopFileLongPath bug
Replies: 14
Views: 220

Re: Possible A_LoopFileLongPath bug

@Osprey: If I'm reading it correctly, going from 45 seconds to 57 minutes is way too different... Oh, I know. That's why I wasn't making excuses for the length of time. It's just that there's a difference between code being horribly unoptimized and it being buggy. Just the other day, I had some cod...
by Osprey
16 Jan 2018, 19:17
Forum: Ask For Help
Topic: ahk2exe and library includes issue
Replies: 4
Views: 62

Re: ahk2exe and library includes

From the "libraries of functions" entry in the help file: The script compiler (ahk2exe) also supports library functions. However, it requires that a copy of AutoHotkey.exe exist in the directory above the compiler directory (which is normally the case). If AutoHotkey.exe is absent, the com...
by Osprey
16 Jan 2018, 18:57
Forum: Ask For Help
Topic: Possible A_LoopFileLongPath bug
Replies: 14
Views: 220

Re: Possible A_LoopFileLongPath bug

According to the help file entry for A_LoopFileLongPath: A_LoopFileLongPath This is different than A_LoopFileFullPath in the following ways: 1) It always contains the absolute/complete path of the file even if FilePattern contains a relative path; 2) Any short (8.3) folder names in FilePattern itsel...
by Osprey
16 Jan 2018, 17:53
Forum: Gaming
Topic: Script Writing Help Topic is solved
Replies: 13
Views: 145

Re: Script Writing Help Topic is solved

I'm glad to hear it (not that you're in pain, of course). Sorry if I sounded accusatory. This forum gets a lot of requests from people who are trying to cheat at online games. To hold F7 down for 10 minutes, try: F7:: Send, {F7 down} Sleep, 10000 Send, {F7 up} Return You can try SendPlay, but I've n...
by Osprey
16 Jan 2018, 17:25
Forum: Gaming
Topic: Script Writing Help Topic is solved
Replies: 13
Views: 145

Re: Script Writing Help Topic is solved

You should probably clarify your purpose for this script. If it's to cheat (possibly level up while you're away from the computer?) in an MMO, people should know that before they help you.
by Osprey
16 Jan 2018, 16:40
Forum: Ask For Help
Topic: What I'm I doing wrong?
Replies: 3
Views: 63

Re: What I'm I doing wrong?

That's true. I shouldn't have said that you "need" to remove #NoEnv. It's just the simplest way to solve the problem. Using EnvGet is the preferred way and I believe that the help suggests that it'll be the only way in v2, so you might future proof your code a bit by using it now.
by Osprey
16 Jan 2018, 16:33
Forum: Ask For Help
Topic: set ctrl+shit+tab and ctrl+tab for switching tab in chrome
Replies: 2
Views: 34

Re: set ctrl+shit+tab and ctrl+tab for switching tab in chrome

When you send just the key name (ex. Send, {ctrl} ), it simulates pressing the key and then releasing it. In other words, it sends the down command for the key and then the up command. When you want a key to be held down, you want to send just the down command, so what you want is this: Numpad7::Sen...
by Osprey
16 Jan 2018, 16:25
Forum: Ask For Help
Topic: What I'm I doing wrong?
Replies: 3
Views: 63

Re: What I'm I doing wrong?

Do you have #NoEnv at the top of your script? If so, you need to remove that; otherwise, the script will assume that %username% and %userprofile% are script variables and not retrieve the contents of those environment variables.
by Osprey
07 Jan 2018, 14:26
Forum: Ask For Help
Topic: About Double Clicking on empty Taskbar
Replies: 5
Views: 110

Re: About Double Clicking on empty Taskbar

Have you tried declaring CoordMode to ensure that the taskbar is considered part of your work area?

by Osprey
03 Jan 2018, 04:28
Forum: Ask For Help
Topic: Adding company, product etc. info to binaries
Replies: 7
Views: 126

Re: Adding company, product etc. info to binaries

I successfully used fincs' Script Compiler (Ahk2Exe) Directives in the past. I'm trying to use them, without success, like the OP. In my script, I have the following: ;@Ahk2Exe-SetName Test ;@Ahk2Exe-SetVersion 1.0 I'm using the Ahk2Exe.exe that comes in the Compiler folder of v1.1.27.02 of AutoHot...
by Osprey
17 Dec 2017, 16:46
Forum: Ask For Help
Topic: How to... Multiple check boxes and variables. Topic is solved
Replies: 2
Views: 72

Re: How to... Multiple check boxes and variables. Topic is solved

This might do it: Gui, +AlwaysOnTop Gui, Add, Button, x0 y0 h50 w50 gSubmit LineText := [] Loop, read, %A_ScriptDir%\Movie.xml, { IfInString, A_LoopReadLine, <Title>, GoSub, AddCheck IfInString, A_LoopReadLine, <Trailer>, break } Gui, Show, h300 w300 Return Submit: Gui, Submit, Nohide Loop % LineTex...

Go to advanced search