Search found 33 matches

by robertcollier4
08 Jul 2017, 07:25
Forum: Ask For Help
Topic: Launching Macro - I am not able to use Task Scheduler
Replies: 4
Views: 1244

Re: Launching Macro - I am not able to use Task Scheduler

you run a script from the command line like this:

Code: Select all

"C:\Program Files\AutoHotkey\AutoHotkeyU32.exe" "path_to_script.ahk"
by robertcollier4
05 Jul 2017, 09:44
Forum: Ask For Help
Topic: Speed when saving clipboard to variable
Replies: 5
Views: 1122

Re: Speed when saving clipboard to variable

Try: clipboard = %clipboard% ; Convert any copied files, HTML, or other formatted text to plain text. Or VariableSaved = %clipboard% ; Convert any copied files, HTML, or other formatted text to plain text. This is documented that putting % around the variable will convert it to plain text here - htt...
by robertcollier4
04 Jul 2017, 12:05
Forum: Ask For Help
Topic: How to play sound on every keypress regardless of key and without affecting its function
Replies: 2
Views: 1279

Re: How to play sound on every keypress regardless of key and without affecting its function

Look at KeyPressOSD for some sample code - https://autohotkey.com/boards/viewtopic.php?t=225 Loop, 95 { k := Chr(A_Index + 31) k := (k = " ") ? "Space" : k Hotkey, % "~*" k, OnKeyPressed Hotkey, % "~*" k " Up", _OnKeyUp } Loop, 24 ; F1-F24 { Hotkey, % "~*F" A_Index, OnKeyPressed Hotkey, % "~*F" A_In...
by robertcollier4
04 Jul 2017, 11:47
Forum: Ask For Help
Topic: Scripts only active when the title window is in focus?
Replies: 7
Views: 6310

Re: Scripts only active when the title window is in focus?

Will this work simply with the title?, as I can't use the class, because this changes virtually everytime you load the plug, so it's not a static class. Lastly, is there any need to separate functions from hotkeys? Meaning do hotkeys need to be surrounded by those lines and functions not? or will s...
by robertcollier4
04 Jul 2017, 10:42
Forum: Ask For Help
Topic: Scripts only active when the title window is in focus?
Replies: 7
Views: 6310

Re: Scripts only active when the title window is in focus?

You will need to first get the Window Class of the application (look for the string after ahk_class) using the following tool: https://github.com/fincs/SciTE4AutoHotkey/blob/master/source/tools/ActiveWindowInfo.ahk 1. Install AutoHotkey 2. Download the following file (click on "Raw" then Save As fro...
by robertcollier4
04 Jul 2017, 03:35
Forum: Ask For Help
Topic: GDI+ Easy Question
Replies: 4
Views: 1329

Re: GDI+ Easy Question

https://www.google.com/search?q=autohotkey+monitor+brightness - Search Google for "AutoHotkey monitor brightness " https://autohotkey.com/boards/viewtopic.php?t=7854 - Class Monitor (Brightness, ColorTemperature) https://autohotkey.com/board/topic/125563-universal-screen-brightness-changer/ - Univer...
by robertcollier4
28 Jun 2017, 08:23
Forum: Ask For Help
Topic: Repeating Message Box Timer
Replies: 5
Views: 1387

Re: Repeating Message Box Timer

https://autohotkey.com/board/topic/25334-countdown-in-msgbox/?p=291399 - Countdown in MsgBox Or if you want to do it in a more customized GUI: https://www.google.com/search?num=100&q=gui+countdown+timer+autohotkey https://stackoverflow.com/questions/17516587/autohotkey-msgbox-like-functionality-w-o-...
by robertcollier4
28 Jun 2017, 06:27
Forum: Ask For Help
Topic: WinHide Win10 Skype
Replies: 15
Views: 3588

Re: WinHide Win10 Skype

For AutoHotkey solution, try: https://autohotkey.com/board/topic/33190-solved-hide-tray-icon/?p=210914 Or try a 3rd-party program such as the following, there are many like this (search google for "move program taskbar system tray"): http://www.moo0.com/software/WindowMenuPlus/ https://github.com/ma...
by robertcollier4
27 Jun 2017, 10:48
Forum: Ask For Help
Topic: Link file extension ".my_ext" to "ext_handler.ahk %filepath%" Topic is solved
Replies: 5
Views: 1125

Re: Associate an AHK script with my file extension Topic is solved

Use the following reg script (save it to a filename with extension .reg and then run it): Windows Registry Editor Version 5.00 ; Remove previously wrongly made associations [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.my_ext] [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\my_ext] [-HKEY_CURRENT_USER\Software\Class...
by robertcollier4
27 Jun 2017, 10:22
Forum: Ask For Help
Topic: WinHide Win10 Skype
Replies: 15
Views: 3588

Re: WinHide Win10 Skype

http://www.intowindows.com/how-to-remove-skype-icon-from-windows-10-taskbar-without-quitting/ Remove Skype icon from Windows 10 taskbar Step 1: Launch Skype. Click Tools menu and then click Options. Step 2: Click Advanced settings tab as shown in the picture below. Step 3: On the right-side, uncheck...
by robertcollier4
24 Jun 2017, 14:54
Forum: Ask For Help
Topic: WinMove - not the same position on every window Topic is solved
Replies: 4
Views: 1132

Re: WinMove - not the same position on every window Topic is solved

https://autohotkey.com/boards/viewtopic.php?t=17955 - WinMove is broken on Windows 10 https://autohotkey.com/board/topic/149885-winmove-in-windows-10-misalignment/ - winmove in windows 10 misalignment https://autohotkey.com/boards/viewtopic.php?t=3392 - [Function] WinGetPosEx v0.1 (Preview) - Get th...
by robertcollier4
24 Jun 2017, 14:36
Forum: Ask For Help
Topic: Change Keys only in photoshop? Topic is solved
Replies: 5
Views: 1704

Re: Change Keys only in photoshop? Topic is solved

There's actually a better way I just thought of. On "RButton" you can check for the window underneath the mouse's position and see if its Photoshop or Adobe Animate and if so, then send the ^z. Otherwise if its not one of those two applications, then send a RButton as normal. This would allow you to...
by robertcollier4
24 Jun 2017, 14:19
Forum: Ask For Help
Topic: Change Keys only in photoshop? Topic is solved
Replies: 5
Views: 1704

Re: Change Keys only in photoshop? Topic is solved

I get the script, but how would I find the class? Would I need to have the applications open? 1. Install AutoHotkey 2. Download the following file (click on "Raw" then Save As from your browser)- https://github.com/fincs/SciTE4AutoHotkey/blob/master/source/tools/ActiveWindowInfo.ahk 3. Run the file...
by robertcollier4
24 Jun 2017, 14:12
Forum: Ask For Help
Topic: AHK GetKeyState use? Topic is solved
Replies: 1
Views: 698

Re: AHK GetKeyState use? Topic is solved

Send {Space D} is only the Down but will not send a Space because the Space is sent on the Up. So you want to send the Down and the Up: Send {Space} Also, check out the following, it may help for what you are trying? #MaxThreadsPerHotkey,1 ; no re-entrant hotkey handling https://autohotkey.com/docs/...
by robertcollier4
24 Jun 2017, 13:44
Forum: Ask For Help
Topic: Change Keys only in photoshop? Topic is solved
Replies: 5
Views: 1704

Re: Right click only in photoshop? Topic is solved

You will need to first get the Window Class of the two applications (look for the string after ahk_class) using the following tool: https://github.com/fincs/SciTE4AutoHotkey/blob/master/source/tools/ActiveWindowInfo.ahk #IfWinActive, ahk_class MyWinClass1 RButton::SendInput, ^z #IfWinActive #IfWinAc...
by robertcollier4
24 Jun 2017, 03:25
Forum: Ask For Help
Topic: how can i read the raw data from usb sound device with ahk.
Replies: 13
Views: 3091

Re: how can i read the raw data from usb sound device with ahk.

jonathan scott james wrote:why won't it work?
public class WaveIn
You can't use C# code directly in AutoHotKey, they're two different languages - you would have to translate it.
That is why I recommended using C# (you can download Visual Studio Express for free) since there are already code examples available in C#.
by robertcollier4
23 Jun 2017, 10:48
Forum: Ask For Help
Topic: how can i read the raw data from usb sound device with ahk.
Replies: 13
Views: 3091

Re: how can i read the raw data from usb sound device with ahk.

Following links may help in figuring out the DllCall to the WinAPI. https://stackoverflow.com/questions/8861126/read-raw-data-from-the-sound-card - Read raw data from the sound card http://msdn.microsoft.com/en-us/library/aa446573.aspx#waveinout_topic_006 - coredll.dll WaveIn reference https://www.c...
by robertcollier4
22 Jun 2017, 14:43
Forum: Ask For Help
Topic: Wait for function to finish before going to second
Replies: 11
Views: 3496

Re: Wait for function to finish before going to second

https://autohotkey.com/docs/commands/Run.htm - Run to get a processID of a separate file. ;file1 - run_logs.ahk #Persistent Run, %A_AhkPath%\wmic_Win32_Group.ahk, %A_AhkPath%, ,pIDwmic_Win32_Group SetTimer,StopPullingLogs_11, -10000 ; try to pull logs for at least 10 seconds and then stop Return Sto...
by robertcollier4
22 Jun 2017, 14:13
Forum: Ask For Help
Topic: Wait for function to finish before going to second
Replies: 11
Views: 3496

Re: Wait for function to finish before going to second

You are unable to kill a thread from another thread when the two threads are in the same file. Your SetTimer thread cannot interact with the base thread directly. So either: 1) Keep checking if the max time has elapsed at the beginning of each iteration of your for loop (you can use A_Now and see if...

Go to advanced search