Search found 165 matches

by songdg
16 Oct 2020, 22:49
Forum: Scripts and Functions
Topic: Using AutoHotkey from Python
Replies: 20
Views: 10678

Re: Using AutoHotkey from Python

burque505 wrote:
16 Oct 2020, 17:14
@songdg, there are a couple of ways at least that you can do that. See the ahk github page, my post here.
Regards,
burque505
Thanks for your help :D
by songdg
16 Oct 2020, 08:54
Forum: Scripts and Functions
Topic: Using AutoHotkey from Python
Replies: 20
Views: 10678

Re: Using AutoHotkey from Python

Can do the inverse, using Python from AutoHotkey?
by songdg
15 Oct 2020, 08:20
Forum: Ask For Help
Topic: Is there a way to keep a chrome browse maintain active
Replies: 2
Views: 58

Re: Is there a way to keep a chrome browse maintain active

mikeyww wrote:
15 Oct 2020, 06:12
There are probably browser API calls that could work. At a more basic level, you could try a ControlClick to the page.
Thanks, it must use API to do the job.
by songdg
15 Oct 2020, 04:23
Forum: Ask For Help
Topic: Is there a way to keep a chrome browse maintain active
Replies: 2
Views: 58

Is there a way to keep a chrome browse maintain active

I had a chrome tab log in a website, and If there no operation on that website for a period of time it will log off automatically , at the same time I am on other tabs, I want to keep that tab maintain active, so that I won't log on again and again.I can think of a way of sending a refresh to that t...
by songdg
13 Oct 2020, 21:57
Forum: Ask For Help
Topic: How to detect whether exist an active ms_word document
Replies: 1
Views: 54

How to detect whether exist an active ms_word document

Currently I used ComObjActive("Word.Application") in a loop to detect whether an ms_word document has been closed, and want to know if there is a better way.
by songdg
29 Sep 2020, 01:34
Forum: Ask For Help
Topic: Can the InputBox be always on top? Topic is solved
Replies: 16
Views: 414

Re: Can the InputBox be always on top? Topic is solved

I forgot about WinSet, but sure, use that! It's more direct. No timer needed, I think. winTitleText = Enter text Gui, New Gui, Add, Edit, vtext w135 Gui, Add, Button, Default w80, OK Gui, Show, Center, %winTitleText% WinSet, AlwaysOnTop, On, % winTitleText "ahk_class AutoHotkeyGUI ahk_exe AutoHotke...
by songdg
28 Sep 2020, 06:45
Forum: Ask For Help
Topic: Can the InputBox be always on top? Topic is solved
Replies: 16
Views: 414

Re: Can the InputBox be always on top? Topic is solved

I forgot about WinSet, but sure, use that! It's more direct. No timer needed, I think. winTitleText = Enter text Gui, New Gui, Add, Edit, vtext w135 Gui, Add, Button, Default w80, OK Gui, Show, Center, %winTitleText% WinSet, AlwaysOnTop, On, % winTitleText "ahk_class AutoHotkeyGUI ahk_exe AutoHotke...
by songdg
28 Sep 2020, 06:43
Forum: Ask For Help
Topic: Can the InputBox be always on top? Topic is solved
Replies: 16
Views: 414

Re: Can the InputBox be always on top? Topic is solved

It seems use gui is my best choise. 8-)
by songdg
27 Sep 2020, 09:02
Forum: Ask For Help
Topic: Is there an "open folder" event Topic is solved
Replies: 8
Views: 268

Re: Is there an "open folder" event Topic is solved

teadrinker wrote:
27 Sep 2020, 08:22
songdg wrote: I want to trigger an event when open a new folder or enter the sub_folder of an existing folder
Something like this:

If the Program Files folder or its subfolder is open, a message will appear.
I want to give you :thumbup: ,thank you very much :bravo: !!!
by songdg
27 Sep 2020, 04:31
Forum: Ask For Help
Topic: Can the InputBox be always on top? Topic is solved
Replies: 16
Views: 414

Can the InputBox be always on top? Topic is solved

InputBox, OutputVar [, Title, Prompt, HIDE, Width, Height, X, Y, Locale, Timeout, Default]
It seems there no option to do that.
by songdg
26 Sep 2020, 21:41
Forum: Ask For Help
Topic: Is there an "open folder" event Topic is solved
Replies: 8
Views: 268

Re: Is there an "open folder" event Topic is solved

mikeyww wrote:
26 Sep 2020, 06:12
What was your success method?
I used the Explorer_GetActiveFolderPath() method.
by songdg
25 Sep 2020, 23:22
Forum: Ask For Help
Topic: Is there an "open folder" event Topic is solved
Replies: 8
Views: 268

Is there an "open folder" event Topic is solved

I want to trigger an event when open a new folder or enter the sub_folder of an existing folder, in my case to read a txt file inside that folder automatically, is that possible or other ways to achieve the same purpose? Currently, I use a hotkey to do that.
by songdg
25 Sep 2020, 10:11
Forum: Ask For Help
Topic: How to get the URL from a string
Replies: 3
Views: 121

Re: How to get the URL from a string

mikeyww wrote:
25 Sep 2020, 08:09

Code: Select all

url = https://www.google.com/alotmorestuff/ishere/
root := RegExReplace(url, "(.+//.+?/).*", "$1")
MsgBox, 64, Root, %root%
ExitApp
Thanks, but I want the whole URL https://www.google.com/search?q=lifewire
by songdg
25 Sep 2020, 07:14
Forum: Ask For Help
Topic: How to get the URL from a string
Replies: 3
Views: 121

How to get the URL from a string

Like the text below, I want to obtain the URL https://www.google.com/search?q=lifewire Some URLs have parameters that split it away from additional variables. For example, when you do a Google search for lifewire:https://www.google.com/search?q=lifewire. The question mark you see is telling a certai...
by songdg
25 Sep 2020, 07:02
Forum: Ask For Help
Topic: How to filter out special charecters in a string
Replies: 2
Views: 174

Re: How to filter out special charecters in a string

lmstearn wrote:
24 Sep 2020, 09:47
Regexreplace explains that- just use the backslash to escape. :)
RegExReplace dosen't work on "*", I used StrReplace instead, but thank you anyway for the help. :dance:
by songdg
24 Sep 2020, 07:18
Forum: Ask For Help
Topic: How to filter out special charecters in a string
Replies: 2
Views: 174

How to filter out special charecters in a string

I want to remove some special charecters(*^~ etc.) in a string.
by songdg
24 Sep 2020, 07:15
Forum: Ask For Help
Topic: What's the right way of using paragraphs method Topic is solved
Replies: 4
Views: 347

Re: What's the right way of using paragraphs method Topic is solved

Thanks, that is not a problem for me, my documents is short, just try a few more times. :dance:
by songdg
24 Sep 2020, 00:04
Forum: Ask For Help
Topic: What's the right way of using paragraphs method Topic is solved
Replies: 4
Views: 347

Re: What's the right way of using paragraphs method Topic is solved

Jim Dunn wrote:
23 Sep 2020, 23:13
Altering that to: ComObjGet("xxx.docx").Paragraphs(1).Range.Text worked for me on a test document.
Thank you very much. :clap:
by songdg
23 Sep 2020, 22:23
Forum: Ask For Help
Topic: What's the right way of using paragraphs method Topic is solved
Replies: 4
Views: 347

What's the right way of using paragraphs method Topic is solved

Use ComObjGet("xxx.docx").Range.Text can get the whole content of a MS_word document.I know there's a Paragraphs method, but when I use ComObjGet("xxx.docx").Range.Paragraphs(1).Text to get the first paragraph, it seems dosen't work.
by songdg
19 Sep 2020, 05:28
Forum: Ask For Help
Topic: Obtain information from html Topic is solved
Replies: 8
Views: 206

Re: Obtain information in javascript Topic is solved

#NoEnv if !FileExist(A_ScriptDir . "\testhtml.html") FileAppend, % html_code, % A_ScriptDir . "\testhtml.html" IE := ComObjCreate("InternetExplorer.Application") IE.Navigate(A_ScriptDir . "\testhtml.html") while IE.busy || IE.readyState!=4 || IE.document.readyState!="complete" Sleep, 10 trElements ...

Go to advanced search