Search found 6899 matches

by jeeswg
05 Jan 2017, 14:06
Forum: Ask For Help
Topic: key dll issues: calls and structs
Replies: 34
Views: 7966

Re: key dll issues: calls and structs

I provide below the code I used to retrieve 32-bit/64-bit sizeof information about structs such as MENUBARINFO, via Visual Studio. Taking the dll function GetMenuBarInfo as an example: it also works on parameters like BOOL, HWND, LONG and even the obscure PMENUBARINFO. I will be producing further li...
by jeeswg
05 Jan 2017, 04:57
Forum: Ask For Help
Topic: key dll issues: calls and structs
Replies: 34
Views: 7966

Re: key dll issues: calls and structs

It appears that for invalid structure names like 'BISCUITBISC',
the exe never compiles.
I have obtained values for the roughly 90 structs above, but will
do some double-checking before posting them later today.

[EDIT: they are now posted above, see post 2, 18 of the 92 had errors compiling.]
by jeeswg
05 Jan 2017, 03:52
Forum: Ask For Help
Topic: key dll issues: calls and structs
Replies: 34
Views: 7966

Re: key dll issues: calls and structs

Well I'm sure glad you were around to answer the question. Cheers! Btw my 64-bit Visual Studio paths were slightly different from yours. Get sizeof values for structs (32-bit and 64-bit) via Visual Studio: ================================================== create sizeof32.cpp and sizeof64.cpp with i...
by jeeswg
05 Jan 2017, 03:44
Forum: Ask For Help
Topic: key dll issues: calls and structs
Replies: 34
Views: 7966

Re: key dll issues: calls and structs

YESSS! I'm on fire like Mariah today!
I had a lot of trouble getting it all set up, but I've got it working now!
I'll explain in a moment. Your example seems to be 104 on both x32 and x64,
so that didn't confirm a difference,
however I also got 32 and 48 for MENUBARINFO as you did.
by jeeswg
05 Jan 2017, 03:10
Forum: Ask For Help
Topic: key dll issues: calls and structs
Replies: 34
Views: 7966

Re: key dll issues: calls and structs

Great! I used your code, with the word MENUBARINFO, it returned 32, that is very very easy. How to do 64-bit? I'll share the results for the structs listed above when completed. Thanks so much. Btw does it work on dll functions too? Since they are effectively structs? (I.e. specify a dll name/path a...
by jeeswg
05 Jan 2017, 02:45
Forum: Ask For Help
Topic: key dll issues: calls and structs
Replies: 34
Views: 7966

Re: key dll issues: calls and structs

@lexikos, Eureka! Bit of a weird 'BOOL' that can be 0/1/2/3. Are there any other weird anecdotes about dlls and structs or known errors that anyone would like to share? @jNizM, thank you for the link. From where does sizeinfo get its information, do you feed it the struct information from MSDN as a ...
by jeeswg
04 Jan 2017, 16:49
Forum: Tutorials
Topic: jeeswg's characters tutorial
Replies: 12
Views: 14477

jeeswg's characters tutorial

[this page was called 'jeeswg's tutorial pages'] [updated: 2019-08-22] For this syntax character guide, please state any omissions, or make any comments. See also: jeeswg's RegEx tutorial (RegExMatch, RegExReplace) - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=28031 jeeswg...
by jeeswg
04 Jan 2017, 15:30
Forum: Ask For Help
Topic: AccViewer crashing, Acc.ahk failing (invoke items, retrieve text, IE/Explorer/VLC) Topic is solved
Replies: 4
Views: 2099

AccViewer crashing, Acc.ahk failing (invoke items, retrieve text, IE/Explorer/VLC) Topic is solved

[EDIT: all the problems have now been resolved and the solutions described in the posts below] I have had problems on some windows where AccViewer has initial success but later crashes: - Explorer windows (Windows 7) attempt to navigate menu and trigger 'Edit, Invert Selection'. - AutoHotkey Help (A...
by jeeswg
03 Jan 2017, 23:21
Forum: Ask For Help
Topic: Detecting scrollbar movement
Replies: 7
Views: 1116

Re: Detecting scrollbar movement

the 'A' on IfWinActive above means you must run it with IE as the active window
try:

Code: Select all

DetectHiddenWindows, On
IfWinActive, ahk_class IEFrame
by jeeswg
03 Jan 2017, 22:10
Forum: Ask For Help
Topic: Detecting scrollbar movement
Replies: 7
Views: 1116

Re: Detecting scrollbar movement

WBGet:

Basic Webpage Controls with JavaScript / COM - Tutorial - Tutorials - AutoHotkey Community
https://autohotkey.com/board/topic/4705 ... -tutorial/
by jeeswg
03 Jan 2017, 21:59
Forum: Ask For Help
Topic: Detecting scrollbar movement
Replies: 7
Views: 1116

Re: Detecting scrollbar movement

This might be helpful.

Code: Select all

q::
WinGet, hWnd, ID, A
oWB := WBGet("ahk_id " hWnd)
vPosScrollY := oWB.document.documentElement.scrollTop
vHeight := oWB.document.documentElement.scrollHeight
MsgBox %vPosScrollY% %vHeight%
Return
by jeeswg
03 Jan 2017, 20:39
Forum: Ask For Help
Topic: Internet Explorer Save Open Cancel Popup
Replies: 15
Views: 7211

Re: Internet Explorer Save Open Cancel Popup

It seems to be called the 'notification bar'. If I go to AutoHotkey Downloads https://autohotkey.com/download/ and left-click on Download AutoHotkey Installer. I get the boxes Run, Save, Cancel. Pressing alt, shows that r, s, c are hotkey triggers. Alt+r and alt+s seem to work, but not alt+c to canc...
by jeeswg
03 Jan 2017, 19:30
Forum: Ask For Help
Topic: GUI COMMANDS: COMPLETE RETHINK
Replies: 40
Views: 13841

Re: GUI COMMANDS: COMPLETE RETHINK (latest: general control get text via acc, 'context menu select item')

Some ListBox selection examples. Btw is there anywhere in Explorer settings or on some very small utility where there is a multiselect ListBox for test purposes? These were not the most complicated to program, but there where some quite interesting questions regarding presentation and organisation, ...
by jeeswg
03 Jan 2017, 19:21
Forum: Ask For Help
Topic: Stringreplace not removing linefeeds?
Replies: 15
Views: 2143

Re: Stringreplace not removing linefeeds?

Yes I like your 'helloABworld' example
with the dramatic conclusion: 'StringReplace is BROKEN!'.
by jeeswg
03 Jan 2017, 15:59
Forum: Ask For Help
Topic: RegReplace problems Topic is solved
Replies: 5
Views: 1251

Re: RegReplace problems Topic is solved

Code: Select all

;to list all Unicode characters in a string
vText = abc
;vText := Clipboard
vOutput := ""
Loop, Parse, vText
vOutput .= Asc(A_LoopField) ","
Clipboard := vOutput
MsgBox done
Return
by jeeswg
03 Jan 2017, 13:25
Forum: Ask For Help
Topic: demand for AHK Basic / users of Win 2000 + earlier
Replies: 0
Views: 394

demand for AHK Basic / users of Win 2000 + earlier

I was wondering how many users use which operating system, and if there is still much demand for AutoHotkey Basic. Has there been a poll done on AHK version use/OS use? I'm writing various GUI via dll functions, and am thinking of making much of it AutoHotkey Basic compatible. Does anybody even use ...
by jeeswg
03 Jan 2017, 12:39
Forum: Ask For Help
Topic: A bit of simple help.
Replies: 12
Views: 2074

Re: A bit of simple help.

Code: Select all

;various methods (all of which work on Notepad):

ControlSend, , hello1, ahk_class Notepad

ControlSend, Edit1, hello2, ahk_class Notepad

ControlGetFocus, vCtlClassNN, ahk_class Notepad
ControlSend, %vCtlClassNN%, hello3, ahk_class Notepad
by jeeswg
03 Jan 2017, 12:29
Forum: Ask For Help
Topic: Some Tips About ID Topic is solved
Replies: 2
Views: 724

Re: Some Tips About ID Topic is solved

You can try to get the element by tag/class/dimensions.
You could check if any of its parent/ancestor elements have information that can identify them (tag/class/ID/dimensions/innerText), and then loop through the children/descendants.
by jeeswg
03 Jan 2017, 12:18
Forum: Ask For Help
Topic: Hotkey for Sending Current Date Topic is solved
Replies: 3
Views: 865

Re: Hotkey for Sending Current Date Topic is solved

Code: Select all

;months must be capital m
^t::
FormatTime, xx,, dd_MM_yy
SendInput %xx%
Return

;this worked on my machine
:R*?:ddd::
FormatTime, CurrentDateTime,, dd/MM/yy
SendInput %CurrentDateTime%
Return
by jeeswg
03 Jan 2017, 12:12
Forum: Ask For Help
Topic: Stringreplace not removing linefeeds?
Replies: 15
Views: 2143

Re: Stringreplace not removing linefeeds?

Surely you are just needing this:

Code: Select all

StringReplace, cPath, cPath, `r, , All
StringReplace, cPath, cPath, `n, , All

Go to advanced search