Search found 506 matches

by trismarck
23 May 2016, 19:11
Forum: Ask For Help
Topic: Methods using commandline arguments
Replies: 6
Views: 967

Re: Methods using commandline arguments

...why would one virtually declare that a variablename should never be a pure number and then use one as a predefined one... Yes, to clarify, I guess it's because there was a time in the past when Autohotkey lacked expression mode altogether. In other words: I just can't use ' x := 1 ' to assign th...
by trismarck
22 May 2016, 17:43
Forum: Ask For Help
Topic: Hooking/Replacing AHK IUnknown methods(object, script-wide) crash
Replies: 3
Views: 1018

Re: Hooking/Replacing AHK IUnknown methods(object, script-wide) crash

This might be a stupid question, but will hooking into QueryInterface() and others trigger not just for that particular ahk object, but for all ahk objects? (and is that desired in this case) //edit: looks like it will, ok Hook into the AutoHotkey implementation ( for all Objects script-wide ) by us...
by trismarck
22 May 2016, 16:36
Forum: Ask For Help
Topic: If, #If Question
Replies: 4
Views: 3444

Re: If, #If Question

Stuff beginning with # (i.e. #If ) are directives. Directives are parsed processed? before the script starts running. They could I guess be thought as preprocessor statements in C, though they I guess really aren't. The effect of #IfWinActive or #If directives is that all hotkeys or hotstrings below...
by trismarck
22 May 2016, 16:22
Forum: Ask For Help
Topic: Meaning of "Keyboard Focus"
Replies: 2
Views: 798

Re: Meaning of "Keyboard Focus"

So to rephrase it a little: when the system detects keyboard input (i.e. the user has pressed the key on the keyboard), the system posts a message (actually, places the message in the input queue associated with a given thread I guess) to the message queue of the thread whose window currently has ke...
by trismarck
11 May 2016, 14:48
Forum: Ask For Help
Topic: WinActivate and Send
Replies: 5
Views: 976

Re: WinActivate and Send

Something like this? (I don't use Excel COM so perhaps there is a better way of doing it): oExcel := ComObjActive("Excel.Application") oExcel.ActiveSheet.UsedRange.Rows(1).Select clipboard := "" oExcel.Selection.Copy Clipwait, 3 In the linked thread, there is also Excel_Get() , which could be used i...
by trismarck
09 May 2016, 12:43
Forum: Ask For Help
Topic: Unicode character not working
Replies: 2
Views: 905

Re: Unicode character not working

Code: Select all

#a::Send, {U+D83D}{U+DC7D}
This has to do with UTF-16 surrogate pair / pairs.
by trismarck
26 Apr 2016, 11:57
Forum: Ask For Help
Topic: Hotkey, If, Expression question
Replies: 3
Views: 688

Re: Hotkey, If, Expression question

Yes; wherever you want.
//edit: actually, I should have said: wherever the #if directive is allowed to be placed.
by trismarck
15 Feb 2016, 21:40
Forum: Ask For Help
Topic: Difference between instance variables and "this." variables created inside __New()
Replies: 3
Views: 1340

Re: Difference between instance variables and "this." variables created inside __New()

Both are instance variables The meaning of this sentence is: both code snippets create a key-value pair in the 'instance' object (update: I mean, they would create it if the class was instantiated). Only the second example contains the Instance Variable. The first example contains the __New method;...
by trismarck
06 Dec 2015, 09:58
Forum: Ask For Help
Topic: What Gui commands actually create a gui window
Replies: 5
Views: 1516

Re: What Gui commands actually create a gui window

This is just a stub. The discussion can be found here. Didn't that discussion finish over a year ago? Were the answers given there insufficient? They were sufficient. The initial purpose of this thread was to just split the 'what gui commands create the gui window' case into a separate thread for e...
by trismarck
14 Nov 2015, 23:15
Forum: Ask For Help
Topic: [SOLVED] GUI positionning with multiple monitors (hidpi)
Replies: 12
Views: 5566

Re: GUI positionning with multiple monitors (hidpi)

http://nsa37.casimages.com/img/2015/11/14/151114104108104228.png Right, so we can see that if DPI virtualization is enabled, something is wrong with the WorkingArea measurement? That's not relevant here but when I move a window in the gap between the two screens (2161-3239), it appears on the last ...
by trismarck
14 Nov 2015, 19:53
Forum: Ask For Help
Topic: What Gui commands actually create a gui window
Replies: 5
Views: 1516

Re: What Gui commands actually create a gui window

I just realized that it's basically already documented that these commands don't create a new GUI window. The line used for most of them is: "If the window does not exist -- perhaps due to having been destroyed via Gui Destroy -- this command has no effect." related issues: whether window created (...
by trismarck
14 Nov 2015, 19:51
Forum: Ask For Help
Topic: What Gui commands actually create a gui window
Replies: 5
Views: 1516

What Gui commands actually create a gui window

This is just a stub. The discussion can be found here.
by trismarck
13 Nov 2015, 17:49
Forum: Ask For Help
Topic: [SOLVED] GUI positionning with multiple monitors (hidpi)
Replies: 12
Views: 5566

Re: GUI positionning with multiple monitors (hidpi)

Autohotkey determines DPI settings based on the 'screen' (which is really based on the DPI of the primary monitor only I guess) Windows 8.1 and up have two separate DPI settings: system DPI setting per-monitor DPI setting. What Autohotkey reads is the System DPI setting. Autohotkey is the system DP...
by trismarck
13 Nov 2015, 02:16
Forum: Ask For Help
Topic: [SOLVED] GUI positionning with multiple monitors (hidpi)
Replies: 12
Views: 5566

Re: GUI positionning with multiple monitors (hidpi)

//edit-2015-11-13: after rethinking, almost everything in the this post is wrong; I'll leave the post for reference. Here are some thoughts, after reading about DPIScale and Windows DPI settings: Autohotkey determines DPI settings based on the 'screen' (which is really based on the DPI of the primar...
by trismarck
11 Nov 2015, 20:47
Forum: Ask For Help
Topic: [SOLVED] GUI positionning with multiple monitors (hidpi)
Replies: 12
Views: 5566

Re: [SOLVED] GUI positionning with multiple monitors (hidpi)

I don't have Windows 10 so can't really test that. Also wonder how -DPIScale works on a system with per-monitor (vs global) DPI setting (which I presume is your setup). //edit: is it like the re-scaling ratio is taken from the primary monitor or some specific monitor? Tried -DPIScale but couldn't ma...
by trismarck
22 Oct 2015, 18:54
Forum: Ask For Help
Topic: how to dection the input of Chinese
Replies: 7
Views: 2364

Re: how to dection the input of Chinese

Supposing that one uses the Unicode version of Autohotkey; the format of the file that you have saved is in UTF-8 without BOM. Make sure that you're saving the file as UTF-8 _with BOM_ or as UTF-16LE _with BOM_. Or specify that the file is in UTF-8 through command line with /CP65001 . The characters...
by trismarck
21 Oct 2015, 08:58
Forum: Ask For Help
Topic: IsNull DBA and ACC Issue?
Replies: 2
Views: 1121

Re: IsNull DBA and ACC Issue?

To get the line that causes trouble, one could replace Default_Warn in lib\base.ahk with: Default__Warn(nonobj, p1="", p2="", p3="", p4="") { throw, Exception("A non-object value was improperly invoked.`n`nSpecifically: " nonobj, -1) ; or Exception().Line to get the line nr } When catching an except...
by trismarck
12 Oct 2015, 05:45
Forum: Ask For Help
Topic: Help with property getter/setter
Replies: 9
Views: 2230

Re: Help with property getter/setter

The setter recurses infinitely. It could be seen by adding the following to the class:

Code: Select all

	__Fruit[] {
		get {
			MsgBox, get __Fruit
			return this.__Fruit ; 
		}
 
		set {
			MsgBox, % "__Fruit set to`t" value
			return this.__Fruit := value
		}
	}
by trismarck
09 Oct 2015, 16:17
Forum: Ask For Help
Topic: A simple function doesn't work properly
Replies: 7
Views: 1520

Re: A simple function doesn't work properly

Another way is to "replace" the empty string which exists between each pair of dots: Didn't think something like this would work, thanks. Because the regex engine understands the notion of being 'in between' two characters, doing look-behind and look-ahead on an empty string is the best idea. An ad...

Go to advanced search