Search found 40 matches

by llinfeng
18 Feb 2019, 11:29
Forum: Ask For Help
Topic: Run and maximize GUI windows of WSL programs through run or ShellRun?
Replies: 0
Views: 119

Run and maximize GUI windows of WSL programs through run or ShellRun?

Please help sharpen the following script to launch a gvim session from Windows Subsystem for Linus (WSL). I would like to replicate the first ShellRun command, which fires up a "local to Windows" instance of gvim. Originally, the new Gvim window shall first pop up in the foreground, and then get max...
by llinfeng
28 Jan 2019, 16:42
Forum: Ask For Help
Topic: Copying rich-text from Docx document, and paste as "Rich Text" (in Browser/Word Doc, etc)?
Replies: 2
Views: 191

Re: Copying rich-text from Docx document, and paste as "Rich Text" (in Browser/Word Doc, etc)?

Note, there is a bug in the script I posted: if one shall type double quotes, the closing doubles will be converted into "�?". I asked the question on StackOverflow, which appeared to be more active than the Google Forum of Pandoc. * Link: https://stackoverflow.com/questions/54410656/pandoc-powershe...
by llinfeng
21 Jan 2019, 14:29
Forum: Ask For Help
Topic: Copying rich-text from Docx document, and paste as "Rich Text" (in Browser/Word Doc, etc)?
Replies: 2
Views: 191

Re: Copying rich-text from Docx document, and paste as "Rich Text" (in Browser/Word Doc, etc)?

I found an alternative Powershell solution. It is nicer as one does not have to open any terminal to execute it. I am almost there :) Still, I need two pieces of input to improve the script. Need help now with dealing with the flashing black window from Powershell :) ::togo:: Run, PowerShell "paste....
by llinfeng
21 Jan 2019, 13:25
Forum: Ask For Help
Topic: Copying rich-text from Docx document, and paste as "Rich Text" (in Browser/Word Doc, etc)?
Replies: 2
Views: 191

Copying rich-text from Docx document, and paste as "Rich Text" (in Browser/Word Doc, etc)?

Dear community, I have been looking for a way to quickly convert Markdown syntax into "paste-able" contents into Google Docs. I have started this page on Pandoc discussion Google group, but have not received a good answer. Now, my plan is to have pandoc do its own conversion job and delegate the pas...
by llinfeng
26 Sep 2018, 12:16
Forum: Ask For Help
Topic: Cursor to the previously wrongly spelled word
Replies: 0
Views: 169

Cursor to the previously wrongly spelled word

I am having the following script to visit Google and correct the word that is directly "in front of" the cursor : ; Upgraded: select the world to the left of the cursor, and correct using Google: ^+!h:: send {CTRLDOWN}{SHIFTDOWN}{LEFT}{CTRLUP}{SHIFTUP} clipback := ClipboardAll clipboard= Send ^c Cli...
by llinfeng
26 Sep 2018, 10:58
Forum: Ask For Help
Topic: Need help with putting together an AHK-based installer suite
Replies: 0
Views: 158

Need help with putting together an AHK-based installer suite

Not sure if I used the right words in the subject, but here is what I would like to achieve: Goal: save the time to restore my Laptop from a fresh OS installation, by installing existing `*.exe` files automatically Over the years, I have been through a good number of times where the manufacturer of ...
by llinfeng
12 Aug 2018, 17:26
Forum: Ask For Help
Topic: Edit a file through Full Path, as contained in the Clipboard
Replies: 2
Views: 173

Re: Edit a file through Full Path, as contained in the Clipboard

Try this: +#i:: ; Note, this is a failed attempt clipback := Clipboard MsgBox, %clipback% ShellRun("C:\vim\vim80\gvim.exe", clipback, "", 3) ; run "C:\vim\vim80\gvim.exe" %clipback% return Running your code yields the same error message, I am pasting a working version that I managed to put together...
by llinfeng
12 Aug 2018, 16:57
Forum: Ask For Help
Topic: Edit a file through Full Path, as contained in the Clipboard
Replies: 2
Views: 173

Edit a file through Full Path, as contained in the Clipboard

With the following failed attempt, I would like to achieve the following two goals: 1. Specify the text editor (and start it with Admin right if I were running the "master AHK script" with Admin); 2. Open the file as specified in the Clipboard (Full-path) using the text editor. A failed attempt: +#i...
by llinfeng
12 Aug 2018, 16:39
Forum: Ask For Help
Topic: How to prevent script(s) from exitting when I change the power source of my Laptop
Replies: 6
Views: 528

Re: How to prevent script(s) from exitting when I change the power source of my Laptop

While having a message box conditional on a (normal) exit sounds reasonable, I wonder if "#Persistent" may solve my problem in a persistent manner? I read about it in the help file for OnExit command, and the description looks promising: The following examples use #Persistent to prevent the script ...
by llinfeng
26 May 2018, 00:42
Forum: Ask For Help
Topic: Hotkey declaration: how to map a sequence of keystrokes as the Hotkey?
Replies: 7
Views: 486

Re: Hotkey declaration: how to map a sequence of keystrokes as the Hotkey?

swagfag wrote:

Code: Select all

^Space::expectSecondSpace := true

#If expectSecondSpace
^Space::
{
	MsgBox, % "ctrl+space+space"
	expectSecondSpace := false
}
#If

~*Ctrl Up::expectSecondSpace := false

Esc::ExitApp
Thank you for your suggestion! :superhappy:
by llinfeng
26 May 2018, 00:41
Forum: Ask For Help
Topic: Hotkey declaration: how to map a sequence of keystrokes as the Hotkey?
Replies: 7
Views: 486

Re: Hotkey declaration: how to map a sequence of keystrokes as the Hotkey?

swagfag wrote:

Code: Select all

^Space::expectSecondSpace := true

#If expectSecondSpace
^Space::
{
	MsgBox, % "ctrl+space+space"
	expectSecondSpace := false
}
#If

~*Ctrl Up::expectSecondSpace := false

Esc::ExitApp
Thank you for your suggestion!
by llinfeng
26 May 2018, 00:40
Forum: Ask For Help
Topic: Hotkey declaration: how to map a sequence of keystrokes as the Hotkey?
Replies: 7
Views: 486

Re: Hotkey declaration: how to map a sequence of keystrokes as the Hotkey?

Hallo, untested! 1. comment out: #Warn in line 60 2. replace #space by DSpace: DSpace = Hotkey, ~*Ctrl Up, Off Return ^Space:: DSpace++ Hotkey, ~*Ctrl Up, DSpace If DSpace < 2 Return Gosub, DSpace I think we are close. Yet, the attached error message is generated, pointing out that `~*Ctrl Up` is n...
by llinfeng
25 May 2018, 13:53
Forum: Ask For Help
Topic: Hotkey declaration: how to map a sequence of keystrokes as the Hotkey?
Replies: 7
Views: 486

Re: Hotkey declaration: how to map a sequence of keystrokes as the Hotkey?

Hallo, try: ^Space:: SetTimer, No, -500 No++ Return No: If No > 1 MsgBox, % No " ^Spaces" No = Return Thanks for your script, after the attached error message when I run the script afresh, I do get a message box displaying how many spaces I've run. Yet, are there a easier syntax that will declare s...
by llinfeng
25 May 2018, 09:37
Forum: Ask For Help
Topic: Hotkey declaration: how to map a sequence of keystrokes as the Hotkey?
Replies: 7
Views: 486

Hotkey declaration: how to map a sequence of keystrokes as the Hotkey?

I am using a beautiful script written by John Guidry [ iswitchw ] to summon my "opened windows". Yet, I would like to remap the hotkey to activate the script. Question : how to I declare the following sequence of keystrokes as a hotkey? 1. While holding Ctrl key, press the Space bar twice 2. While h...
by llinfeng
14 Feb 2018, 17:24
Forum: Ask For Help
Topic: WinActivate and groupactivate demands extra care: it takes an extra mouse-click to start the keyboard function?
Replies: 1
Views: 225

WinActivate and groupactivate demands extra care: it takes an extra mouse-click to start the keyboard function?

This is a problem that has been bothering me for years: when I use either groupactivate or WinActivate to activate my email clients, the keyboard input will be halted: except for the Alt + Tab key which switches away from the window of the email client, no other keystrokes will be admitted by the em...
by llinfeng
14 Feb 2018, 14:28
Forum: Ask For Help
Topic: AHK script halted upon returning to local machine from Remote Desktop Connection session
Replies: 5
Views: 558

Re: AHK script halted upon returning to local machine from Remote Desktop Connection session

A make-shift solution The following two segments of code will restore the "intended" functionality of Capslock + Ctrl: to retrieve from the remote access session to the local Windows OS. #IfWinActive ahk_class TscShellContainerClass ^Capslock:: Sleep 50 ; WinMinimize A WinMinimize return #IfWinActi...
by llinfeng
26 Oct 2017, 13:08
Forum: 请求帮助
Topic: 自启动脚本,热键失效[ahk-32u,win7,64位]
Replies: 2
Views: 883

Re: 自启动脚本,热键失效[ahk-32u,win7,64位]

可能是启动方法不对:你能看到脚本的图标出现在托盘里?

再,我新发现一个正确“自启动AHK”的方法,参照下面/附件里的方法添加“Scheduled Task”就好了。

按步骤的截图(我系统是英文的,但Windows的各个设置该是不会换地方的):https://www.jianguoyun.com/p/DSBfz7EQoPimBhiLszg
by llinfeng
26 Oct 2017, 12:39
Forum: Ask For Help
Topic: run script on startup
Replies: 3
Views: 502

Re: run script on startup

I have struggled quite a while for how to properly keep my AHK script running all-the-time, and I have come to a remedy just now. Here goes the details: First, you would like to use Task Scheduler, and use Task Scheduler only. The start menu have its own draw backs, as it is not possible to elevate ...
by llinfeng
08 Sep 2017, 08:22
Forum: Ask For Help
Topic: Starting a new instance of Firefox, with multiple tabs
Replies: 5
Views: 751

Re: Starting a new instance of Firefox, with multiple tabs

Thanks a lot for replying, I found the following line of commands should work in the "Command Prompt" on my Windows 10 machine. However, when I try to pass it to the "Run" command in AHK, it should complain about a lot of weird errors. Could you point me in the right direction for executing the foll...
by llinfeng
06 Sep 2017, 23:19
Forum: Ask For Help
Topic: Starting a new instance of Firefox, with multiple tabs
Replies: 5
Views: 751

Re: Starting a new instance of Firefox, with multiple tabs

Probably a workaround, it should be possible to setup what pages should open by default once a browser gets started. As far as I remember those are simply listed at the registry (and separated with a comma?). So, use RegWrite to change those settings. Hi Bobo, as you said, there is a softer way to ...

Go to advanced search