Search found 1257 matches

by Shadowpheonix
26 Apr 2018, 13:04
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 119
Views: 16851

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

For some reason, I cannot seem to use Chrome.GetPageByTitle("page title") . When I try, it always fails to retrieve the page. :( Here is a version of GeekDude's InjectJS.ahk example that I modified to show what I am trying. If I use Chrome.GetPage() instead (as originally w...
by Shadowpheonix
09 Apr 2018, 17:05
Forum: Ask For Help
Topic: Possible to modify context menus for applications?
Replies: 3
Views: 141

Re: Possible to modify context menus for applications?

Try this... Run the script, and then right-click inside a Window that normally has a context-menu. There will be a new item. Thank you for that script. It works perfectly in some applications like Windows File Explorer and Notepad. Unfortunately, it does not work in other applications like Microsof...
by Shadowpheonix
09 Apr 2018, 15:41
Forum: Ask For Help
Topic: Possible to modify context menus for applications?
Replies: 3
Views: 141

Possible to modify context menus for applications?

Is it possible for AutoHotkey to modify the context menu within an application? Specifically, I am wanting to add an "AHK Macros" menu option to the context menu in several different applications such as Microsoft Word, Lotus Notes, the various web browsers, etcetera that contains a list o...
by Shadowpheonix
23 Mar 2018, 00:21
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 119
Views: 16851

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

In the "pastebin.ahk" example that GeekDude was nice enough to include in the release package, the Tab.Call("DOM.setAttributeValue", {"nodeId": NameNode.NodeId, "name": "value", "value": "ChromeBot"}) line assigns a value...
by Shadowpheonix
22 Mar 2018, 13:15
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 119
Views: 16851

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

If you have a chrome instance already running in debug mode, you can skip the initialization of the Chrome class and just call Chrome.GetTab() directly. For example: #Include Chrome.ahk TabInst := Chrome.GetTab() TabInst.Evaluate("alert('hi!');") What is the replacement for this p...
by Shadowpheonix
19 Mar 2018, 15:01
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 119
Views: 16851

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Is there any reason everytime chrome opens, it shows something about windows defender wanting to reset my chrome preferences and adobe and google drive keep wanting to install? this is weird. :shock: This sounds like a problem with either your Chrome profile or with an extension/plugin you have ins...
by Shadowpheonix
19 Mar 2018, 12:42
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 119
Views: 16851

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Is there any reason everytime chrome opens, it shows something about windows defender wanting to reset my chrome preferences and adobe and google drive keep wanting to install? this is weird. :shock: This sounds like a problem with either your Chrome profile or with an extension/plugin you have ins...
by Shadowpheonix
19 Mar 2018, 12:37
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 119
Views: 16851

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Okay, I created a function which should help some people (noobs). It leverages GeekDude's Chrome class. You can get the function here And this is a video walking through how to use it. It isn't great, but will help some people get their feet wet. :D https://www.youtube.com/watch?v=vm8QYdm_PE8 This ...
by Shadowpheonix
16 Mar 2018, 18:23
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 119
Views: 16851

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

In the "pastebin.ahk" example that GeekDude was nice enough to include in the release package, the Tab.Call("DOM.setAttributeValue", {"nodeId": NameNode.NodeId, "name": "value", "value": "ChromeBot"}) line assigns a value...
by Shadowpheonix
08 Mar 2018, 19:41
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 119
Views: 16851

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

In the "pastebin.ahk" example that GeekDude was nice enough to include in the release package, the Tab.Call("DOM.setAttributeValue", {"nodeId": NameNode.NodeId, "name": "value", "value": "ChromeBot"}) line assigns a value ...
by Shadowpheonix
11 May 2017, 08:50
Forum: Ask For Help
Topic: Key to play sound while pressed
Replies: 3
Views: 637

Re: Key to play sound while pressed

Hello @Shadowpheonix can I use only to notify on cntl key when pressed? I tried, but it just work on combination with ! or ^ or +, but they alone it does not work. e.g; ^d:: is ok but ^:: alone does't work and give the sound!, it considered that as the letter '^' instead of cntl (because I had a pr...
by Shadowpheonix
04 Nov 2016, 09:33
Forum: Ask For Help
Topic: General Question: Thread, No Timers Topic is solved
Replies: 2
Views: 389

Re: General Question: Thread, No Timers Topic is solved

This is easy enough to test. Here's some quick code I created to do so... SetTimer, Test1, 1000 Return f12:: Thread, NoTimers Sleep 4000 ; Gives you time to confirm the original timer has stopped triggering. SetTimer, Test2, -1 Sleep 4000 ; Gives you time to confirm the new timer did NOT trigger. Th...
by Shadowpheonix
31 Oct 2016, 17:49
Forum: Ask For Help
Topic: How can I check the state, did not press any key
Replies: 2
Views: 467

Re: How can I check the state, did not press any key

A_TimeIdlePhysical may be the answer you are looking for. Something like this (untested)... #InstallKeybdHook ; Put this line in the Auto-execute section of your script. F1:: loop,{ if(A_TimeIdlePhysical > 100){ BlockInput, on ;it's to block interrupt during next send command, for a while send,a Bl...
by Shadowpheonix
27 Oct 2016, 12:46
Forum: Ask For Help
Topic: [REQUEST] SplashTextOn/Off if script use
Replies: 3
Views: 607

Re: [REQUEST] SplashTextOn/Off if script use

Something like this is probably your best option...

Code: [Select all] [Expand]GeSHi © Codebox Plus

by Shadowpheonix
26 Oct 2016, 13:35
Forum: Ask For Help
Topic: Need Basic help
Replies: 2
Views: 455

Re: Need Basic help

Here's what I use (I need to strip formatting when pasting into several different applications, not just Microsoft Word)... ^+v:: ; Press Ctrl+Shift+V to paste unformatted text into any application. OldClip := ClipboardAll ; Stores the original clipboard contents (with formatting). Clipboard = %Clip...
by Shadowpheonix
25 Oct 2016, 09:46
Forum: Ask For Help
Topic: Script sometimes doesn't work
Replies: 1
Views: 442

Re: Script sometimes doesn't work

The behavior you are describing is usually the result of problems in the code (such as a missing Return, or a typo somewhere, etcetera). If the code you posted is your entire script, then I see no reason for you to be having this type of trouble - however, since the code you posted does not mention ...
by Shadowpheonix
24 Oct 2016, 17:45
Forum: Ask For Help
Topic: Why are clipboard functions so unreliable in AHK?
Replies: 4
Views: 583

Re: Why are clipboard functions so unreliable in AHK?

Make sure you are giving your computer time to actually copy or paste. For example... f12:: WinGetTitle, CurrentWindow Send ^c WinActivate, Ahk_exe Notepad.exe Send ^v WinActivate, %CurrentWindow% Return With the above code, pressing F12 will often result in something like the following sequence on ...
by Shadowpheonix
24 Oct 2016, 12:26
Forum: Ask For Help
Topic: Ignore alt press
Replies: 1
Views: 314

Re: Ignore alt press

Try this...

Code: [Select all]GeSHi © Codebox Plus

!a::Send {Left Down}
!a Up::Send {Left Up}
by Shadowpheonix
24 Oct 2016, 11:42
Forum: Ask For Help
Topic: AHK script recorder/generator?
Replies: 6
Views: 4097

Re: AHK script recorder/generator?

Sorry, haven't found such myself...Pulover's Macro Creator http://www.macrocreator.com/ can READ in a ahk script, but not generate. If you find such a recorder/generator, then please let us all know too. While I have not used Pulover's Macro Creator myself, looking at the home page, it says (emphas...

Go to advanced search