Search found 4273 matches

by jeeswg
Yesterday, 22:46
Forum: Ask For Help
Topic: pasting raw text into an array without fixing escape characters Topic is solved
Replies: 7
Views: 46

Re: pasting raw text into an array without fixing escape characters Topic is solved

- Well, I had in mind perhaps putting text in front of each line, to indicate the key names. Then using a parsing loop on each line. E.g. 'abc' -> 'key1:abc', then use the first colon as an indicator to where the key name ends and the value text begins while parsing. - You could also use StrSplit an...
by jeeswg
Yesterday, 21:38
Forum: Ask For Help
Topic: pasting raw text into an array without fixing escape characters Topic is solved
Replies: 7
Views: 46

Re: pasting raw text into an array without fixing escape characters Topic is solved

- If you want to put verbatim text into a script, and assign that text to a variable, you could use a continuation section, or use FileRead to read text from a file. - For a continuation section example see: ANSI (CP-1252) CHARACTERS (VERBATIM), here: jeeswg's characters tutorial - AutoHotkey Commun...
by jeeswg
Yesterday, 16:59
Forum: Ask For Help
Topic: How to retrieve the hwnd of the window to which a control belongs? Topic is solved
Replies: 5
Views: 80

Re: How to retrieve the hwnd of the window to which a control belongs? Topic is solved

- Windows and controls both have hWnds: WinGet-ID and ControlGet-Hwnd.
- WinGetPos, for example, is good for use on controls also. All these subtle points and hacks!
by jeeswg
Yesterday, 16:10
Forum: Ask For Help
Topic: object classes: coding style
Replies: 15
Views: 330

Re: object classes: coding style

@nnnik: Are there any programming languages or paradigms/books etc that closely align with your preferred vision of OOP?
by jeeswg
Yesterday, 14:45
Forum: Ask For Help
Topic: How to retrieve the hwnd of the window to which a control belongs? Topic is solved
Replies: 5
Views: 80

Re: How to retrieve the hwnd of the window to which a control belongs? Topic is solved

- I'm not sure what exactly you're asking. [EDIT:] 'child' is of the form 'ComboBoxNN', 'grandchild' is its child, 'child' is the parent of 'grandchild', so I would expect class1 to be 'ComboBox'. - One thing I would point out is that GA_ROOT is pretty useful. If you apply WinGet-ControlList to an h...
by jeeswg
Yesterday, 11:54
Forum: Ask For Help
Topic: How to retrieve the hwnd of the window to which a control belongs? Topic is solved
Replies: 5
Views: 80

Re: How to retrieve the hwnd of the window to which a control belongs? Topic is solved

Perhaps this. Cheers. q:: ;window get parent (e.g. test on Notepad) ControlGet, hCtl, Hwnd,, Edit1, A hWnd := DllCall("user32\GetAncestor", Ptr,hCtl, UInt,1, Ptr) ;GA_PARENT := 1 WinGetClass, vWinClass, % "ahk_id " hWnd MsgBox, % vWinClass return ;for the owner: hWnd := DllCall(&...
by jeeswg
20 May 2018, 13:34
Forum: Ask For Help
Topic: Binance API- Passing Security (Header or body)
Replies: 8
Views: 159

Re: Binance API- Passing Security (Header or body)

- Nicely done gregster! - What's the significance of the timestamp, is it a problem if it's too early or too late, does it need to be precise? - Here's a function to get the Unix time now in milliseconds: q:: ;date now (Unix time) (msec since 1970) DllCall("kernel32\GetSystemTimeAsFileTime"...
by jeeswg
20 May 2018, 11:57
Forum: Ask For Help
Topic: Winclip.SetRTF doesn't work
Replies: 1
Views: 25

Re: Winclip.SetRTF doesn't work

- The clipboard uses clipboard formats that can be viewed using NirSoft InsideClipboard. - These include RTF and html, and other text/image/other formats. - MS Office can probably handle RTF, but perhaps your web browser can't. - If you feed the contents of an RTF file into SetText or SetHTML, it sh...
by jeeswg
19 May 2018, 22:13
Forum: Offtopic
Topic: Allman style v. K&R style/one true brace style
Replies: 3
Views: 123

Re: Allman style v. K&R style/one true brace style

The 1 true style - xkcd http://forums.xkcd.com/viewtopic.php?t=15060 if(condition) { statement(); to me looks too similar to this: if(condition) statement(); java - Only want to ever see Allman style code and save K&R style code - Stack Overflow https://stackoverflow.com/questions/6876617/only-w...
by jeeswg
19 May 2018, 21:17
Forum: Ask For Help
Topic: How could you select an area on the screen then save the starting and ending corner coordinates as variables
Replies: 2
Views: 56

Re: How could you select an area on the screen then save the starting and ending corner coordinates as variables

This thread may be relevant: selection rectangle: use mouse to select screen region - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=42810&p=194400#p194400 And further references to the same script: WinMove for window resize is "flickery" - AutoHotkey Commun...
by jeeswg
19 May 2018, 20:25
Forum: Offtopic
Topic: your personal AutoHotkey style guide
Replies: 34
Views: 1057

Re: your personal AutoHotkey style guide

- @nnnik: I was interested in these principles. I agree with them, and was wondering whether you'd read anything that led you to use them. - In theory it might be good to split the parameters across lines, to comment on a particular parameter, although I would instead put the comment above the DllCa...
by jeeswg
19 May 2018, 18:53
Forum: Ask For Help
Topic: how to open file in window on set position with autohokey from cmd/batch?
Replies: 1
Views: 29

Re: how to open file in window on set position with autohokey from cmd/batch?

I'm not sure exactly what your problem is, but you might want to replace: WinWait, Media Player Classic Home Cinema with: WinWait, ahk_class MediaPlayerClassicW Using the window class, instead of the window title, is more general. If you open a specific video, instead of just opening Media Player Cl...
by jeeswg
19 May 2018, 17:58
Forum: Ask For Help
Topic: Needing differentiate "same class - different app" Topic is solved
Replies: 9
Views: 113

Re: Needing differentiate "same class - different app" Topic is solved

- I tried opening LibreOffice Writer and LibreOffice Impress, the processes both had the same PID/process path/process name (soffice.bin)/class (SALFRAME)/command line. - They also both had the same window style/ex. style: 0x15CF0000 / 0x00000100. - I tried to retrieve a list of control ClassNNs, bo...
by jeeswg
18 May 2018, 17:53
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 400
Views: 66535

Re: Suggestions on documentation improvements

I have just updated my Explorer tutorial to provide information about 'shell:' folders e.g. shell:Startup and shell:Common Startup. The FAQ could possibly make reference to these 'shell:' folders. jeeswg's Explorer tutorial - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t...
by jeeswg
18 May 2018, 13:30
Forum: Ask For Help
Topic: Internet Explorer and YouTube: press arrow key and page hangs
Replies: 2
Views: 70

Re: Internet Explorer and YouTube: press arrow key and page hangs

Thanks for your input.

by jeeswg
18 May 2018, 13:12
Forum: Ask For Help
Topic: Binance API- Passing Security (Header or body)
Replies: 8
Views: 159

Re: Binance API- Passing Security (Header or body)

I don't know Binance, I looked up Binance and timestamp, and I believe that this might work: ;based on: ;convert common date formats (Excel / FileTime / Unix) - AutoHotkey Community ;https://autohotkey.com/boards/viewtopic.php?f=5&t=44727 q:: ;AHK time to Unix time (milliseconds) ;vDate := DateD...
by jeeswg
18 May 2018, 12:48
Forum: Ask For Help
Topic: Binance API- Passing Security (Header or body)
Replies: 8
Views: 159

Re: Binance API- Passing Security (Header or body)

Perhaps you need colons here:

Code: [Select all]GeSHi © Codebox Plus

apikey := "Changed For Forum Post"
secret := "Changed For Forum Post"

Otherwise posting the error message/response text might give a clue.
by jeeswg
18 May 2018, 12:44
Forum: Ask For Help
Topic: Need to select a menu item from the Context menu...?
Replies: 1
Views: 42

Re: Need to select a menu item from the Context menu...?

Btw you could left-click the file to select it, and send F2 to rename it.
Send, {F2}
by jeeswg
18 May 2018, 12:40
Forum: Ask For Help
Topic: Excel COM Topic is solved
Replies: 3
Views: 48

Re: Excel COM Topic is solved

ms%20office%20constants%20(excel).ahk
https://raw.githubusercontent.com/jeeswg/AutoHotkey-scripts/master/ms%20office%20constants%20(excel).ahk

xlToLeft := -4159
xlToRight := -4161

You can use MsgBox from within Excel macros to report the values of constants.
by jeeswg
18 May 2018, 07:43
Forum: Ask For Help
Topic: processing limitations or reasons not to use ahk for larger programs?
Replies: 5
Views: 113

Re: processing limitations or reasons not to use ahk for larger programs?

- AFAIK I have never had a problem with AutoHotkey that has necessitated using a different programming language instead. - Thus, the only potential problem could be speed. But this is a general programming problem, not a specific AutoHotkey problem. - Using VarSetCapacity with variables or SetCapaci...

Go to advanced search