Search found 853 matches

by GeekDude
26 Jul 2018, 21:00
Forum: Scripts and Functions
Topic: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 188
Views: 57445

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

In my opinion, you shouldn’t even support such a small window size. Make the GUI have a minimum size and call it a day. The problem is that the length of the syntax tip is variable, and sometimes very large. Maximizing the amount of space in the status bar for it is my goal and it will be beneficia...
by GeekDude
26 Jul 2018, 14:15
Forum: Scripts and Functions
Topic: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 188
Views: 57445

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

I'm testing out some options for combining them. I tried putting the syntax tip on the left and right-aligning the document info, but the text overlaps when the bar gets too short.

I think the approach shown in this gif makes sense even if it's not "pretty".

Image
by GeekDude
26 Jul 2018, 12:53
Forum: Scripts and Functions
Topic: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 188
Views: 57445

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

Looks good. Now just get rid of the horizontal scrollbar on the gutter. The reason that is there is to keep the vertical dimensions of the gutter the same size as the main body. If it wasn't then the vertical scroll synchronization wouldn't work. Though now that I've typed that out I went to double...
by GeekDude
26 Jul 2018, 10:13
Forum: Scripts and Functions
Topic: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 188
Views: 57445

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

I meant like saving the scripts when you open them from a codebox. So you don't need to download/save them too. A "Get" buttom next to "Open" could do that so you would still have a regular "Open" button as well. A snippet manager could indeed be overkill - a companion app would be nice but maybe t...
by GeekDude
24 Jul 2018, 21:23
Forum: Scripts and Functions
Topic: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 188
Views: 57445

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

Would love to see an auto-saving feature (on load) You mean when you hit run? Should be possible, perhaps even easy, to implement. I'll add it to my list of things to do. snippets manager, optionally with a link to the thread it came from maybe ? This way one can easily load already opened scripts ...
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: 188
Views: 57445

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

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

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

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

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

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

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

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

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

[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: 166
Views: 60765

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: 166
Views: 60765

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

Re: online data entry copy paste

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: 166
Views: 60765

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

Go to advanced search