Search found 137 matches

by autohotkeycool
15 Oct 2022, 05:46
Forum: Ask for Help (v1)
Topic: paste script doesn’t work sometimes
Replies: 3
Views: 273

Re: paste script doesn’t work sometimes

Use Clipwait after ^c and COM to interface with Word. For instance: ComObjActive("word.application").ActiveDocument.Content.InsertAfter(clipboard) assuming you want to paste the clipboard at the end of the word document. so you'd write the script like this, is that right? *Numpad4:: ; Copy & paste ...
by autohotkeycool
14 Oct 2022, 15:30
Forum: Ask for Help (v1)
Topic: paste script doesn’t work sometimes
Replies: 3
Views: 273

paste script doesn’t work sometimes

Im using this script to copy the url bar of Vivaldi and paste it into word, but about 25% of the time it doesn’t work - what changes would you suggest to make it more reliable? *Numpad4:: ; Copy & paste Viv url Sleep, 100 WinActivate, ahk_exe vivaldi.exe Sleep, 100 Send, ^l Sleep, 100 Send, ^c ; cop...
by autohotkeycool
06 Jun 2022, 18:24
Forum: Ask for Help (v1)
Topic: winactivate script no longer working after a windows update
Replies: 1
Views: 190

winactivate script no longer working after a windows update

Im trying to merge these two scripts F1:: MouseGetPos,,, Hwnd WinGet, PN, ProcessName, % "ahk_id " Hwnd If (PN = "Chrome.exe") WinActivate, Chrome Norm.png If (PN = "Explorer.exe") WinActivate, Explorer Norm.png If (PN = "Palemoon.exe") WinActivate, Palemoon.png If (PN = "shareX.exe") WinActivate, s...
by autohotkeycool
18 May 2022, 06:50
Forum: Ask for Help (v1)
Topic: Hotstring() Function Loop commands says "call to nonexistant function"
Replies: 8
Views: 470

Re: Hotstring() Function Loop commands says "call to nonexistant function"

do you know how to change im to i'm using AHK?

I tried

:im::i'm

But that didnt work
by autohotkeycool
18 May 2022, 06:44
Forum: Ask for Help (v1)
Topic: Hotstring() Function Loop commands says "call to nonexistant function"
Replies: 8
Views: 470

Re: Hotstring() Function Loop commands says "call to nonexistant function"

my bad, its v1.22 mentioned here viewtopic.php?f=6&t=73056&start=120#p427176

It works fine with install version for me too, so the portable version was the problem , thanks
by autohotkeycool
18 May 2022, 05:50
Forum: Ask for Help (v1)
Topic: Hotstring() Function Loop commands says "call to nonexistant function"
Replies: 8
Views: 470

Re: Hotstring() Function Loop commands says "call to nonexistant function"

I'm using the latest portable version, I'll try the install version you mention and see if that fixes it
by autohotkeycool
09 May 2022, 16:36
Forum: Ask for Help (v1)
Topic: Hotstring() Function Loop commands says "call to nonexistant function"
Replies: 8
Views: 470

Hotstring() Function Loop commands says "call to nonexistant function"

Im using the script mentioned here https://jacks-autohotkey-blog.com/2020/03/09/auto-capitalize-the-first-letter-of-sentences/ but when I try to run the script it gives a "call to nonexistant function" error https://i.imgur.com/x2y5h5R.png here is the script AutoCap: Loop, 26 Hotstring(":C?*:. " . C...
by autohotkeycool
09 May 2022, 08:35
Forum: Ask for Help (v1)
Topic: when a device is plugged into specific usb port can a script be activated?
Replies: 1
Views: 298

when a device is plugged into specific usb port can a script be activated?

I want to run a script when I plug my mouse into the usb cable thats connected to the motherboard usb port, if that's possible All I could find was topics related to connecting a specific device to the pc [though they didn't actually find the solution https://www.autohotkey.com/board/topic/49386-lau...
by autohotkeycool
07 Mar 2022, 07:26
Forum: Ask for Help (v1)
Topic: Adding WinaActivate to end of a script
Replies: 5
Views: 520

Re: Adding WinaActivate to end of a script

Gotcha, so what would you replace Clipboard := chromeActiveTab(tabs) with in the script you mentioned here? Https://www.autohotkey.com/boards/viewtopic.php?f=76&t=101234#p449761 I tried replacing the bottom line but it didn't work #Include C:\PortableApps Platform\PortableApps\AutoHotkeyPortable\App...
by autohotkeycool
07 Mar 2022, 05:38
Forum: Ask for Help (v1)
Topic: Adding WinaActivate to end of a script
Replies: 5
Views: 520

Re: Adding WinaActivate to end of a script

Thanks, but I just want the tab number to be put into my clipboard like how the original script did it - I don't want it to popup like this https://i.imgur.com/X8Ih8Zb.png
by autohotkeycool
06 Mar 2022, 14:57
Forum: Ask for Help (v1)
Topic: Adding WinaActivate to end of a script
Replies: 5
Views: 520

Adding WinaActivate to end of a script

I'm using this script to copy the tab number to clipboard when pressing numpad 0 Numpad0:: Clipboard := Chromium_ActiveTab(tabs) . "`n" "Active tab number: " activeTab return Chromium_ActiveTab(ByRef Tabs := 0) { path := "4.1.1.2.1.1.1" hWnd := WinExist("A") accObj := Acc_ObjectFromWindow(hWnd, 0) a...
by autohotkeycool
17 Feb 2022, 15:32
Forum: Ask for Help (v1)
Topic: Merging 2nd script with original
Replies: 1
Views: 170

Merging 2nd script with original

I'm using this script to copy the tab number to clipboard when pressing numpad 0 Numpad0:: Clipboard := Chromium_ActiveTab(tabs) . "`n" "Active tab number: " activeTab return Chromium_ActiveTab(ByRef Tabs := 0) { path := "4.1.1.2.1.1.1" hWnd := WinExist("A") accObj := Acc_ObjectFromWindow(hWnd, 0) a...
by autohotkeycool
29 Jan 2022, 13:41
Forum: Ask for Help (v1)
Topic: Convert a firefox task to work in chrome?
Replies: 3
Views: 386

Re: Convert a firefox task to work in chrome?

mikeyww wrote:
29 Jan 2022, 09:06
I would try JEE_ChromeGetFocusedTabNum. You might need to update the Acc path.
thanks, does that give the actual number of the tab or just the name of the tab?
by autohotkeycool
29 Jan 2022, 08:17
Forum: Ask for Help (v1)
Topic: Convert a firefox task to work in chrome?
Replies: 3
Views: 386

Convert a firefox task to work in chrome?

I'm trying to get this task to work in chrome browser, does anyone know what changes should be made to get it to work in chrome? Https://www.autohotkey.com/boards/viewtopic.php?t=45626#p206156 q:: ;Mozilla Firefox - get index of focused tab WinGet, hWnd, ID, A oAcc := Acc_Get("Object", "4", 0, "ahk_...
by autohotkeycool
19 Nov 2021, 18:20
Forum: Ask for Help (v1)
Topic: toggle “RemoveCRLF” script, to turn it off with a hotkey?
Replies: 3
Views: 555

Re: toggle “RemoveCRLF” script, to turn it off with a hotkey?

Thanks, isntad of having a hotkey to toggle “RemoveCRLF” would it be possible to have a separate hotkey for copying the text through the normal way?

E.g. If you press c+ alt it will copy text through the normal method, without stripping away any paragraphs?
by autohotkeycool
19 Nov 2021, 16:22
Forum: Ask for Help (v1)
Topic: toggle “RemoveCRLF” script, to turn it off with a hotkey?
Replies: 3
Views: 555

toggle “RemoveCRLF” script, to turn it off with a hotkey?

I'm currently using this script, which removes all the paragraph spacing when I copy text in vivaldi browser but I'm wondering how would you alter it so that you can toggle/disable this function? #Persistent OnClipboardChange("RemoveCRLF") Return RemoveCRLF() { If WinActive("ahk_exe vivaldi.exe") { ...
by autohotkeycool
17 Sep 2021, 04:02
Forum: Ask for Help (v1)
Topic: Force closing documents that contain specific names
Replies: 1
Views: 199

Force closing documents that contain specific names

I'm currently using the program libre calc and I have documents that are called called "untitled 1 - LibreOffice Calc" https://i.imgur.com/vbhe0Gu.png and "untitled 2 - LibreOffice Calc"and I'm wondering what AHK script would you use to just close these documents that contain "untitled" in them?
by autohotkeycool
13 Jun 2021, 11:44
Forum: Ask for Help (v1)
Topic: Combining these 2 script help Topic is solved
Replies: 1
Views: 94

Combining these 2 script help Topic is solved

I want to add this script f11:: ; Win + A MouseGetPos,,, Hwnd WinGet, PN, ProcessName, % "ahk_id " Hwnd If (PN = "WINWORD.EXE") ; Specify the window title here. WinActivate, Word.png If (PN = "Chrome.exe") WinActivate, Chrome.png If (PN = "Firefox.exe") WinActivate, Firefox.png If (PN = "Vivaldi.exe...
by autohotkeycool
07 Jun 2021, 10:13
Forum: Ask for Help (v1)
Topic: force a program to use a key instead of another program? Topic is solved
Replies: 3
Views: 189

Re: force a program to use a key instead of another program? Topic is solved

One more question, what must you add to this script which will exclude the F2 key from being affected by AHK if File Explorer window is active?

Code: Select all

F2::  ; press ctrl+o, which toggles Musicbee playback
Send, +o
Return

Go to advanced search