Search found 769 matches

by GeekDude
Today, 07:39
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 7
Views: 175

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

Make sure you're downloading the release file "Chrome.ahk_v1.0.zip" from the releases page, not the source code. As you have learned, GitHub does not include submodules (i.e. AutoHotkey-JSON and WebSocket.ahk) in its source downloads. The release has all the #Include 's built in (no lib fo...
by GeekDude
Yesterday, 17:38
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 7
Views: 175

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

Chrome.ahk Automate Google Chrome using native AutoHotkey. How it works Chrome offers a WebSocket based API they call the Chrome DevTools Protocol . This API is what allows web development tools to build integrations, and tools such as Selenium to perform their automation. The protocol's documentat...
by GeekDude
04 Jan 2018, 15:03
Forum: Scripts and Functions
Topic: CodeQuickTester - Write and run code without touching the file system
Replies: 118
Views: 23217

Re: CodeQuickTester - Write and run code without touching the file system

There are two main rules to the development of CodeQuickTester: 1) Everything should fit in one file 2) CodeQuickTester should be able to be run inside CodeQuickTester For the first rule, having a separate ini file would break it. For the second rule, having IniRead try to read A_ScriptFullPath woul...
by GeekDude
04 Jan 2018, 13:01
Forum: Scripts and Functions
Topic: CodeQuickTester - Write and run code without touching the file system
Replies: 118
Views: 23217

Re: CodeQuickTester - Write and run code without touching the file system

CodeQuickTester v2.5 has been released Please see the original post for a link to the release and revision history pages. Changes ⋅ Opening new instances when AHK or CQT has spaces in its path now works (Thanks derz00!) ⋅ Pastebin integration has been updated to use HTTPS (Thank...
by GeekDude
02 Jan 2018, 00:00
Forum: Ask For Help
Topic: Any way to prevent app from seeing mouse movement?
Replies: 1
Views: 52

Re: Any way to prevent app from seeing mouse movement?

You could try using the mouse_event dll function, as jNizM's post here: https://autohotkey.com/boards/viewtopic ... 961#p69961

Another option to try might be evilC's LLMouse library: https://autohotkey.com/boards/viewtopic.php?t=26137
by GeekDude
01 Jan 2018, 23:55
Forum: Ask For Help
Topic: variable and hotkeys Topic is solved
Replies: 3
Views: 60

Re: variable and hotkeys Topic is solved

To create a hotkey from a variable, you will need to make a label or function for the action you want it to perform, then use the Hotkey command to assign the key to that label/function. For example: Filename = C:\Program Files\MediaKey\keys.mksf FileReadLine, vup, %Filename%, 3 FileReadLine, vdn, %...
by GeekDude
01 Jan 2018, 12:01
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 320
Views: 54899

Re: Suggestions on documentation improvements

With the classic sidebar, the last-open tab was remembered between sessions. I always kept it open to "Index" so I could quickly launch the help and start typing for the page I wanted to look up. With this new sidebar (which looks great!) it always opens to "Content", which means...
by GeekDude
31 Dec 2017, 10:34
Forum: Scripts and Functions
Topic: Bottles of beer on the wall... [4 lines or less challenge]
Replies: 7
Views: 464

Re: Bottles of beer on the wall... [4 lines or less challenge]

I'm not sure I understand the rules of the challenge, but here goes: z::Send,% (i:=!i?3:i-1) " bottles of beer on the wall, " i " bottles of beer.`nTake one down, open the spout, " i-1 " bottles of beer on the wall." (i>1?"`nz":_)
by GeekDude
31 Dec 2017, 10:09
Forum: Wish List
Topic: maxsplit parameter for StrSplit
Replies: 3
Views: 701

Re: maxsplit parameter for StrSplit

I agree, and though I don't remember making this request it appears I thought the same thing at the time. The sample code I shared in the original post uses 2 as its max split parameter, in order to split the string into a max of two parts. In python, you'd have to specify 1 to split into two parts.
by GeekDude
31 Dec 2017, 09:50
Forum: Bug Reports
Topic: 1.1.27.01 - Use of compound assignment operators with parameterized class properties causes crash Topic is solved
Replies: 1
Views: 92

1.1.27.01 - Use of compound assignment operators with parameterized class properties causes crash Topic is solved

Starting in version 1.1.27.01, AHK crashes when I try to use a compound assignment operator (such as += and -= ) where the left-hand-side is a class property that uses a parameter. A real-world use of this construct can be found here: https://github.com/G33kDude/RichCode.ahk/blob/master/RichCode.ahk...
by GeekDude
28 Dec 2017, 23:24
Forum: Ask For Help
Topic: Looking to make mouse click when I press lmb down and also when I release. Is this possible with ahk??? Topic is solved
Replies: 6
Views: 79

Re: Looking to make mouse click when I press lmb down and also when I release. Is this possible with ahk??? Topic is solved

Something like this would do the job, I think.

Code: [Select all]GeSHi © Codebox Plus

XButton2::Toggle := !Toggle

#if Toggle

$*LButton::Send, {LButton}
$*LButton Up::Send, {LButton}

#if


This uses the #if directive to enable/disable hotkeys based on a condition, which is documented here.
by GeekDude
28 Dec 2017, 14:50
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 41
Views: 1676

Re: [Competition] AHK dwitter!

Cuttlefish Fins Character count: 115 u(){ f(),i=0,j=99 loop,%j% dl(n:=w/2,m:=h/2,n+c(i/j*pi*2)*c(i/j*pi*4+t)*n,m+s(i/j*pi*2)*s(i/j*pi*4+t)*m,h(i++/j)) } https://i.imgur.com/O2G50Q8.gif Spinning Bauble Character count: 91 u(){ f(),i=0,j=256 loop,%j% fc(w/2+sin(i/j*pi)*cos(i/j*pi*32+t)*w/2,h*i/j,3,h(...
by GeekDude
26 Dec 2017, 18:03
Forum: Scripts and Functions
Topic: MultiTester.ahk - Create responsive desktop applications using HTML, CSS, JS, and AHK!
Replies: 19
Views: 1211

Re: MultiTester.ahk - Create responsive desktop applications using HTML, CSS, JS, and AHK!

I submitted a couple PRs, one for MultiTester and one for RichCode. Take a look and see what you think. I wasn't able to figure out the regex to highlight function parameters unfortunately. Regex isn't my strong suite. I changed the color theme to Monokai and based it off of the coloring from Visua...
by GeekDude
24 Dec 2017, 09:27
Forum: Scripts and Functions
Topic: MultiTester.ahk - Create responsive desktop applications using HTML, CSS, JS, and AHK!
Replies: 19
Views: 1211

Re: MultiTester.ahk - Create responsive desktop applications using HTML, CSS, JS, and AHK!

I got both but I usually fire up the source first, seems more… safe. :) As I said, at least a couple url files in the respective folders would help greatly - I had to dig around the board to find RichCode mentioned in a single comment, which is not quite right IMHO. ;) I find GitHub extremely unfri...
by GeekDude
24 Dec 2017, 08:26
Forum: Ask For Help
Topic: #if condition seems broken Topic is solved
Replies: 5
Views: 110

Re: #if condition seems broken Topic is solved

You can create a function and put any condition code you want into it, including if Var contains MatchList if that's what you really want. #if MyCondition() ^q:: msgbox, if keeps me up return #if MyCondition() { global if ifnonsense contains %ifdrivesmenuts% return true return false }
by GeekDude
24 Dec 2017, 08:20
Forum: Scripts and Functions
Topic: MultiTester.ahk - Create responsive desktop applications using HTML, CSS, JS, and AHK!
Replies: 19
Views: 1211

Re: MultiTester.ahk - Create responsive desktop applications using HTML, CSS, JS, and AHK!

Did you download the release or the source code? The release (MultiTester_v0.2.zip) should have everything needed built in, while the source (as a zip or tar.gz) doesn't include dependencies. If you want to tinker with the source (not the release version) you'll need a git client. After cloning the ...
by GeekDude
23 Dec 2017, 11:25
Forum: Scripts and Functions
Topic: MultiTester.ahk - Create responsive desktop applications using HTML, CSS, JS, and AHK!
Replies: 19
Views: 1211

Re: MultiTester.ahk - Create responsive desktop applications using HTML, CSS, JS, and AHK!

can someone tell us n00bs what this thing does exactly? It's a test environment for writing scripts that link to a custom HTML GUI, like for example the AutoHotkey installer. With this, you can write some HTML, some CSS, some JavaScript, and some AHK, then run it together as one piece. When you ope...

Go to advanced search