Search found 4588 matches

by jeeswg
Today, 00:46
Forum: Ask For Help
Topic: Cant exit script, now im screwed
Replies: 5
Views: 30

Re: Cant exit script, now im screwed

- Can you close it via the systray icon or Task Manager?
- Issues relating to reopening existing scripts can include: the #SingleInstance mode, and, the original script being run in admin mode, but the new script not being run in admin mode (see A_IsAdmin).
by jeeswg
Today, 00:38
Forum: Wish List
Topic: one line IF command
Replies: 3
Views: 43

Re: one line IF command

- @guest3456: -1 to the syntax or -1 to the principle? - smarq8: I think the idea is great, the main issues are: what syntax to use (what operator e.g. a symbol or 'then') and whether it's possible to handle break/continue/return (e.g. as functions, or whether AHK could run a text macro internally)....
by jeeswg
Yesterday, 14:22
Forum: Ask For Help
Topic: how to send paste command Topic is solved
Replies: 7
Views: 861

Re: how to send paste command Topic is solved

Here's what I'm currently using to copy and paste on the command prompt: #IfWinActive, ahk_class ConsoleWindowClass ^v:: ;command prompt - send the clipboard if InStr(vText, "`r") vText := SubStr(vText, 1, InStr(vText, "`r")-1) if InStr(vText, "`n") vText := SubStr(vTex...
by jeeswg
18 Jul 2018, 22:13
Forum: AutoHotkey v2 Development
Topic: Gui Controls | Gui.FocusedCtrl | ControlGetFocus | ComboBoxEx
Replies: 6
Views: 134

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
18 Jul 2018, 21:45
Forum: Scripts and Functions
Topic: notepad get/set path (get/set text file path)
Replies: 25
Views: 2655

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
18 Jul 2018, 21:17
Forum: AutoHotkey v2 Development
Topic: Gui Controls | Gui.FocusedCtrl | ControlGetFocus | ComboBoxEx
Replies: 6
Views: 134

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
18 Jul 2018, 20:18
Forum: AutoHotkey v2 Development
Topic: Gui Controls | Gui.FocusedCtrl | ControlGetFocus | ComboBoxEx
Replies: 6
Views: 134

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
18 Jul 2018, 18:05
Forum: Scripts and Functions
Topic: notepad get/set path (get/set text file path)
Replies: 25
Views: 2655

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
18 Jul 2018, 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
18 Jul 2018, 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 :=...

Go to advanced search