Search found 189 matches

by ahk7
13 Aug 2019, 13:09
Forum: Scripts and Functions
Topic: Upcoming Ahk2Exe Changes (2019)
Replies: 79
Views: 5470

Re: Upcoming Ahk2Exe Changes (2019)

@TAC109 no problem, thought I'd share some ideas during development. Nice to hear about the File, Save as... :)
by ahk7
12 Aug 2019, 14:36
Forum: Ask For Help
Topic: My code is a mess - i need help
Replies: 3
Views: 257

Re: My code is a mess - i need help

The "trick" might be refactoring your code step by step. As soon as you notice you start to repeat code, think about: * Can I make this a Global label to Gosub and return to/from. 10 x 5 lines = 50 lines, 1 x 5 lines + 10 Gosubs = 15 lines total vs 50. * Better might be to create a function. Example...
by ahk7
12 Aug 2019, 11:33
Forum: Scripts and Functions
Topic: Upcoming Ahk2Exe Changes (2019)
Replies: 79
Views: 5470

Re: Upcoming Ahk2Exe Changes (2019)

More ideas: Replace the DDL for the BIN with a multi-select listbox or listview so you can select multiple bins and compile, that way you can compile 32 and 64 bit at the same time or multiple bins if you add more. Non-functional GUI below. I chose listview as it allows for more information using mu...
by ahk7
11 Aug 2019, 05:17
Forum: Scripts and Functions
Topic: Upcoming Ahk2Exe Changes (2019)
Replies: 79
Views: 5470

Re: Upcoming Ahk2Exe Changes (2019)

Just a thought: 1) for those who compile often it might be tedious to open the Gui, select files and options so why not add a "save as" option which will simple generate a script so you can run it with the cli options. (patch for ahk2exe.ahk below) 2) perhaps the /cp option should be added to the GU...
by ahk7
09 Aug 2019, 13:15
Forum: Ask For Help
Topic: Export docx to pdf by PDF-XChange
Replies: 8
Views: 303

Re: Export docx to pdf by PDF-XChange

@jmasiak why not go old skool and simply send alt-keystrokes to do it. If you press Alt once in Word you will see the keyboard shortcut for all the "ribbons" incl your PDF-XChange one, so say it is "v", press it and you should see the keyboard shortcut for "convert as PDF", say "a" - so it could be ...
by ahk7
31 Jul 2019, 11:35
Forum: Ask For Help
Topic: Copy selected text and images on a webpage into a .docx file
Replies: 2
Views: 124

Re: Copy selected text and images on a webpage into a .docx file

See code by Fanatic Guru here - open a Word document, copy some text in say your browser and hit F1 and you'll see it pasted in the Word docs with images, formatting etc https://www.autohotkey.com/boards/viewtopic.php?p=135653#p135653 You can Google for further "COM" Word commands to open/save/"hidd...
by ahk7
30 Jul 2019, 15:20
Forum: Ask For Help
Topic: Show contents of Windows Clipboard in a Gui Text box as the contents change. Topic is solved
Replies: 2
Views: 155

Re: Show contents of Windows Clipboard in a Gui Text box as the contents change. Topic is solved

OnClipboardChange("UpdateView") ; see https://www.autohotkey.com/docs/commands/OnClipboardChange.htm#function ^9:: Gui, Add, Text, vClip, Here are the clipboard contents: %clipboard% `n ; add vVariable to make it easier below Gui, Add, button, x100 w100 h30 gcl1, OK Gui, Add, button, x+30 w100 h30 ...
by ahk7
30 Jul 2019, 15:04
Forum: Forum Issues
Topic: Signature disable for new users
Replies: 9
Views: 732

Re: Signature disable for new users

Saw one today* and some earlier this week - *the signature is now removed for that user but there are now several users who post "nice" comments (usually only one) but have links in their profile to commercial websites: * this user had a spam signature https://www.autohotkey.com/boards/viewtopic.php...
by ahk7
23 Jul 2019, 12:41
Forum: Ask For Help
Topic: Exiting Subscript only
Replies: 7
Views: 311

Re: Exiting Subscript only

Not sure what your problem/question is, look at this simple example which works Script b1.ahk #z:: Run b2.ahk Return Script b2.ahk MsgBox Hello B2 is started #x:: MsgBox Closing B2 ExitApp Return Start script b1, press winkey-z and it will start b2, if you press winkey-x it will close b2 but b1 will...
by ahk7
12 Jul 2019, 16:05
Forum: Ask For Help
Topic: FileAppend raw option Topic is solved
Replies: 2
Views: 258

Re: FileAppend raw option Topic is solved

var1 := "Hello World" var2 := "Hello Mars" ; Option 1 - selectively: escape % using backtic ` - see https://www.autohotkey.com/docs/commands/_EscapeChar.htm FileAppend, ( %var1%, `%var2`% SetWorkingDir `%A_ScriptDir`% ), Test.txt ; Option 2 - simply all: see https://www.autohotkey.com/docs/Scripts....
by ahk7
12 Jul 2019, 11:31
Forum: Scripts and Functions
Topic: parse CSV (specify delimiters and qualifier)
Replies: 4
Views: 447

Re: parse CSV (specify delimiters and qualifier)

Delimiter Seperated Values by DerRaphael https://autohotkey.com/board/topic/30102-how-can-i-parse-a-csv-file-with-multi-line-values/#entry191846 which is used the CSV libary https://github.com/hi5/CSV As the old forum sometimes has messed up code I would check/use the one in the CSV lib as it is co...
by ahk7
28 Jun 2019, 16:02
Forum: Ask For Help
Topic: run a single AHK command in windows cmd? Topic is solved
Replies: 13
Views: 612

Re: run a single AHK command in windows cmd? Topic is solved

What did you mean? Where do you put the a MsgBox Hello There to run? Thanks! Copy that code I posted into a new batch file, save it as "a.cmd" - place that somewhere in your "path" environment, say c:\windows\ - that way you can call it from any directory in a dos command window by simply typing "a...
by ahk7
28 Jun 2019, 11:31
Forum: Ask For Help
Topic: run a single AHK command in windows cmd? Topic is solved
Replies: 13
Views: 612

Re: run a single AHK command in windows cmd? Topic is solved

You can use a batch file to write a temp. ahk script and start that, place the following somewhere in your `path` as `a.cmd` @ECHO OFF DEL onelinescript.ahk ECHO %* > onelinescript.ahk START /w onelinescript.ahk DEL onelinescript.ahk if you want to run an AHK command you prefix it with a+space+your ...
by ahk7
27 Jun 2019, 15:31
Forum: Ask For Help
Topic: Need a basic menu
Replies: 3
Views: 221

Re: Need a basic menu

1. Menu Maker [AHK 1.1] @ https://www.autohotkey.com/boards/viewtopic.php?f=6&t=45649 2. ezMenu() - easy menu creation using indentation @ https://www.autohotkey.com/boards/viewtopic.php?f=6&t=38426 ezMenu() might the one your after, just create a text file - or in the code - with indentation :arrow...
by ahk7
24 Jun 2019, 10:51
Forum: Forum Issues
Topic: Phishing attempt sent to AHK email address
Replies: 3
Views: 326

Re: Phishing attempt sent to AHK email address

I got one from Jagex noreply @ a . runescape . com - perhaps that is from the very old problem with the former owner of this AHK domain and is a known runescape [...]
by ahk7
21 Jun 2019, 13:01
Forum: Wish List
Topic: Loop, Parse, Var, CSV
Replies: 31
Views: 1588

Re: Loop, Parse, Var, CSV

Perhaps borrow the Dx[1] from the Sort command?

Loop, parse, CSV, Dx

[1] Dx: Specifies x as the delimiter character - https://www.autohotkey.com/docs/commands/Sort.htm
by ahk7
09 Jun 2019, 07:40
Forum: Scripts and Functions
Topic: Upcoming Ahk2Exe Changes (2019)
Replies: 79
Views: 5470

Re: Upcoming Ahk2Exe Changes (2019)

Perhaps change the license to GPL so it is the same as AHK? Currently it is WTFPL, it is a bit strange to see (c) Sam H. in there.
by ahk7
23 May 2019, 08:36
Forum: Ask For Help
Topic: Fastest way to loop through Folders
Replies: 9
Views: 431

Re: Fastest way to loop through Folders

Perhaps look into https://autohotkey.com/board/topic/79420-ahk-l-listmftfiles-ntfs-instant-file-search/
Also check if your Antivirus doesn't interfere with AHK it might scan its actions and thus make it slow.
by ahk7
19 May 2019, 03:31
Forum: Forum Issues
Topic: Forum changes, requests and features
Replies: 76
Views: 17954

Re: Forum changes, requests and features

What problems does it solve is probably a better question. It is none of Google's (or other third party) business that people visit this website I think - and visitors should be informed (in Europe it would be required to do so + given the option to opt-out). Perhaps it came as default with the clou...

Go to advanced search