Search found 827 matches

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

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
Replies: 2
Views: 33

Re: Negative coordinates result in weird mouse behavior

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: 33
Views: 14074

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 ...
by GeekDude
09 Jul 2018, 14:45
Forum: Scripts and Functions
Topic: Extremely irritating MsgBox (bored ...)
Replies: 5
Views: 247

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 o...
by GeekDude
09 Jul 2018, 14:11
Forum: Scripts and Functions
Topic: Extremely irritating MsgBox (bored ...)
Replies: 5
Views: 247

Re: Extremely irritating MsgBox (bored ...)

TheDewd wrote:

;)

Code: [Select all]GeSHi © Codebox Plus

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: 33
Views: 14074

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: 33
Views: 14074

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 o...
by GeekDude
07 Jul 2018, 21:52
Forum: Ask For Help
Topic: Any way to access Vive controller axis values?
Replies: 2
Views: 77

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

[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: 107
Views: 12786

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: 107
Views: 12786

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 he...
by GeekDude
14 Jun 2018, 10:15
Forum: Ask For Help
Topic: online data entry copy paste Topic is solved
Replies: 2
Views: 93

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]GeSHi © Codebox Plus

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: 107
Views: 12786

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

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

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 ...
by GeekDude
08 Jun 2018, 15:43
Forum: Tips and Tricks
Topic: GeekDude's Tips, Tricks, and Standalones
Replies: 33
Views: 14074

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: 2
Views: 177

[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: 95

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 / querySelect...
by GeekDude
08 Jun 2018, 09:09
Forum: Scripts and Functions
Topic: [Script] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 149
Views: 31432

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

Hi i dunno if it a can be called a bug, but i was using it for like 8hours straight last night and it seemed the longer i used it the wonkier the auto-completion, and the slower it got overall, i had like 6separate (CodeQuickTester)windows open, and the largest script i had open was no more than a ...

Go to advanced search