Search found 99 matches

by surfactant
04 Dec 2023, 07:33
Forum: Visual Studio Code
Topic: AutoHotkey v2 intellisense for Visual studio code Topic is solved
Replies: 10
Views: 7273

Re: AutoHotkey v2 intellisense for Visual studio code Topic is solved

@boiler @thqby Let me try VSCode the web. Thank you both!
by surfactant
04 Dec 2023, 04:06
Forum: SciTE4AutoHotkey
Topic: no syntax highlighting and indentation
Replies: 1
Views: 435

Re: no syntax highlighting and indentation

If I run SciTE.exe as administrator, everything is ok.

But, then each time SciTE is run, a window would popup to ask whether to run it as administrator. How can I fix it?

Thank you!
by surfactant
04 Dec 2023, 03:53
Forum: SciTE4AutoHotkey
Topic: no syntax highlighting and indentation
Replies: 1
Views: 435

no syntax highlighting and indentation

I just installed the portable version of SciTE4AutoHotkey as guided (under C:\Program Files\AutoHotkey\SciTE), but there are no no syntax highlighting and indentation.

What did I miss? Thank you for some clues!
Image.png
Image.png (14.51 KiB) Viewed 435 times
by surfactant
04 Dec 2023, 00:07
Forum: Visual Studio Code
Topic: AutoHotkey v2 intellisense for Visual studio code Topic is solved
Replies: 10
Views: 7273

Re: AutoHotkey v2 intellisense for Visual studio code Topic is solved

I'm a Visual Studio user. Is it possible to have AHK intellisense in Visual Studio? Or I must install VSCode? Thanks!
by surfactant
22 Mar 2023, 06:22
Forum: Ask for Help (v1)
Topic: tweak formated text in clipboard? Topic is solved
Replies: 10
Views: 473

Re: tweak formated text in clipboard? Topic is solved

@mikeyww Thank you! The method you recommended would lose the url of the source web page.
by surfactant
22 Mar 2023, 04:50
Forum: Ask for Help (v1)
Topic: tweak formated text in clipboard? Topic is solved
Replies: 10
Views: 473

Re: tweak formated text in clipboard? Topic is solved

mikeyww I tried to come up with a better solution of pushing the modified content back to the clipboard, but failed, could you have a look and give some clues? Thank you! https://www.autohotkey.com/docs/v1/lib/StrGet.htm https://www.autohotkey.com/docs/v1/lib/StrPut.htm LWin:: myHTML := Get_Clipboa...
by surfactant
21 Mar 2023, 09:16
Forum: Ask for Help (v1)
Topic: tweak formated text in clipboard? Topic is solved
Replies: 10
Views: 473

Re: tweak formated text in clipboard? Topic is solved

@@off Thanks for your reply!

@mikeyww It looks great and should work. Thank you!
by surfactant
20 Mar 2023, 03:33
Forum: Ask for Help (v1)
Topic: tweak formated text in clipboard? Topic is solved
Replies: 10
Views: 473

Re: tweak formated text in clipboard? Topic is solved

@off Thanks. The content of "Clipboard" is simply "red", but not the source code "<span style="color: red;">TEXT</span>".

(To make the question unambiguous, I modified the source code in the original post.)
by surfactant
20 Mar 2023, 02:40
Forum: Ask for Help (v1)
Topic: tweak formated text in clipboard? Topic is solved
Replies: 10
Views: 473

tweak formated text in clipboard? Topic is solved

When I copy some formated text from a web page, for example some text in red, the source code should be something like: <span style="color: red;">TEXT</span> Is it possible to tweak the formated text in the clipboard, e.g. replacing "red" with "green"? If yes, I would get a piece of green text when ...
by surfactant
13 Jul 2022, 08:31
Forum: Ask for Help (v1)
Topic: fail to map Shift-MButton Topic is solved
Replies: 4
Views: 380

Re: fail to map Shift-MButton Topic is solved

@mikeyww Thanks! After adding #InstallMouseHook, "z::+MButton" still works as "z::MButton".

I just figure it out:

Code: Select all

z::

SendInput {LShift Down}
SendInput {MButton Down}

keywait, z

SendInput {LShift Up}
SendInput {MButton Up}

return
by surfactant
13 Jul 2022, 08:10
Forum: Ask for Help (v1)
Topic: fail to map Shift-MButton Topic is solved
Replies: 4
Views: 380

Re: fail to map Shift-MButton Topic is solved

@mikeyww Thank you for your reply! But not understand well enough.

I ran this,

Code: Select all

z::+MButton
I press down z key, then move mouse and release z key. The operation is same as z::MButton. Here is the key history:
image.png
image.png (4.99 KiB) Viewed 346 times
by surfactant
13 Jul 2022, 04:47
Forum: Ask for Help (v1)
Topic: fail to map Shift-MButton Topic is solved
Replies: 4
Views: 380

fail to map Shift-MButton Topic is solved

In one of my CAD application, moving mouse cursor,, while holding down both Shift and MButton, would move an object.

I want to map a single key for the operation, but failed. Both mapping statements work the same way as z:MButton. What's wrong? Thanks!

Code: Select all

z::+MButton

z::MButton
by surfactant
06 Jun 2022, 14:04
Forum: Ask for Help (v1)
Topic: prevent double click Topic is solved
Replies: 6
Views: 840

Re: prevent double click Topic is solved

@boiler Thank you for further explanation!
by surfactant
06 Jun 2022, 09:44
Forum: Ask for Help (v1)
Topic: prevent double click Topic is solved
Replies: 6
Views: 840

Re: prevent double click Topic is solved

boiler wrote:
06 Jun 2022, 08:24
It’s not an AHK issue. The only thing that determines how a series of clicks is viewed is the application, whether it’s Windows or a program running in Windows.
You are correct in what you said. I wonder whether it's possible for AHK to cheat Windows or programs. Thank you!
by surfactant
06 Jun 2022, 08:13
Forum: Ask for Help (v1)
Topic: prevent double click Topic is solved
Replies: 6
Views: 840

Re: prevent double click Topic is solved

Rohwedder wrote:
06 Jun 2022, 08:02
But 2 fast single clicks make a double click by definition.
Thank you! Is there no workaround?
by surfactant
06 Jun 2022, 06:49
Forum: Ask for Help (v1)
Topic: prevent double click Topic is solved
Replies: 6
Views: 840

prevent double click Topic is solved

I need to map LAlt as LMB click like this: LAlt:: Click Sleep 300 return I insert the step of Sleep to prevent double click, but this wastes a lot of time. Is it possible to make the script work this way? ---- When the key LAlt is pressed continuously fast in high frequency, a seious of highly frequ...
by surfactant
17 May 2022, 02:23
Forum: Ask for Help (v1)
Topic: instant click? Topic is solved
Replies: 2
Views: 982

instant click? Topic is solved

When two statements below run, the mouse cursor need to move a long way slowly. Is it possible to make the second click happen instantly? Thank you!

Click 1,1
Click 1000,1000
by surfactant
12 Jan 2022, 11:22
Forum: Ask for Help (v1)
Topic: get the selected text in any active window Topic is solved
Replies: 23
Views: 5614

Re: get the selected text in any active window Topic is solved

mikeyww wrote:
12 Jan 2022, 11:10
Instead of worrying, you can see if ClipWait works. The docs show how to restore clipboard.
@mikeyww Thank you!

Go to advanced search