Search found 630 matches

by SOTE
Today, 01:28
Forum: Ask For Help
Topic: A control's variable must be global or static Topic is solved
Replies: 10
Views: 549

Re: A control's variable must be global or static Topic is solved

I modified the code. Will this be better? Yeah, something like that. Each part is doing a specific task, so it's easier to troubleshoot. It arguably creates a bad habit, when you have your functions, subroutines, or GUIs loaded down doing all kinds of different tasks with different purposes. Avoid ...
by SOTE
Yesterday, 18:07
Forum: Ask For Help
Topic: Helpmecode an ai to help you code
Replies: 1
Views: 65

Re: Helpmecode an ai to help you code

Looks like you posted this in the wrong forum. You are not asking for help with AutoHotkey.

Probably you should post this in the "Other Utilities & Resources" section, since this is a hybrid AutoHotkey mixed with Python utility.
https://www.autohotkey.com/boards/viewforum.php?f=22
by SOTE
Yesterday, 17:25
Forum: Ask For Help
Topic: Translate PowerShell to AHK - possible?
Replies: 29
Views: 497

Re: Translate PowerShell to AHK - possible?

When data comes from one program, it is always delimited with comma, when data comes from another program it is always delimited with semicolon (on one computer). On the other computer, the same data does not have the same delimitation. Now I must have one program for one computer and another progr...
by SOTE
Yesterday, 01:14
Forum: Ask For Help
Topic: Need help with Gui input in a function
Replies: 1
Views: 66

Re: Need help with Gui input in a function

The local variable is assigned as a name to a GUI Control. When the function exits, the local variables are cleaned out, but the GUI Control still needs it. So variables used by the GUI Control need to be global. "I would argue that one might want to be careful about stuffing GUIs into functions. On...
by SOTE
Yesterday, 01:07
Forum: Ask For Help
Topic: A control's variable must be global or static Topic is solved
Replies: 10
Views: 549

Re: A control's variable must be global or static Topic is solved

Hello, When I put "Gui, Add, ActiveX" into the function, I get an "A control's variable must be global or static" error. Why need to declare the "WB" variable as global or static? I would argue that one might want to be careful about stuffing GUIs into functions. One reason is mixing the GUI and a ...
by SOTE
22 Jun 2019, 00:28
Forum: Ask For Help
Topic: Uploading-downloading to-from Dropbox - OneDrive - Google Drive.
Replies: 2
Views: 86

Re: Uploading-downloading to-from Dropbox - OneDrive - Google Drive.

Has anyone been able to automate pushing files up to and pulling from any of these in code? I don't mind Dropbox / OneDrive / Google Drive, really it's a case of I'll use whichever system has the easiest way to fully automate sending files to/from (as I might do with FTP - I'd prefer to use Dropbox...
by SOTE
21 Jun 2019, 22:47
Forum: Scripts and Functions
Topic: Reads Excel (xlsx) Fast
Replies: 25
Views: 4381

Re: Reads Excel (xlsx) Fast

The concept of this idea is quite good, open .xlsx files with no Excel, because not everybody is going to have Microsoft Office. There are now many alternatives, like LibreOffice, Open Office, etc... That a person only needs AutoHotkey to open up and work with an Excel document (.xlsx) can be very u...
by SOTE
21 Jun 2019, 08:15
Forum: Ask For Help
Topic: StdOut and StdErr streams without using a file
Replies: 3
Views: 156

Re: StdOut and StdErr streams without using a file

Is there a way to get the StdOut and StdErr streams without using a file? With the following line I capture StdOut and StrErr into a file, and read from the file. Run %A_ComSpec% /c "%A_AHKPath% /ErrorStdOut "%scriptfile%" > "%StdOutfile%" 2>&1", %WorkingDir%, Hide UseErrorLevel, PID But I would li...
by SOTE
21 Jun 2019, 03:31
Forum: Ask For Help
Topic: If syntax
Replies: 4
Views: 156

Re: If syntax

fortunately, v1 and v2 aren't meant to be compatible at all. :wave: Cheers. Edit, hi guest3456 :beer: Might not work out the way some think. The incompatibility or v2 could result in decreased popularity or dying off of AutoHotkey. A lot might depend on tools like AHK v1 to AHK v2 converter or vers...
by SOTE
20 Jun 2019, 02:51
Forum: Ask For Help
Topic: Is it possible to open a GUI window via a link control? Topic is solved
Replies: 6
Views: 215

Re: Is it possible to open a GUI window via a link control? Topic is solved

Hello, I want to open the GUI window with a link instead of a button. Is this achievable? Just like the " Option " of IE's View Downloads . Thanks. https://i.stack.imgur.com/RyuMM.png You might want to download AutoGUI. Select "New GUI", and then where there is "Control Types", select the "Link" co...
by SOTE
20 Jun 2019, 02:42
Forum: Ask For Help
Topic: Is it possible to decompile the AHK executable?
Replies: 5
Views: 224

Re: Is it possible to decompile the AHK executable?

Hello, I used mpress to compile the AHK source code, but someone recognized that the exe was written using AHK. Does this mean that it can be decompiled? Someone has posted a decompiler, but I have not tested it. Thanks. The AutoHotkey.exe written C++, the answer is "no". However, there is a little...
by SOTE
20 Jun 2019, 00:13
Forum: Offtopic
Topic: hello world automation on Linux/Mac/iOS/Android
Replies: 4
Views: 383

Re: hello world automation on Linux/Mac/iOS/Android

Someone else made a post, referring to their experience with using AHK, Linux, and WINE.
https://www.autohotkey.com/boards/viewtopic.php?f=22&p=281494#p281494
by SOTE
19 Jun 2019, 22:04
Forum: Ask For Help
Topic: trojen virus
Replies: 2
Views: 99

Re: trojen virus

when I open the installer to install it, my antivirus says that it has a trojan virus with it, is this true? Make sure you are downloading it from the AutoHotkey website or official AutoHotkey GitHub page, and not some odd 3rd party source. In addition, make sure you do a complete scan with an alte...
by SOTE
19 Jun 2019, 21:54
Forum: Tutorials
Topic: How to Check if Webpage is Loaded (Google Chrome, Firefox, Internet Explorer)
Replies: 2
Views: 145

Re: How to Check if Webpage is Loaded (Google Chrome, Firefox, Internet Explorer)

A related method is to also use ImageSearch. I mention this, because it's probably a good idea for people to know this method too for achieving the same result, and it gives yet another option. Demonstration video https://youtu.be/64lMvLAZBFg (autohotkey wait for page to load) Note- video quality is...
by SOTE
18 Jun 2019, 07:35
Forum: Ask For Help
Topic: Scripts Consisting Of Thousands Of Lines
Replies: 5
Views: 217

Re: Scripts Consisting Of Thousands Of Lines

My longest script was not 1000 lines, but I'm having a hard time managing it. How do you manage to work so long? Do you have any subtlety? I'm getting lost in the code. It would be nice to split my work into script files. How can this happen when there's a lot of Gui? Thanks. I'm not a professional...
by SOTE
15 Jun 2019, 22:13
Forum: Ask For Help
Topic: Help with random function Topic is solved
Replies: 9
Views: 246

Re: Help with random function Topic is solved

I would avoid variable names that start with numbers (e.g. 16min, 16max) as these are not forwards compatible with AHK v2. But then again, there are lot of other incompatibilities between AHK v1 and AHK v2. Therefore the person might just choose to use or compile with the AHK v1 executable for that...
by SOTE
15 Jun 2019, 22:06
Forum: Ask For Help
Topic: How to a call a function with a number at the end
Replies: 4
Views: 156

Re: How to a call a function with a number at the end

Is it really necessary to have the 3 functions? are you sure that you can't just set up a test in one function? i.e abc(x){ if(x=1){ do this }else if(x=2){ do this }else { something else } } For consistency with Hellbent's 1st example, it might be better to show the 2nd example in a way similar to ...
by SOTE
15 Jun 2019, 02:01
Forum: Scripts and Functions
Topic: gdip function list tool
Replies: 14
Views: 972

Re: gdip function list tool

Hellbent wrote:
10 Feb 2019, 08:42
sorry I've never had a want to learn RegEx, so there is no RegEx.
You are not the only one. I don't use RegEx, unless I can't think of any other way, which has rarely happened. It's just something I find fun to do. I noticed they are some others that code that way too.
by SOTE
14 Jun 2019, 22:21
Forum: Scripts and Functions
Topic: gdip function list tool
Replies: 14
Views: 972

Re: gdip function list tool

This is a simple tool that lists all the functions in the gdip lib. Hellbent, I don't understand why you didn't edit your first post, and then put all the code there. Your 1st post is where people are most likely to look, and the 1st post is where many OPs make or show updates. While I think you sh...
by SOTE
14 Jun 2019, 21:01
Forum: Other Programming Languages
Topic: C++ Programmer Cost
Replies: 2
Views: 258

Re: C++ Programmer Cost

I don't think this is the best place to specifically find professional C++ coders or get bids from them. You might want to try the websites Freelancer or Upwork. Many people likely use AutoHotkey as their 1st, only, or most used programming language. If they know multiple languages, C++ might not be...

Go to advanced search