Search found 3550 matches

by jeeswg
12 Feb 2018, 16:04
Forum: Ask For Help
Topic: Control Send to a specific Word Window
Replies: 5
Views: 80

Re: Control Send to a specific Word Window

I got a script to work. Cheers. q:: ;send text to MS Word (inactive window) ;if Word is inactive: sends to Word without activating window ;if Word is active (a Word window, not the one we want to send text to): sends to Word and activates window ControlFocus, _WwG1, Document1 ahk_class OpusApp Contr...
by jeeswg
12 Feb 2018, 13:25
Forum: Bug Reports
Topic: If VAR <> ; false, while StrLen(VAR) > 0
Replies: 4
Views: 112

Re: If VAR <> ; false, while StrLen(VAR) > 0

Thanks for the info lexikos. Here's a little test. ;4511 characters were regarded as equal to a blank string q:: ;test StringCaseSense Locale, characters equal to a blank string vOutput := "" VarSetCapacity(vOutput, 100000*2) StringCaseSense, Locale vOutput := "", vCount := 0 Loo...
by jeeswg
11 Feb 2018, 20:29
Forum: Ask For Help
Topic: Two ways to access to global variables Topic is solved
Replies: 3
Views: 88

Re: Two ways to access to global variables Topic is solved

- In the 1st approach, each function chooses whether to use the global version of the variable, or whether to use a local version. - In the 2nd approach, a super-global variable is created, this is more forceful, it forces all functions to use the global version of the variable, apart from functions...
by jeeswg
11 Feb 2018, 16:39
Forum: Ask For Help
Topic: increase padding in edit box
Replies: 2
Views: 44

Re: increase padding in edit box

Two functions I wrote (for AHK v2, but that can be used in AHK v1 with a custom SendMessage function): ;commands as functions (AHK v2 functions for AHK v1) - AutoHotkey Community ;https://autohotkey.com/boards/viewtopic.php?f=37&t=29689 JEE_EditGetMargins(hCtl, ByRef vLeft, ByRef vRight) { vDWor...
by jeeswg
11 Feb 2018, 15:23
Forum: Ask For Help
Topic: Pop "Safely Remove Hardware" menu from Win10 tray
Replies: 2
Views: 47

Re: Pop "Safely Remove Hardware" menu from Win10 tray

- You could try this, just in case in works.

Code: [Select all]GeSHi © Codebox Plus

q:: ;Explorer - open Safely Remove Hardware
Run, control hotplug.dll
return

- From:
jeeswg's Explorer tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=31755
by jeeswg
11 Feb 2018, 15:07
Forum: Ask For Help
Topic: UTC with daylight savings time
Replies: 5
Views: 112

Re: UTC with daylight savings time

- If you want to do local date to UTC date, you need to work out the start/end points for DST in that year, and see if that date is within that period, and add the correct offset accordingly. - There is one ambiguous 1-hour time period. When DST ends, e.g. in the UK, you get 01:00-01:59 local time (...
by jeeswg
11 Feb 2018, 10:29
Forum: AutoHotkey v2 Development
Topic: list of every object type/property/method
Replies: 13
Views: 296

Re: list of every object type/property/method

- @Helgef: I've added BoundFunc, it appears to only have one method, Call. - I meant to collect a list of types returned by the Type() function, I will look into that and update the OP. Thanks. [EDIT: Done. See OP. Do notify of any omissions. Cheers.] - @nnnik: I've split the 'Object' list into two:...
by jeeswg
10 Feb 2018, 23:47
Forum: AutoHotkey v2 Development
Topic: list of every object type/property/method
Replies: 13
Views: 296

list of every object type/property/method

[updated: 2018-02-18] - Partly in preparation for an objects tutorial, and partly in preparation for looking at updating/creating scripts to backport the AHK v2 GUI/Menu objects to AHK v1. I've created a list of AHK object types and their methods/properties. - It is intended as a companion to this t...
by jeeswg
10 Feb 2018, 21:52
Forum: Ask For Help
Topic: Dllcall GetComputerName
Replies: 1
Views: 41

Re: Dllcall GetComputerName

- I've done some examples recreating a lot of the AHK functionality via DllCall: AutoHotkey via DllCall: AutoHotkey functions as custom functions - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=37871 - And specifically A_ComputerName. here: jeeswg's Explorer tutorial - A...
by jeeswg
10 Feb 2018, 18:23
Forum: About This Community
Topic: Tips for using the forum.
Replies: 14
Views: 2447

Re: Tips for using the forum.

- @bcgrossman: I checked the list of forum posts by you, the only post I found was one about Pulover's Macro Creator, but it is listed as being newer than the post in this thread. - It would have helped if you'd stated about your missing thread: what the thread/post was about, when you posted it, un...
by jeeswg
10 Feb 2018, 18:07
Forum: AutoHotkey v2 Development
Topic: WinGetClientPos and Window Spy
Replies: 3
Views: 101

Re: WinGetClientPos and Window Spy

Great, thanks so much Helgef. I trusted that there might be a reasonable explanation, but I just wasn't expecting XYRB (aka TLRB) instead of XYWH. A fix for my code above: ;note: 'client pos' WinGetClientPos(vWinX, vWinY, vWinR, vWinB, "A") vWinW := vWinR-vWinX, vWinH := vWinB-vWinY vCoord...
by jeeswg
10 Feb 2018, 11:56
Forum: AutoHotkey v2 Development
Topic: blank parameter followed by &var
Replies: 1
Views: 34

blank parameter followed by &var

I was testing script conversion, and got a 'Syntax error' error message with AHK v2.0-a088 (the latest version), when a blank parameter was followed by a parameter of the form '&var'. Although I have found some workarounds. q:: ;test blank parameter followed by '&var' hCtl := ControlGetHwnd(...
by jeeswg
10 Feb 2018, 09:12
Forum: Ask For Help
Topic: Difference between = and == Topic is solved
Replies: 4
Views: 104

Re: Difference between = and == Topic is solved

- When I started using AutoHotkey, I had wanted a comparison operator that would be case-sensitive/case-insensitive, based on a setting. - There is a workaround for this, it uses the idea that 'not not equals' (a double negative) is the same as 'equals'. - It seems that although = is always case-ins...
by jeeswg
10 Feb 2018, 06:25
Forum: AutoHotkey v2 Development
Topic: WinGetClientPos and Window Spy
Replies: 3
Views: 101

WinGetClientPos and Window Spy

- AHK v2's WinGetClientPos function, and Window Spy (WindowSpy.ahk), are showing different values for the active window's client position. - The WinGetClientPos function shows what I believe to be the correct X/Y values. - Window Spy shows what I believe to be the correct width/height values. - I pr...
by jeeswg
09 Feb 2018, 19:19
Forum: Ask For Help
Topic: alternative ways to showwindow?
Replies: 6
Views: 105

Re: alternative ways to showwindow?

- Did you try AccViewer, to investigate controls/GUI elements? Acc library (MSAA) and AccViewer download links - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=6&t=26201 - I searched threads featuring me for Spotify, and found these, in case they're useful: Spotify - Adding a...
by jeeswg
09 Feb 2018, 14:41
Forum: Ask For Help
Topic: Starting a new project, but with which AHK version?
Replies: 7
Views: 129

Re: Starting a new project, but with which AHK version?

- If the project uses a lot of GUIs, then AHK v2 might be better. - If using AHK v1.1, I would use the more future compatible AHK v1.1 functions e.g. not SetFormat/StringReplace/StringSplit, but instead Format/StrReplace/StrSplit. Those are the main commands that are fiddly to convert or require man...
by jeeswg
08 Feb 2018, 05:16
Forum: Ask For Help
Topic: traditional-if and operators
Replies: 5
Views: 108

Re: traditional-if and operators

Thank you just me. So the documentation did contain the information after all, 6 IfXXX control flow statements, and 7 operator equivalents, and == is not one of them.
by jeeswg
08 Feb 2018, 03:26
Forum: Ask For Help
Topic: traditional-if and operators
Replies: 5
Views: 108

Re: traditional-if and operators

Thanks. So I suppose if var1 == %var2% is equivalent to if (var1 = "= " var2) . q:: var1 := "= text" var2 := "text" if var1 == %var2% MsgBox, % 1 else MsgBox, % 0 ;=============== var1 := "= text" var2 := "= text" if var1 = %var2% MsgBox, % 1...
by jeeswg
07 Feb 2018, 18:13
Forum: Ask For Help
Topic: traditional-if and operators
Replies: 5
Views: 108

traditional-if and operators

- I'm working on a script converter. I don't personally use traditional lines like if var1 = %var2% , I use expression lines like if (var1 = var2) , which are more intuitive. However, I want my converter to be able to handle traditional lines. - I couldn't find clear details on, for example,...
by jeeswg
07 Feb 2018, 10:35
Forum: Ask For Help
Topic: SHFileOperation -> IFileOperation conversion?
Replies: 6
Views: 278

Re: SHFileOperation -> IFileOperation conversion?

- How much evidence do you have that AutoIt is progressing faster? I don't have any information on this. (Maybe sometimes AutoIt people think, I wish we had that AutoHotkey feature/script.) Personally, AutoHotkey has all the functionality I need, it's just a question of completing my projects. - We ...

Go to advanced search