Search found 4961 matches

by jeeswg
Yesterday, 18:51
Forum: Bug Reports
Topic: Combobox Bug Topic is solved
Replies: 23
Views: 1080

Re: Combobox Bug Topic is solved

- Thank you for the fixes. - It occurred to me to test Control-Choose, this appears not to be working, although Control-ChooseString (which was fixed) is working. ;e.g. Notepad (Windows 7): test save as UTF-8 ;start a new file ;type a Unicode character into the window e.g. √ (square root) ;try to sa...
by jeeswg
Yesterday, 18:14
Forum: Offtopic
Topic: your personal AutoHotkey style guide
Replies: 61
Views: 3069

Re: your personal AutoHotkey style guide

- Often, when writing scripts, I might choose an object's variable name based on what the keys are, e.g. oPID. - But it can be unclear what values that object contains, so perhaps a better name would be oPIDToHWnd. - Even with this, the syntax can get quite confusing regarding the order, e.g. hWnd :...
by jeeswg
Yesterday, 10:41
Forum: Ask For Help
Topic: Internet Explorer: confirm a webpage has loaded
Replies: 1
Views: 36

Internet Explorer: confirm a webpage has loaded

- I've been doing some webpage automation on a webpage I have permission to automate as rapidly as possible. - Usually to be quick on a website I would do something like this, a simple check and a 500 msec wait for safety. while oWB.busy || !(oWB.readyState = 4) ;READYSTATE_COMPLETE := 4 Sleep, 10 S...
by jeeswg
Yesterday, 08:57
Forum: Ask For Help
Topic: How to disable Ctrl + Win + F
Replies: 4
Views: 24

Re: How to disable Ctrl + Win + F

This worked for me on Windows 7. Did it not work for you?
by jeeswg
Yesterday, 05:49
Forum: Scripts and Functions
Topic: quantiles: list first number, last number, and numbers in-between
Replies: 2
Views: 98

Re: quantiles: list first number, last number, and numbers in-between

- Interesting, calculate the ratio first, rather than the difference. Plus use SetCapacity. - Yes, the function is basically 'for i = a to b (step c)', but instead of the step size, you specify the step count, I hadn't really noticed that, I was coming at it from a different angle (trying to find eq...
by jeeswg
18 Sep 2018, 14:30
Forum: Ask For Help
Topic: traditional for loop: for i = a to b (step c) possibilities
Replies: 17
Views: 615

Re: traditional for loop: for i = a to b (step c) possibilities

- Just for the record: - I saw someone describe this or similar as a traditional for loop: 'Excel VBA code For i = 0 To 5 Step 0.5 MsgBox i Next - I see Python's 'range' function as basically the same thing. And Coco's and my 'range' variants also. (What I'd hope AHK to have.) - Flipeador mentioned ...
by jeeswg
18 Sep 2018, 13:16
Forum: Ask For Help
Topic: traditional for loop: for i = a to b (step c) possibilities
Replies: 17
Views: 615

Re: traditional for loop: for i = a to b (step c) possibilities

- I find traditional for loops useful for: - (specifying a variable name other than A_Index) - starting at 0 (instead of A_Index-1) - starting at n, and specifying an exit point (e.g. once I needed 6,7,8,9) - drawing graphs e.g. -10 to 10, steps of 0.5 - (taking such things and modifying them a bit,...
by jeeswg
18 Sep 2018, 12:33
Forum: Ask For Help
Topic: traditional for loop: for i = a to b (step c) possibilities
Replies: 17
Views: 615

Re: traditional for loop: for i = a to b (step c) possibilities

- I'm glad that somebody likes that kind of loop! [EDIT: It has its charms now that I look at it more closely.] - I don't know if I'll ever get used to it. My eyes still glaze over. I can't remember which bit goes where from memory. //some C++ code for (int i = 1; i <= 10; ++i) for (int i = 0; i < v...
by jeeswg
18 Sep 2018, 12:29
Forum: Ask For Help
Topic: For-Loop Examples
Replies: 5
Views: 126

Re: For-Loop Examples

- I have a section, LOOPING THROUGH AN OBJECT'S KEYS AND VALUES, here:
jeeswg's objects tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=29232
- I've also just added a section called FOR LOOP EXAMPLES. Cheers.
by jeeswg
18 Sep 2018, 06:37
Forum: Scripts and Functions
Topic: NumOp and StrOp: 'dynamic' operators
Replies: 0
Views: 75

NumOp and StrOp: 'dynamic' operators

- The idea of these functions is to be able to use an operator dynamically, and to be able to force a type comparison (numeric/alphabetical). - Functions like these are useful when writing custom functions, to avoid using multiple if/else lines when multiple operators could be involved. - The intent...
by jeeswg
18 Sep 2018, 06:30
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 441
Views: 78907

Re: Suggestions on documentation improvements

- Thanks lexikos. - Re. OR in AHK v2: Variables and Expressions - Definition & Usage | AutoHotkey v2 https://lexikos.github.io/v2/docs/Variables.htm#or Should it be: In an expression where at least one operand resolves to True, the *FIRST* operand that resolved to True is returned.
by jeeswg
17 Sep 2018, 21:46
Forum: Ask For Help
Topic: [COM] Help with the IDropSource and IDropTarget interfaces
Replies: 58
Views: 8165

Re: [COM] Help with the IDropSource and IDropTarget interfaces

I got something working with Spek I believe, mostly thanks to qwerty12. I will try and find it in the next few days. I had been intending to look into it again during the next few months.
by jeeswg
17 Sep 2018, 21:43
Forum: AutoHotkey v2 Development
Topic: numbers/strings in expressions
Replies: 0
Views: 65

numbers/strings in expressions

- To avoid as many problems as possible, and to be as newbie-friendly as possible, I use the general principle that: if both items look numeric, they should be compared numerically, otherwise they should be compared alphabetically. However, there should be a way to force two items to be compared alp...
by jeeswg
17 Sep 2018, 05:27
Forum: Ask For Help
Topic: (solved) If-Or Multi Match Syntax? if (x=1 OR x=2 OR x=3) Topic is solved
Replies: 10
Views: 168

Re: (solved) If-Or Multi Match Syntax? if (x=1 OR x=2 OR x=3) Topic is solved

- Re. 'heythere', I suppose so. You could do: MsgBox, % (wParam = "heythere") || (Format("0x{:X}", wParam) ~= "^(0x6E|0xBE|0xBC|0xE1)$") - The difficulty is this: checking a string against a string is simple enough, but the form of a number can vary, e.g. it might be '0...
by jeeswg
17 Sep 2018, 05:05
Forum: Ask For Help
Topic: MPC shortcuts like default volume up/down - window activate
Replies: 2
Views: 24

Re: MPC shortcuts like default volume up/down - window activate

- You could try ControlSend.
- Or using PostMessage/SendMessage with WM_COMMAND. There is info re. MPC and WM_COMMAND here. Cheers.
jeeswg's Media Player Classic tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=41683
by jeeswg
16 Sep 2018, 18:17
Forum: Ask For Help
Topic: (solved) If-Or Multi Match Syntax? if (x=1 OR x=2 OR x=3) Topic is solved
Replies: 10
Views: 168

Re: If-Or Syntax? if (such=1 OR such=2 OR such=3) Topic is solved

Here's a way. Cheers. q:: ;compare hex values wParam := 0 MsgBox, % (Format("0x{:X}", wParam) ~= "^(0x6E|0xBE|0xBC)$") wParam := 0x6E MsgBox, % (Format("0x{:X}", wParam) ~= "^(0x6E|0xBE|0xBC)$") wParam := 0x6E+0 MsgBox, % (Format("0x{:X}", wParam) ~=...
by jeeswg
16 Sep 2018, 11:49
Forum: Scripts and Functions
Topic: quantiles: list first number, last number, and numbers in-between
Replies: 2
Views: 98

quantiles: list first number, last number, and numbers in-between

- I needed to do some quality testing. I wanted to test the first item, the last item, and an even spread of numbers of in-between, so I created the function below. - If there are any similar scripts it would be interesting to know. Thanks. - Note: If you split a range by n-tiles, you get n segments...
by jeeswg
16 Sep 2018, 05:26
Forum: Wish List
Topic: Thread global variables and thread ID
Replies: 7
Views: 124

Re: Thread global variables and thread ID

- Here are 2 links that may be relevant. Cheers. - Perhaps this if implemented, would solve your problem: - I had suggested A_ThisHwnd and A_ThisIfWinCriteria (cf. A_ThisHotkey). To get info for the matching window when the hotkey was executed. (And from the hWnd you can get the PID.) jeeswg's 3-ite...
by jeeswg
15 Sep 2018, 17:48
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 441
Views: 78907

Re: Suggestions on documentation improvements

- @Ragnar: Not that I'm too concerned, but FYI, on IE, it appears that scrolling doesn't work until you click the window. - The new images look great. - The work on the function parameter names has been great also, thanks very much. - (I've had it with AHK itself also, I think that no-one noticed wh...
by jeeswg
15 Sep 2018, 17:44
Forum: Ask For Help
Topic: objects: ComObjXXX functions
Replies: 0
Views: 41

objects: ComObjXXX functions

- I wanted to make sense of the different 'ComObj' functions. - Which functions are actually 'the same' function? - And to what extent are these functions original or similar to existing Winapi functions. - Here's what I've got so far: AHK v1.1/AHK v2 ComObjActive ComObjArray ComObjConnect ComObjCre...

Go to advanced search