Search found 4585 matches

by jeeswg
Yesterday, 22:13
Forum: AutoHotkey v2 Development
Topic: Gui Controls | Gui.FocusedCtrl | ControlGetFocus | ComboBoxEx
Replies: 6
Views: 122

Re: Gui Controls | Gui.FocusedCtrl | ControlGetFocus | ComboBoxEx

- Here is the documentation for custom controls: GUI Control Types https://lexikos.github.io/v2/docs/commands/GuiControls.htm#Custom - Are there more things that need considering in your view? - Presumably you would prefer ComboBoxEx to be built-in, but let's say it wasn't. What generic functionalit...
by jeeswg
Yesterday, 21:45
Forum: Scripts and Functions
Topic: notepad get/set path (get/set text file path)
Replies: 25
Views: 2631

Re: notepad get/set path (get/set text file path)

- Thanks for the insight. - Your update now works on Notepad Windows 7 x64/x32 for me also. Although not on Notepad Windows XP x32, I will investigate. - I see that you've made one change: Before: PROCESS_VM_READ After: PROCESS_QUERY_INFORMATION | PROCESS_VM_READ - It seems that on both AHK x64/x32,...
by jeeswg
Yesterday, 21:17
Forum: AutoHotkey v2 Development
Topic: Gui Controls | Gui.FocusedCtrl | ControlGetFocus | ComboBoxEx
Replies: 6
Views: 122

Re: Gui Controls | Gui.FocusedCtrl | ControlGetFocus | ComboBoxEx

- There's a distinction: - (1) Built-in support for control type X because it's convenient. - (2) Built-in support for control type X because key functionality is currently impossible with the generic custom control support. - Although I would welcome built-in support simply for convenience, improvi...
by jeeswg
Yesterday, 20:18
Forum: AutoHotkey v2 Development
Topic: Gui Controls | Gui.FocusedCtrl | ControlGetFocus | ComboBoxEx
Replies: 6
Views: 122

Re: Gui Controls | Gui.FocusedCtrl | ControlGetFocus | ComboBoxEx

- I like the ControlGetFocusHwnd idea. It's mentioned on my Wish List 2.0. vCtlClassNN := ControlGetFocus("A") hCtl := ControlGetHwnd(vCtlClassNN, "A") hCtl := ControlGetFocusHwnd("A") - Assuming that no built-in support was added for further controls, is there any gene...
by jeeswg
Yesterday, 18:05
Forum: Scripts and Functions
Topic: notepad get/set path (get/set text file path)
Replies: 25
Views: 2631

Re: notepad get/set path (get/set text file path)

- This is great, thanks very much for sharing. So GWLP_HINSTANCE points to the application in the address space I suppose. Any background details about what led you to this discovery? And also, which OSes have you tested it on? - This worked for me on Notepad x64 on Windows 7. Although it didn't wor...
by jeeswg
Yesterday, 09:37
Forum: Ask For Help
Topic: Script is providing inconsistent results Topic is solved
Replies: 4
Views: 75

Re: Script is providing inconsistent results Topic is solved

An example that handles 3 possibilities: q:: ;ternary operator 3-possibility example w:: e:: vNum := InStr(A_ThisHotkey, "q") ? 1 : InStr(A_ThisHotkey, "w") ? -1 : 0 MsgBox, % vNum return ;================================================== ;q:: ;ternary operator 3-possibility exa...
by jeeswg
Yesterday, 07:30
Forum: Ask For Help
Topic: Changing Window Titles
Replies: 2
Views: 54

Re: Changing Window Titles

- Setting the window title natively via AutoHotkey's WinSetTitle command is relatively easy. - However, presumably the scripting languages you use (maybe you could mention which ones) have some support for using the Winapi, and you could translate the SetWindowText example below. q:: ;set window tit...
by jeeswg
17 Jul 2018, 17:29
Forum: Ask For Help
Topic: Script is providing inconsistent results Topic is solved
Replies: 4
Views: 75

Re: Script is providing inconsistent results Topic is solved

- I would avoid trying to click at the nth character, because its position may be affected by the widths of the other characters, which can change. - Also, odd things can happen with clicking e.g. if you click at a certain speed, you may select a word or the entire string. - I would put a date into ...
by jeeswg
17 Jul 2018, 04:04
Forum: Ask For Help
Topic: ACC Library, Yet another question. Topic is solved
Replies: 2
Views: 49

Re: ACC Library, Yet another question. Topic is solved

- Often you can use accDoDefaultAction to invoke/'click' buttons. - For right-click, you can use Acc to find the GUI element's position, and then send a right-click via AutoHotkey's Click/MouseClick commands. I don't know if there's a better way than that. - Note: accDefaultAction (without the 'Do')...
by jeeswg
17 Jul 2018, 04:01
Forum: Ask For Help
Topic: Change the tray icon – up-to-date method?
Replies: 4
Views: 103

Re: Change the tray icon – up-to-date method?

- This script tries to change the icons in the address space: change AutoHotkey's 4 systray icons - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=6&t=46043 - I also added this to my wish list, 'tray icons: specify hIcons for the 4 icons': Wish List 2.0 - AutoHotkey Community...
by jeeswg
16 Jul 2018, 04:17
Forum: Ask For Help
Topic: ACC Library, new question.
Replies: 7
Views: 72

Re: ACC Library, new question.

- My function to get text for all elements is the most reliable way to get the correct path.
- [EDIT:] See JEE_AccGetTextAll, here:
Acc: get text from all window/control elements - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=40615
by jeeswg
16 Jul 2018, 03:57
Forum: Ask For Help
Topic: ACC Library, new question.
Replies: 7
Views: 72

Re: ACC Library, new question.

- Try accName and accValue.
- The (2) is the child ID, see here:
Using the ACC library - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=52109&p=228690#p228690
by jeeswg
16 Jul 2018, 02:25
Forum: Ask For Help
Topic: ACC Library, new question.
Replies: 7
Views: 72

Re: ACC Library, new question.

To get text from a GUI element, you need to find the right information to pass to the Acc_Get function. There is some info here:
Acc: get text from all window/control elements - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=40615
by jeeswg
15 Jul 2018, 09:20
Forum: Ask For Help
Topic: Using the ACC library
Replies: 4
Views: 92

Re: Using the ACC library

- In Acc.ahk the function is defined like this: Acc_ObjectFromPoint(ByRef _idChild_ := "", x := "", y := "") - So you can specify the coordinates that way, the 2nd and 3rd parameters. Screen coordinates AFAIK (not window/client coordinates). - To understand the child ID...
by jeeswg
15 Jul 2018, 06:17
Forum: Ask For Help
Topic: ENCARTA
Replies: 3
Views: 66

Re: ENCARTA

- I have a function here called JEE_ProcessGetCommandLine: jeeswg's Explorer tutorial - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=31755 - What version of Windows do you have? On Windows 7, if I click on the Processes tab, I can go to 'View, Select Columns...', and 'C...
by jeeswg
15 Jul 2018, 03:16
Forum: Ask For Help
Topic: ENCARTA
Replies: 3
Views: 66

Re: ENCARTA

- Check the shortcut's properties for arguments and a working directory. (You may need to add one or both.) - You can also check the Command Line column in Task Manager. [View, Select Columns...] - E.g. here I've added 2 arguments and a working directory: ;Run, Target [, WorkingDir, Max|Min|Hide|Use...
by jeeswg
15 Jul 2018, 03:09
Forum: Ask For Help
Topic: Using the ACC library
Replies: 4
Views: 92

Re: Using the ACC library

- Try this: Gui, Add, Edit, x5 y5 w490 h25 vedit1 Gui, Add, Edit, x5 y+5 w490 h25 vedit2 Gui, Add, Edit, x5 y+5 w490 h25 vedit3 Gui, Show, w500 h100 return !z:: MouseGetPos, OutX, OutY, OutWin, OutCon id := 0xFFFFFFFC ; OBJID_CLIENT = 0xFFFFFFFC ;oAcc := Acc_ObjectFromWindow(OutWin, id), vChildID :=...
by jeeswg
13 Jul 2018, 20:30
Forum: Ask For Help
Topic: Find and replace bullet points
Replies: 3
Views: 73

Re: Find and replace bullet points

Try this. Cheers. ;tested on Word 2007 q:: ;MS Word - replace bullet points Clipboard := "" SendInput, ^c ClipWait, 3 if ErrorLevel { MsgBox, % "error: failed to retrieve clipboard text" return } vOutput := StrReplace(Clipboard, "`r`n" Chr(8226) "`t", "|*...
by jeeswg
13 Jul 2018, 07:39
Forum: Ask For Help
Topic: Shortcut to copy path of selected file in Explorer Topic is solved
Replies: 4
Views: 89

Re: Shortcut to copy path of selected file in Explorer Topic is solved

- There is always one item (file/folder) that is focused. The item is either selected (highlighted blue) or it is not selected. - I would suppose that the best approach would be to retrieve the path of the focused item if it is selected, or otherwise, to retrieve the path of the folder if the focuse...
by jeeswg
13 Jul 2018, 07:14
Forum: Ask For Help
Topic: Getting the name/number of the current tab in a GUI without having to submit Topic is solved
Replies: 4
Views: 77

Re: Getting the name/number of the current tab in a GUI without having to submit Topic is solved

You could use SendMessage with TCM_GETCURSEL. ;e.g. type one of these into the Run dialog (with AutoHotkey in Admin mode for sysdm.cpl) ;sysdm.cpl ;rundll32 shell32.dll,Options_RunDLL 1 q:: ;tab control - get selected tab index ControlGet, hCtl, Hwnd,, SysTabControl321, A SendMessage, 0x130B,,,, % &...

Go to advanced search