Search found 28 matches
- 11 Mar 2022, 14:39
- Forum: Ask for Help (v1)
- Topic: Running a Script Segment as a Separate Program
- Replies: 13
- Views: 885
Re: Running a Script Segment as a Separate Program
Maybe I'm overlooking something, but you could just use Run to open the second script? You could also use OnMessage to communicate between two AHK scripts. (i.e. to use your first script to send a message to your second script to start the relevant section of the script) https://www.autohotkey.com/d...
- 15 Feb 2022, 10:32
- Forum: Ask for Help (v1)
- Topic: Windows-Apps: detect a new created window
- Replies: 18
- Views: 3206
Re: Windows-Apps: detect a new created window
Thanks! I'll use your monitoring code and go from there!
Best, Justin
Best, Justin
- 14 Feb 2022, 07:00
- Forum: Ask for Help (v1)
- Topic: Windows-Apps: detect a new created window
- Replies: 18
- Views: 3206
Re: Windows-Apps: detect a new created window
Hi FG, Thanks for your suggestion. It is a commercial Electronic Patient File system. It is not the most expensive or bugfree software... I tried your hotkey file and I could clearly follow the message, but the window (it is some sort of warning message) does not appear to trigger any HSHELL event. ...
- 11 Feb 2022, 05:57
- Forum: Ask for Help (v1)
- Topic: Windows-Apps: detect a new created window
- Replies: 18
- Views: 3206
Re: Windows-Apps: detect a new created window
Hi FG, thanks for the reply, but unfortunately this doesn't work for my purpose: I setup the following script #Persistent SetBatchLines, -1 Process, Priority,, High Gui +LastFound hWnd := WinExist() DetectHiddenWindows, On DllCall( "RegisterShellHookWindow", UInt,hWnd ) MsgNum := DllCall( "RegisterW...
- 10 Feb 2022, 14:59
- Forum: Ask for Help (v1)
- Topic: Windows-Apps: detect a new created window
- Replies: 18
- Views: 3206
Re: Windows-Apps: detect a new created window
Thanks FG! This does look like a nice solution, but the problem is not so much the scripting but more which message to listen for. EVENT_SYSTEM_FOREGROUND works well for new windows that receive focus, but the window I want to capture does not always receive focus on creation. Which event would you ...
- 09 Feb 2022, 17:03
- Forum: Ask for Help (v1)
- Topic: Windows-Apps: detect a new created window
- Replies: 18
- Views: 3206
Re: Windows-Apps: detect a new created window
Hi all, I'm running into a similar problem in detecting a window using the shell hook I'm trying to detect a window from a program I'm using for work I've got the script to monitor shell hook messages HSHELL_WINDOWCREATED working However it seems the window I'm trying to monitor doesn't trigger a HS...
- 28 Jan 2022, 14:48
- Forum: Ask for Help (v1)
- Topic: "Run" issue in virtual desktop Topic is solved
- Replies: 4
- Views: 458
Re: "Run" issue in virtual desktop Topic is solved
Thanks! I wasn’t aware that windows also uses variables with %%. I added an ‘EnvGet’ at the top of my script, this fixed the issue!
Best, Justin
Best, Justin
- 27 Jan 2022, 07:56
- Forum: Ask for Help (v1)
- Topic: "Run" issue in virtual desktop Topic is solved
- Replies: 4
- Views: 458
"Run" issue in virtual desktop Topic is solved
Dear all, I have an issue with the Run command. I am working on a virtual desktop at work and want to start a program. Usually the path is something like C:\program files\my_program\my_program.exe However, in the virtual desktop, the absolute path to my progam is %AppVPackagePathEPD%\Root\my_program...
- 22 Jan 2022, 09:50
- Forum: Scripts and Functions (v1)
- Topic: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
- Replies: 33
- Views: 15355
Re: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
Hi A_AhkUser, Thanks so much for this great script! I'm want to use AutoComplete to better keep track of all the hotstrings that I'm using at work. So my wordlist would just include the hotstrings that I'm using. Would it be possible to instead of inserting the word of choice selected in the dropdow...
- 15 Jul 2021, 06:04
- Forum: Ask for Help (v1)
- Topic: Send outlook email with hyperlink
- Replies: 4
- Views: 851
Re: Send outlook email with hyperlink
Thanks that was exactly what I needed. I've set the email up in HTML and the links work fine! I have one additional question, when you run the script you get a message like "an external program is trying to access outlook". I have made a script (OutlookError.ahk) that just controlclick's the 'accept...
- 14 Jul 2021, 14:40
- Forum: Ask for Help (v1)
- Topic: Send outlook email with hyperlink
- Replies: 4
- Views: 851
Send outlook email with hyperlink
Hi guys, I have a question concerning Outlook. I have a script that creates a new email in outlook with a standardized text. This text contains some hyperlinks and I want to send this text as a clickable hyperlink, rather than as plain text. This is my code so far: ^#y:: Outlook := ComObjActive("Out...
- 24 Jun 2021, 14:54
- Forum: Ask for Help (v1)
- Topic: Insert text at current position Topic is solved
- Replies: 11
- Views: 1555
Re: Insert text at current position Topic is solved
Actually just the 0xC2
Or more specifically, why does send the requested text to the textbox?
Just trying to comprehend a bit better why it does exactly work as it should. Its really useful!
Or more specifically, why does
Code: Select all
EM_REPLACESEL := 0xC2
Just trying to comprehend a bit better why it does exactly work as it should. Its really useful!
- 23 Jun 2021, 13:05
- Forum: Ask for Help (v1)
- Topic: Insert text at current position Topic is solved
- Replies: 11
- Views: 1555
Re: Insert text at current position Topic is solved
@teadrinker
Thanks so much! This works even better, instantaneous text insertion and cursor remains at the 'current' position
Could you maybe elaborate what this does?
I could find EM_replacesel in the microscft docs, but what does the rest of the command do?
Thanks so much! This works even better, instantaneous text insertion and cursor remains at the 'current' position
Could you maybe elaborate what this does?
I could find EM_replacesel in the microscft docs, but what does the rest of the command do?
- 23 Jun 2021, 05:25
- Forum: Ask for Help (v1)
- Topic: Insert text at current position Topic is solved
- Replies: 11
- Views: 1555
Re: Insert text at current position Topic is solved
Thank you both for the suggestions! I ended up with these codes InsertText1(text) { Clipboard := text Send ^v } InsertText2(text) { Sleep, 50 Send *** ControlGetFocus, current, A ControlGetText, currenttext, %current%, A currenttext:=StrReplace(currenttext,"***",text) ControlSetText, %current%, % cu...
- 22 Jun 2021, 13:30
- Forum: Ask for Help (v1)
- Topic: Insert text at current position Topic is solved
- Replies: 11
- Views: 1555
Insert text at current position Topic is solved
Hi guys, I'm using AHK and using the text replacement a lot. However, when I'm using the 'send' function it is quite slow at times. I've changed this with a function SetText() or AddText() SetText(text) { ControlGetFocus, current, A ControlSetText, %current%, %text%, A Send ^{end} } AddText(text) { ...
- 25 Apr 2021, 14:41
- Forum: Ask for Help (v1)
- Topic: mousegetpos alternative
- Replies: 2
- Views: 241
mousegetpos alternative
Hi all, I have a question. Say that I get the X and Y coordinates of a control using imagesearch. I can then move the mouse using Send {click, x, y, 0} And get the text or other info of this control using MouseGetPos. However, is there an alternative to MouseGetPos where you don’t have to move the m...
- 10 Apr 2021, 16:07
- Forum: Ask for Help (v1)
- Topic: Acc: selecting an object through "Value" not path
- Replies: 0
- Views: 238
Acc: selecting an object through "Value" not path
Dear all, I'm new in Acc to automate functions. I've looked into the Acc tutorial and have the Accessible info Viewer and wanted to get started. However, there is one thing that I run into: the Acc path of the object I'm trying to reach (or actually: click) differs depending on the view. To explain ...
- 24 Mar 2021, 09:38
- Forum: Ask for Help (v1)
- Topic: Only fill in certain function parameters Topic is solved
- Replies: 6
- Views: 344
Re: Only fill in certain function parameters Topic is solved
Thank you all for you suggestions!
I changed my function using this method. Right now it doesn't matter which variables I fill and in which order, works everytime.
I changed my function using this method. Right now it doesn't matter which variables I fill and in which order, works everytime.
- 23 Mar 2021, 14:44
- Forum: Ask for Help (v1)
- Topic: Only fill in certain function parameters Topic is solved
- Replies: 6
- Views: 344
Only fill in certain function parameters Topic is solved
Hi guys, I have a question concerning functions Lets say I have a function that may contain 10 parameters like this Function(var1="",var2="",var3="",(...),var10="") { } And I would like to run the script only filling in variables 2 and 5 Then I could do ^t::Function(,"99",,,"105") ; omitting the var...
- 22 Mar 2021, 09:25
- Forum: Ask for Help (v1)
- Topic: Control not responding to text Topic is solved
- Replies: 14
- Views: 948
Re: Control not responding to text Topic is solved
Thanks, I just found some time to test this and the solution provided by @Xtra worked perfectly!