Search found 854 matches

by GeekDude
22 Jan 2018, 12:31
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 48
Views: 9284

Re: [Competition] AHK dwitter!

Will join at home, from time to time I go to the irc channel but it's mostly about gambling there it seems xD The various minigames going on in there drive up engagement, I think, even if it is a little off-topic. Do not be deceived though, if someone with knowledge pertaining to your question is o...
by GeekDude
22 Jan 2018, 01:09
Forum: AutoHotkey v2 Development
Topic: Object declaration syntax Topic is solved
Replies: 20
Views: 3212

Re: Object declaration syntax Topic is solved

I've never studied the AutoHotkey source directly, so I may be a little off the mark, but this is what I understand the situation to be: It'd be more convenient to use, but the current way it works is very simple to implement and maintain. Essentially, any line that begins with an operator character...
by GeekDude
21 Jan 2018, 22:17
Forum: AutoHotkey v2 Development
Topic: Object declaration syntax Topic is solved
Replies: 20
Views: 3212

Re: Object declaration syntax Topic is solved

I haven't done much with v2, but in v1 you can put your object into a continuation section and format it however you want (as shown in my tips thread ). For v2 you may have to specify the Quotes option after LTrim Join . ; http://www.json.org/example.html MyObject := ( LTrim Join { "glossary": { "ti...
by GeekDude
21 Jan 2018, 12:08
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 195
Views: 71375

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

Ah, hm. This script works by creating a hidden web control (IE) and using Microsoft's WebSocket object through COM. It then uses this WebSocket to connect to Chrome. On my system, IE is forbidden from accessing localhost , but is allowed to access 127.0.0.1 . It looks like your system is blocking 12...
by GeekDude
17 Jan 2018, 12:05
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 195
Views: 71375

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

What did the security error dialog say? If it was a problem that prevented the websocket form connecting, it would make sense that it would get stuck waiting for the connection to complete.
by GeekDude
17 Jan 2018, 07:39
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 195
Views: 71375

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 folder neede...
by GeekDude
16 Jan 2018, 20:44
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 48
Views: 9284

Re: [Competition] AHK dwitter!

:)
Image
by GeekDude
16 Jan 2018, 17:38
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 195
Views: 71375

[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: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 192
Views: 61513

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: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 192
Views: 61513

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 (Thanks derz00!) Working Direc...
by GeekDude
02 Jan 2018, 00:00
Forum: Ask For Help
Topic: Any way to prevent app from seeing mouse movement?
Replies: 2
Views: 456

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: 468

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: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 174275

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 Alt+n must be press...
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: 1559

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:

Code: Select all

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 Topic is solved
Replies: 3
Views: 1692

Re: maxsplit parameter for StrSplit Topic is solved

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: 559

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: 673

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

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: 48
Views: 9284

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(...

Go to advanced search