Search found 4964 matches

by jeeswg
Today, 13:41
Forum: Ask For Help
Topic: Maxima CAS (wxMaxima): run via the command line
Replies: 0
Views: 19

Maxima CAS (wxMaxima): run via the command line

- Maxima CAS (wxMaxima) is a freeware computer algebra system (cf. Mathematica, MATLAB). - It has a GUI, but it can be useful to do calculations via the command line instead. - Here is a script to demonstrate how it can be used via the command line. ;to run Maxima/wxMaxima via the command line manua...
by jeeswg
Today, 11:59
Forum: Scripts and Functions
Topic: slice string, pad characters
Replies: 17
Views: 700

Re: slice string, pad characters

- @burque505: Cheers, no problem. - I've been wondering about the best handling for multiple character fill strings i.e. fill from left-to-right or fill from right-to-left. Possibly an extra parameter would be needed. - Are either of these useful, and which would be more useful as the default? - One...
by jeeswg
Today, 07:44
Forum: AutoHotkey v2 Development
Topic: A_ variables
Replies: 25
Views: 2017

Re: A_ variables

- I've written C++ code to fill out certain A_ variables, all useful for #Include, from 4 to 8: A_AhkDir [proposal][already in AutoHotkey_H] A_AhkName [proposal] A_AhkNameNoExt [proposal] A_AhkPath A_ScriptDir A_ScriptFullPath A_ScriptName A_ScriptNameNoExt [proposal][consistent whether script compi...
by jeeswg
Yesterday, 18:51
Forum: Bug Reports
Topic: Combobox Bug Topic is solved
Replies: 23
Views: 1086

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: 3076

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: 40

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: 25

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: 104

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: 616

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: 616

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: 616

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: 129

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: 77

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: 78949

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: 8170

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: 67

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: 170

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: 25

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: 170

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: 104

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...

Go to advanced search