Search found 9391 matches
- 11 Feb 2016, 20:08
- Forum: Ask for Help (v1)
- Topic: [SOLVED] Where can I find lates "Active Window Info" (that is bundled with AutoHotkey) source code?
- Replies: 6
- Views: 10030
- 11 Feb 2016, 20:06
- Forum: Wish List
- Topic: FileCopy and FileCopyDir flag to only overwrite if newer.
- Replies: 1
- Views: 1293
Re: FileCopy and FileCopyDir flag to only overwrite if newer.
It can already be done easily, while also allowing the script to implement other criteria, as per example #5 of Loop File.
- 11 Feb 2016, 04:42
- Forum: Ask for Help (v1)
- Topic: Shutdown computer
- Replies: 13
- Views: 10401
Re: Shutdown computer
Why use an external executable?
I wrote:Doesn't the built-in command work?Code: Select all
Shutdown 1
- 11 Feb 2016, 04:40
- Forum: Ask for Help (v1)
- Topic: Windows 10 TrayTip icon resolution
- Replies: 8
- Views: 3520
Re: Windows 10 TrayTip icon resolution
I saw this post a while ago and have been meaning to look into it. Now I have. This seems to be unavoidable when the notification is generated by the "legacy" Shell_NotifyIcon API (i.e. the tray icon API). I think that the system might be downscaling the icon when it is set as the tray icon. If I ma...
- 11 Feb 2016, 02:27
- Forum: Ask for Help (v1)
- Topic: Problem with generating command line output
- Replies: 2
- Views: 719
Re: Problem with generating command line output
You are calling the PING program (C:\Windows\System32\ping.exe) and passing it invalid parameters ( > D:/PingOutput.txt ). The window which appears is not a "CMD window"; it is a console window. You need to actually run CMD, which will interpret the '>' and direct the output of ping into the file: R...
- 11 Feb 2016, 02:01
- Forum: Ask for Help (v1)
- Topic: Efficient way to count appearances of specific character in a string
- Replies: 6
- Views: 2688
Re: Efficient way to count appearances of specific character in a string
(in reality, I guess this just means < 1 ms) More like < 20 ms, due to the granularity of A_TickCount. You need to perform a lot more iterations (as Coco did) to overcome the inaccuracy or overhead of whatever you're using to measure the time. It is also important to use SetBatchLines -1 in v1. If ...
- 11 Feb 2016, 01:52
- Forum: Ask for Help (v1)
- Topic: &Class.var ?
- Replies: 5
- Views: 1656
Re: &Class.var ?
Just add quotes if it's meant literally: xx.var -> xx.GetAddress("var") or xx[yy] -> xx.GetAddress(yy) (yy is a variable containing a key). For the inline code, I just type [ c ] the code [ / c ] without spaces. There's also a "c" button in the full post editor. If you want to know how to duplicate ...
- 10 Feb 2016, 22:04
- Forum: Ask for Help (v1)
- Topic: &Class.var ?
- Replies: 5
- Views: 1656
Re: &Class.var ?
For most purposes, it seems that I can treat "Class.var" and "var" as interchangeable Class.var is an expression. Anywhere that you can use an expression to compute a value, you can use Class.var . Class.var returns a value, not a variable reference. If it returned "value", for instance, &Class.var...
- 10 Feb 2016, 20:33
- Forum: Ask for Help (v1)
- Topic: Shutdown computer
- Replies: 13
- Views: 10401
Re: Shutdown computer
Doesn't the built-in command work? Shutdown 1 When I use in AHK the script shutdown /s or shutdown -1 -f ... These aren't scripts, but command lines for the Windows program shutdown.exe. Run shutdown /s should be fine, but shutdown /s (without Run) in an AutoHotkey script is a totally different thin...
- 10 Feb 2016, 20:28
- Forum: Ask for Help (v1)
- Topic: autohotkey.chm crashes
- Replies: 2
- Views: 1119
Re: autohotkey.chm crashes
AutoHotkey is trying to open this page (but within the chm): https://autohotkey.com/docs/Welcome.htm If you want to solve the chm problem, I would suggest googling the error message. Others have had this problem with other chm files. If you need offline documentation and can't get the chm working, y...
- 10 Feb 2016, 20:03
- Forum: Ask for Help (v1)
- Topic: [Solved] Schtasks Help
- Replies: 11
- Views: 3057
Re: [Solved] Schtasks Help
I won't know how I would do it unless I look into actually doing it, and I'm not that interested. I'd suggest suppressing the error with a try statement (e.g. try RunAsTask(...) or catching it with try..catch. For catching command output, see the RunWaitOne/RunWaitMany example in the Run documentati...
- 10 Feb 2016, 18:20
- Forum: Bug Reports
- Topic: Sizing GUI-Elements: dpi dpiaware has to be set to "True/PM" to work on Win 8.1 and above
- Replies: 17
- Views: 12887
Re: Sizing GUI-Elements: dpi dpiaware has to be set to "True/PM" to work on Win 8.1 and above
Right, but it does break per-monitor scaling on Win 8.1 and newer.i would prefer this, because it doesn't break Win 8 and older.
- 10 Feb 2016, 03:34
- Forum: Bug Reports
- Topic: Sizing GUI-Elements: dpi dpiaware has to be set to "True/PM" to work on Win 8.1 and above
- Replies: 17
- Views: 12887
Re: Sizing GUI-Elements: dpi dpiaware has to be set to "True/PM" to work on Win 8.1 and above
A_ScreenDPI returns 120 on my Windows 10 system, and it is correct. I also tested with a second screen at 168 (175%), and everything worked as expected. A_ScreenDPI returned the correct DPI of the primary screen; 168 or 120, depending on which screen was set as the primary. AutoHotkey is not per-mon...
- 10 Feb 2016, 02:03
- Forum: Bug Reports
- Topic: Sizing GUI-Elements: dpi dpiaware has to be set to "True/PM" to work on Win 8.1 and above
- Replies: 17
- Views: 12887
Re: Sizing GUI-Elements: dpi dpiaware has to be set to "True/PM" to work on Win 8.1 and above
Thank you for pointing out what should have been obvious; I was reading it as "true or pm", not literally, and now that you mention it I recall reading about the "true/pm" value somewhere.
- 09 Feb 2016, 23:08
- Forum: Ask for Help (v1)
- Topic: Make this multi-line (continuation section)?
- Replies: 3
- Views: 846
Re: Make this multi-line (continuation section)?
You can use the Join option. reLoc := (Join "(((room|rm)|(in\K)|((in\s\K)(room|rm)))\s\d{3}) |((1st|first|2nd|sec(ond)?)\sfloor\s(counseling|conf(erence)?)) |((Smiling)?\sFloyd(s|'s)?\s)" ) I prefer to write multi-line strings like this (either option): reLoc := " (Join (((room|rm)|(in\K)|((in\s\K)(...
- 09 Feb 2016, 23:01
- Forum: Ask for Help (v1)
- Topic: Problem: duplicate functions when using #Include
- Replies: 2
- Views: 798
Re: Problem: duplicate functions when using #Include
page1.run() How is this different to simply renaming the functions; e.g. page1_run()? If you specifically want to use page1.run() , you can define it like this: class page1 { run() { ;... } } You will then always need to refer it as page1.run() , where page1 can be any variable which contains a ref...
- 09 Feb 2016, 22:32
- Forum: Bug Reports
- Topic: Sizing GUI-Elements: dpi dpiaware has to be set to "True/PM" to work on Win 8.1 and above
- Replies: 17
- Views: 12887
Re: Sizing GUI-Elements: dpi dpiaware has to be set to "True/PM" to work on Win 8.1 and above
Open source\resources\AutoHotkey.exe.manifest > set dpiaware to "True/PM" What are you talking about? I'm pretty sure AutoHotkey.exe.manifest has had <dpiAware>true</dpiAware> since A_ScreenDPI was added . I have just compiled a script and confirmed that it has <dpiAware>true</dpiAware>, although I...
- 09 Feb 2016, 22:23
- Forum: Ask for Help (v1)
- Topic: release input file arguments
- Replies: 14
- Views: 2162
Re: release input file arguments
I suggest that you follow the very first suggestion (by MilesAhead) and confirm which process is actually locking the file.
- 09 Feb 2016, 22:20
- Forum: Ask for Help (v1)
- Topic: (resolved) a clever interface technique, now that I understand..
- Replies: 9
- Views: 1570
Re: (resolved) a clever interface technique, now that I understand..
You guessed right. "Function Object" is meant like "an object which acts like a function". It's not possible to determine with certainty whether an object can be called like a function (due to the way meta functions work), so IsFunc only tells you if something is actually a function. It also include...
- 09 Feb 2016, 22:00
- Forum: Ask for Help (v1)
- Topic: [Solved] Schtasks Help
- Replies: 11
- Views: 3057
Re: Schtasks Help
You can try moving A_Space to the left of the ")" so there's no leading space for compiled scripts, but I wouldn't have thought it mattered.