Search found 888 matches

by GeekDude
23 Jul 2018, 17:32
Forum: Scripts and Functions
Topic: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 194
Views: 80190

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Hi Everyone Love this tool so much... I was wondering if there is a way to 'autosave' your code in the event of something going wrong. AHK Studio has this feature / Sublime too -- some kind of autosave would be brilliant. Many thanks R There's no built in way to auto-save, but I'm working on making...
by GeekDude
14 Jul 2018, 22:29
Forum: Ask For Help
Topic: How can i convert my autohotkey.exe file back to .ahk file?
Replies: 1
Views: 356

Re: How can i convert my autohotkey.exe file back to .ahk file?

Typically you can open the script with an archive tool like 7-Zip or ResourceHacker to extract the AHK source. Another method I've heard people use is to open the exe file in notepad/some other text editor and scroll up from the bottom until you see the AHK source. If there is any distinctive part o...
by GeekDude
14 Jul 2018, 22:21
Forum: Ask For Help
Topic: Negative coordinates result in weird mouse behavior Topic is solved
Replies: 2
Views: 408

Re: Negative coordinates result in weird mouse behavior Topic is solved

There are two ways to write a hotkey. The first is to put a single line of code on the same line as the hotkey definition. This will run the single line of code and then stop. The second way is to put one or more lines of code below the hotkey definition. When you do that it will keep executing line...
by GeekDude
13 Jul 2018, 09:57
Forum: Tips and Tricks
Topic: GeekDude's Tips, Tricks, and Standalones
Replies: 34
Views: 25227

Re: GeekDude's Tips, Tricks, and Standalones

How do you "check/Uncheck" an item in the custom menu bar ? :think: When the function builds your menu out of your array structure, it creates an array and places the name of each menu into it. The indices of the array are in linear order according to where your sub-menus are placed into the array....
by GeekDude
09 Jul 2018, 14:45
Forum: Scripts and Functions
Topic: Extremely irritating MsgBox (bored ...)
Replies: 5
Views: 1287

Re: Extremely irritating MsgBox (bored ...)

*&L gets the address of variable L using & then the value of the byte at that address (which is the character code) using * . So, replacing that with Asc(L) for clarity, Asc(L) & 1 is checking whether the last binary digit is 1 or 0 . Even numbers end in binary 0 while odd numbers end in binary 1 ....
by GeekDude
09 Jul 2018, 14:11
Forum: Scripts and Functions
Topic: Extremely irritating MsgBox (bored ...)
Replies: 5
Views: 1287

Re: Extremely irritating MsgBox (bored ...)

TheDewd wrote:

Code: Select all

code
;)

Code: Select all

Loop {
	L:=Chr(65+Mod(A_Index-1,26))
	MsgBox,% *&L&1?48:524320,% *&L-64,% L,0.25
	IfMsgBox, OK
		return
}
by GeekDude
09 Jul 2018, 08:40
Forum: Tips and Tricks
Topic: GeekDude's Tips, Tricks, and Standalones
Replies: 34
Views: 25227

Re: GeekDude's Tips, Tricks, and Standalones

The recommended way of handling that issue is to put the code which triggers the error into a try/catch block. This allows you to run an alternate set of code in the case that the first set of code fails. Checking if you have an Internet connection before trying to make a request can work but it is ...
by GeekDude
08 Jul 2018, 11:03
Forum: Tips and Tricks
Topic: GeekDude's Tips, Tricks, and Standalones
Replies: 34
Views: 25227

Re: GeekDude's Tips, Tricks, and Standalones

This post has been updated! Two new sections, Networking and Web and Files and Folders ! The DllCall section has been updated to include a new tip to "Run command line tools without having a command prompt pop." You can see the exact changes from the revision history at the bottom of the original po...
by GeekDude
07 Jul 2018, 21:52
Forum: Ask For Help
Topic: Any way to access Vive controller axis values?
Replies: 2
Views: 615

Re: Any way to access Vive controller axis values?

I've got a couple of Vive controllers but won't have access to them for another month or so. I'm curious what your plan is for using them! AHKHID sounds pretty on track. Also, depending on your goals, perhaps you could look into a vive specific remapping program. I found this which might help https:...
by GeekDude
25 Jun 2018, 11:17
Forum: Forum Issues
Topic: [hr] tag invisible on Firefox
Replies: 7
Views: 2233

[hr] tag invisible on Firefox

When browsing the forum from Firefox the horizontal rule tag does not display. There is some CSS for hr tags that goes like this: hr { border: 0 solid transparent; border-top-width: 1px; height: 1px; margin: 5px 0; display: block; clear: both; } but for it to display properly in Firefox it needs to ...
by GeekDude
25 Jun 2018, 11:06
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 362
Views: 157489

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

Manuf Hi sirs. Can you help me with this simple task i want to write a script to detect - can check if webpage full loaded - can check if webpage loaded error - can check if an element display after an action. Ie: after upload a file, a button will turn from gray to yellow. i want to check that sta...
by GeekDude
18 Jun 2018, 17:27
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 362
Views: 157489

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

The syntax to set the value of a control is (IIRC) document.querySelector('abc').value = 'This is some text' , but many websites don't like it when you set the value directly. In that case, you would want to make a bunch of calls to the dispatchKeyEvent endpoint documented here: https://chromedevtoo...
by GeekDude
14 Jun 2018, 10:15
Forum: Ask For Help
Topic: online data entry copy paste Topic is solved
Replies: 2
Views: 1010

Re: online data entry copy paste Topic is solved

It's hard to be completely certain without being more familiar with your work flow, but I think yes.

For example, this code would perform that action whenever you press the x key.

Code: Select all

x::Send, ^c{AltTab}^a^v{Enter}{AltTab}{Down}
by GeekDude
13 Jun 2018, 12:28
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 362
Views: 157489

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

KusochekDobra wrote:Help me please.
I do not understand, how to use Chrome browser with "Chrome.ahk" in "Headless" mod.
Can you give an example?
Check out the ExportPDF.ahk example
by GeekDude
13 Jun 2018, 08:35
Forum: Ask For Help
Topic: Trying to put multiple scripts in one file
Replies: 4
Views: 615

Re: Trying to put multiple scripts in one file

Where you have two things both named SendKey they conflict. If you rename them to be SendKey1 and SendKey2 they will not conflict anymore. Also, AutoHotkey can't sleep for less than ~15ms so trying to sleep for 0.000000000000001 milliseconds is somewhat pointless. Using 1 would have the same effect....
by GeekDude
11 Jun 2018, 18:56
Forum: Scripts and Functions
Topic: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 194
Views: 80190

Re: [Script] CodeQuickTester - Write and run code without saving to a temporary file

Somewhat, memory doubles when the open/save dialog is active(receding only when inactive) & there's a similar CPU spike, but fairly consistent RAM usage relative to open size of open script. I'm thinking possibly the problem was that i had too many windows open, though i can't see how it's the caus...
by GeekDude
08 Jun 2018, 15:43
Forum: Tips and Tricks
Topic: GeekDude's Tips, Tricks, and Standalones
Replies: 34
Views: 25227

Re: GeekDude's Tips, Tricks, and Standalones

This post has been updated! Two new sections, GUIs and Regular Expressions!
by GeekDude
08 Jun 2018, 15:41
Forum: Scripts and Functions
Topic: [Script] Markdown to BBCode Converter
Replies: 6
Views: 2391

[Script] Markdown to BBCode Converter

Markdown to BBCode Converter Write your forum posts in Markdown and convert them to BBCode for display on the forum. Very useful for publishing scripts stored on GitHub! https://gist.githubusercontent.com/G33kDude/349c4b88f4f047692c1a33b2a9677857/raw/demo.gif Usage Simply paste in your markdown cod...
by GeekDude
08 Jun 2018, 10:56
Forum: Ask For Help
Topic: Some help with regex and ReplaceRegex() method
Replies: 3
Views: 646

Re: Some help with regex and ReplaceRegex() method

It's not clear what information you want specifically, but it sounds like you want to get the contents of <ul class="tag-group"> that is a child of <div class="content-type-text"> right? You should be able to get the exact data you need using only IE's querySelector / querySelectorAll methods. To se...

Go to advanced search