Search found 5555 matches

by jeeswg
04 Jan 2019, 20:03
Forum: Ask For Help
Topic: date calculation
Replies: 9
Views: 288

Re: date calculation

@DRocks: Something like this perhaps. It can handle positive quarter values, I might come back and have a look at 0/negative values also. Cheers. q:: ;quarter - get start/end dates vOutput := "" vMonthFirst := 1 ;vMonthFirst := 3 vYear := A_YYYY ;vYear := A_YYYY+1 vOffset := 0 Loop, 4 vOutput .= JEE...
by jeeswg
04 Jan 2019, 17:18
Forum: Offtopic
Topic: computer science resources
Replies: 0
Views: 61

computer science resources

Do suggest other videos/links. Cheers. [videos by HackerRank] Data Structures - YouTube https://www.youtube.com/playlist?list=PLI1t_8YX-Apv-UiRlnZwqqrRT8D1RhriX Algorithms - YouTube https://www.youtube.com/playlist?list=PLI1t_8YX-ApvMthLj56t1Rf-Buio5Y8KL [Big O notation videos] [video by Kevin Drumm...
by jeeswg
04 Jan 2019, 17:15
Forum: Offtopic
Topic: « What's on your mind? » Topic is solved
Replies: 4066
Views: 527936

Re: « What's on your mind? » Topic is solved

What is a Fourier Series? (Explained by drawing circles) - Smarter Every Day 205 - YouTube
https://www.youtube.com/watch?v=ds0cmAV-Yek
by jeeswg
04 Jan 2019, 12:45
Forum: Ask For Help
Topic: DllCall directly on a struct
Replies: 5
Views: 246

Re: DllCall directly on a struct

All of these examples appear to be working. The question is whether there are situations where this will fail. q:: ;test DllCall vPath := A_ScriptFullPath VarSetCapacity(vDName, 260 << !!A_IsUnicode, 0) DllCall("comdlg32\GetFileTitle", Str,vPath, Str,vDName, UShort,260, Short) ;get display name MsgB...
by jeeswg
04 Jan 2019, 12:06
Forum: AutoHotkey v2 Development
Topic: DllCall description Topic is solved
Replies: 24
Views: 696

Re: DllCall description Topic is solved

I did some frequency counts on a list of dll functions I have, and 77% of return types are Int or UInt, suggesting the default of 'Int' for DllCall is right. 611 i 58.7% 211 t 20.3% 192 ui 18.4% 10 ut 1.0% 8 uh 0.8% 5 h 0.5% 2 d 0.2% 2 uc 0.2% 1041 TOTAL 100% 803 i/ui 77.1% 221 t/ut 21.2% 13 uh/h 1....
by jeeswg
04 Jan 2019, 06:10
Forum: Ask For Help
Topic: DllCall directly on a struct
Replies: 5
Views: 246

Re: DllCall directly on a struct

- Hello Helgef. Did you see my code above, one of the examples worked. - The idea is to specify a pointer to a struct (containing all of the input parameter data, and padding where appropriate), the size of a struct, and a return type. - In x32 you would chop up data into Ints (plus a remainder para...
by jeeswg
04 Jan 2019, 06:04
Forum: Ask For Help
Topic: Passing structure to function
Replies: 36
Views: 1060

Re: Passing structure to function

- I looked at your dllcall_struct function and readme, but can you clarify what it does? - You could add a concrete example to the intro, e.g. WindowFromPoint called via DllCall and by your custom function. - (The reason things like classes are so obscure to almost all AHK users, including me until ...
by jeeswg
03 Jan 2019, 16:29
Forum: Ask For Help
Topic: Issue with key remapping script
Replies: 20
Views: 593

Re: Issue with key remapping script

What about this?

Code: Select all

^Space::Send {CTRL up}{ALT down}{SHIFT down}{SHIFT up}{ALT up}
by jeeswg
03 Jan 2019, 16:25
Forum: Ask For Help
Topic: I can't remove AutoHotkey.exe off of my computer? Topic is solved
Replies: 17
Views: 290

Re: I can't remove AutoHotkey.exe off of my computer? Topic is solved

A few points, in case they're useful. Task Manager (show the full command-line path): View, Select Columns..., Command Line Startup folders (for links launched at startup): C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\P...
by jeeswg
03 Jan 2019, 15:11
Forum: Ask For Help
Topic: Passing structure to function
Replies: 36
Views: 1060

Re: Passing structure to function

- Hello Helgef. I looked at your dllcall_struct function, but can you clarify what it does? Are you essentially creating a new parameter type cf. Int / Ptr / Int* / Ptr*, similar to the idea I mentioned above with 'UInt64X'. - [EDIT:] Another solution instead of a 'UInt64X' type etc, would be a Make...
by jeeswg
02 Jan 2019, 08:46
Forum: Ask For Help
Topic: Activate Window and Send Double-Click
Replies: 5
Views: 160

Re: Activate Window and Send Double-Click

Try this.

Code: Select all

q:: ;double-click at caret position
CoordMode, Mouse, Window
;MouseMove, % A_CaretX, % A_CaretY
MouseClick,, % A_CaretX, % A_CaretY, 2
return
by jeeswg
01 Jan 2019, 13:04
Forum: Ask For Help
Topic: Autoit to AutoHotkey
Replies: 8
Views: 315

Re: Autoit to AutoHotkey

Here's some code for getting control IDs, and converting control IDs to hWnds. Cheers. q:: ;controls - get IDs WinGet, hWnd, ID, A WinGet, vCtlList, ControlList, % "ahk_id " hWnd vOutput := "" Loop, Parse, vCtlList, `n { vCtlClassNN := A_LoopField ControlGet, hCtl, Hwnd,, % vCtlClassNN, % "ahk_id " ...
by jeeswg
01 Jan 2019, 12:43
Forum: Ask For Help
Topic: Which characters need to be escaped?
Replies: 4
Views: 97

Re: Which characters need to be escaped?

Some content from: jeeswg's characters tutorial - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=26486 ;RegEx escape characters: ;12 characters that need escaping in RegEx generally: \.*?+[{|()^$ ;4 characters that need escaping in a RegEx character class: ^-]\ ;RegEx: note: ...
by jeeswg
31 Dec 2018, 11:56
Forum: Ask For Help
Topic: case-insensitive searching in binary buffers
Replies: 2
Views: 175

Re: case-insensitive searching in binary buffers

Well, here's a working script. Do notify of any issues, or make any suggestions. q:: ;case-insensitive search for ANSI/UTF-8/UTF-16 string in binary buffer vNeedle := "Ⱥⱥ Ⱦⱦ Ɐɐ Ɑɑ Ɫɫ Ɱɱ Ɽɽ" ;vNeedle := "abc" ;vNeedle := "résumé" ;vNeedle := Format("{:U}", vNeedle) ;vNeedle := Format("{:T}", vNeedle)...
by jeeswg
31 Dec 2018, 10:00
Forum: Ask For Help
Topic: objects: store binary data
Replies: 0
Views: 73

objects: store binary data

- Is there an object type that can be created via ComObjCreate that can store binary data in keys? AFAIK AHK v1 objects can't fully handle binary data. - A workaround would be to store binary data as a hex (or base64) string. - (Another workaround would be to create a custom function that gives you ...
by jeeswg
31 Dec 2018, 02:23
Forum: Ask For Help
Topic: Get a Var from a string Topic is solved
Replies: 3
Views: 113

Re: Get a Var from a string Topic is solved

Cheers.

Code: Select all

Item := List%SelectOption%
by jeeswg
31 Dec 2018, 01:57
Forum: Ask For Help
Topic: How do I specify a cursor position in an AutoHotKey snippet?
Replies: 2
Views: 71

Re: How do I specify a cursor position in an AutoHotKey snippet?

You can specify the caret position by sending arrow keys. Cheers.

Code: Select all

::hkr::
Send,
(
Hello,



Kind regards,
Constantine{Up 3}
)
Here's some alternative code.

Code: Select all

::hkr::
Send,
(
Hello,{Enter 3}
Kind regards,
Constantine{Up 3}
)
by jeeswg
30 Dec 2018, 18:24
Forum: Scripts and Functions
Topic: big InputBox via DialogBoxIndirectParam
Replies: 2
Views: 176

big InputBox via DialogBoxIndirectParam

The resource in AutoHotkey.exe, IDD_INPUTBOX := 205, visible with Resource Hacker, can be copied and edited and used as the basis for a custom InputBox with a custom size font via DialogBoxIndirectParam. q:: ;big InputBox AX_InputBoxFontSize := 18 vRet := InputBoxBig("PROMPT", "TITLE", "", "DEFAULT"...
by jeeswg
30 Dec 2018, 16:36
Forum: Ask For Help
Topic: Passing structure to function
Replies: 36
Views: 1060

Re: Passing structure to function

- Can we have a summary of the situation, someone? - UInt64 to pass an 8-byte value. - UInt64* or UInt64P (essentially equivalent to using Ptr) would typically be used to create a variable containing a specific value. It does multiple things in one e.g. (the equivalent of) VarSetCapacity and NumGet,...

Go to advanced search