Search found 27 matches

by aircooled
20 Jun 2019, 02:20
Forum: Ask For Help
Topic: PixelSearch Help!
Replies: 3
Views: 121

Re: PixelSearch Help!

Use variable %Errorlevel% ================================================================ While ... PixelSearch, Px, Py, 200, 200, 300, 300, ..... if ErrorLevel MsgBox, That color was not found in the specified region. (Stop refreshing) else MsgBox, The color was found. (Continue refreshing) end wh...
by aircooled
20 Jun 2019, 02:12
Forum: Ask For Help
Topic: ahk MyScript.exe return string to command line
Replies: 3
Views: 100

Re: ahk MyScript.exe return string to command line

I have a solution that is not elegant. :x But it works. 1) Execute MyScript.exe (ahk) from a .bat file 2) In .ahk code (MyScript.exe) write the result string to a .txt file 3) From the .bat file read the string from the .txt file and 'echo' it It works. Not elegant but it works. :superhappy: Why the...
by aircooled
20 Jun 2019, 02:02
Forum: Ask For Help
Topic: Is it possible to decompile the AHK executable?
Replies: 5
Views: 231

Re: Is it possible to decompile the AHK executable?

No.

It means that the ahk code is explicit at the end of the compiled .exe file. Open the compiled file with notepad and go to the file end.
by aircooled
19 Jun 2019, 08:39
Forum: Ask For Help
Topic: ahk MyScript.exe return string to command line
Replies: 3
Views: 100

Re: ahk MyScript.exe return string to command line

Try this: Save the following to a script file (Example: MyScript.ahk) DllCall("AttachConsole", "Int", -1) FileAppend, Hello World!, CONOUT$ Then, open a new command line window, navigate to the directory where you saved the script, and run the script from the command line window. (Example: C:\MyScr...
by aircooled
19 Jun 2019, 07:16
Forum: Ask For Help
Topic: ahk MyScript.exe return string to command line
Replies: 3
Views: 100

ahk MyScript.exe return string to command line

I am executing MyScript.ahk in command line I need to return a string from MyScript.ahk to the caller in command line. The same way a .bat file would do. Just a simple string "this is the return string" I have checked ExitApp, return, etc with no success. I need the same that a .bat file would retur...
by aircooled
08 Feb 2019, 06:04
Forum: Ask For Help
Topic: Trouble creating external function. Pls help Topic is solved
Replies: 6
Views: 377

Re: Trouble creating external function. Pls help Topic is solved

I have succeeded with a user created created function #NoEnv GlobalFunc(localparameter := "Parameter initial value", localparameter2 := "Parameter2 initial value") { local localvar := "Local initial value" MsgBox, 0, , (LTrim localvar: %localvar% globalvar: %globalvar% localparameter: %localparamete...
by aircooled
08 Feb 2019, 05:36
Forum: Pulovers Macro Creator
Topic: Pulover's Macro Creator v5.0.5 - The Complete Automation Tool
Replies: 985
Views: 528513

Re: Pulover's Macro Creator v5.0.5 - The Complete Automation Tool

Is there a way to use whether the numlock is on or off in an IF function? Like i want to turn off a line when the numlock is on and have the line run when the numlock is off capslock := GetKeyState("Capslock", "T") MsgBox, 0, , >%capslock%< https://i.postimg.cc/dVrkvHMf/Get-Key-State.jpg If capsloc...
by aircooled
05 Feb 2019, 04:35
Forum: Ask For Help
Topic: Must the laptop/server be on all the time during execution?
Replies: 1
Views: 166

Must the laptop/server be on all the time during execution?

How is it with the laptop/server during Test automation? Is it on all the time? I am performing some automated tests, at the moment I am in front of the laptop during the execution of the ahk exe files. I execute from task scheduler and emulate a real tester being in front of the laptop. How does it...
by aircooled
05 Feb 2019, 04:08
Forum: Ask For Help
Topic: Circumvent screen lock timeout - script fails
Replies: 3
Views: 254

Re: Circumvent screen lock timeout - script fails

Thanks for this. Were you executing ahk in the same laptop or were you connected to a server? I believe your idea will solve my problem since it is the host laptop screen lock timeout that is limiting at the moment. I wonder if an ahk exe running in a server (opening a browser and performing a flow)...
by aircooled
02 Feb 2019, 15:13
Forum: Ask For Help
Topic: Circumvent screen lock timeout - script fails
Replies: 3
Views: 254

Circumvent screen lock timeout - script fails

I have a script that processes a couple of hundreds of records and it works just fine. The problem is that my organization has imposed a lock on screen lock settings and I can't change it. When the screen locks, my script, that relies on image recognition among other things, fails. Ew. Actually I VP...
by aircooled
30 Jan 2019, 06:44
Forum: Ask For Help
Topic: Highlighter tool - highlight effect like in Snipping Tool - HELP
Replies: 0
Views: 154

Highlighter tool - highlight effect like in Snipping Tool - HELP

Hi, newbie to ahk here. I would like to have a highlighter tool to make the image recognition search area visible. For visibility. Also that way errors would be immediately visible (searching for an image in the wrong area). I am thinking of the thin red line that we draw with the right mouse button...
by aircooled
28 Jan 2019, 05:25
Forum: Pulovers Macro Creator
Topic: System notification from Pulover?
Replies: 1
Views: 515

Re: System notification from Pulover?

Check settings in Macro -> Playback Options -> Speed Up
by aircooled
28 Jan 2019, 05:12
Forum: Ask For Help
Topic: Trouble creating external function. Pls help Topic is solved
Replies: 6
Views: 377

Re: Trouble creating external function. Pls help Topic is solved

File MyFirstFunc.ahk tried placing it with the executables, after that in a Lib dir under autohotkey.exe et to no avail. I would be glad to call it and have it pop up a msgbox. After that I would be glad if it could return the text "Hello world" and use a msgbox to display the text. Where should the...
by aircooled
28 Jan 2019, 04:46
Forum: Ask For Help
Topic: Trouble creating external function. Pls help Topic is solved
Replies: 6
Views: 377

Trouble creating external function. Pls help Topic is solved

I am having trouble putting to work an external function/procedure to be used by several ahk scripts. I understand that it has to be stored in a separate .ahk file Could someone post (or link to) a good 'idiot-safe' description of all necessary elements, steps. defined paths, etc. It will perform a ...
by aircooled
22 Jan 2019, 08:05
Forum: Ask For Help
Topic: Define PATH to pics or logs with A_WorkingDir or other env var
Replies: 1
Views: 172

Define PATH to pics or logs with A_WorkingDir or other env var

I would like to define the PATH to the script logfiles (write to logs with FileAppend) or to the pics (Image recognition) with env variables. Today I define: ThisLogfile := "C:\Users\dir\Documents\Script.Test Automation." A_Now ".log" I would like to define: ThisLogfile := "%A_WorkingDir%\Script.Tes...
by aircooled
21 Jan 2019, 04:51
Forum: Ask For Help
Topic: EXE AHK file. Can't write %A_Now% to Excel Topic is solved
Replies: 2
Views: 227

EXE AHK file. Can't write %A_Now% to Excel Topic is solved

Have a script that works like a dream. I open/read/write/save/close an Excel workbook wit COM Interface and it works very well. Excel 2003 and Excel 365 (exactly the same scenario in both) AHK v1.1.30.01 Windows 10 and Windows Server 2012R2 (have tried in both, same result) At start and end of my sc...
by aircooled
06 Jan 2019, 08:31
Forum: Pulovers Macro Creator
Topic: PMC Files disappearing in Windows 10
Replies: 0
Views: 344

PMC Files disappearing in Windows 10

I've been working with PMC 5.0.5 (x64) several months in Windows 7 without any kind of problem. I have now a brand new laptop with Windows 10 and files are suddenly gone at (apparently) random times without any kind of reason. I was working with 4 pmc scripts which I opened with PMC's very own 'rece...
by aircooled
06 Jan 2019, 08:18
Forum: Pulovers Macro Creator
Topic: Visualize image search area at execution time.
Replies: 0
Views: 290

Visualize image search area at execution time.

When selecting the region for image search (by right clicking and drawing the rectangle) a red line is displayed showing the selected area until the right mouse button is release, at which point the coordinates of the rectangle are read and written in the 'regions start' and 'region end' as xy-coord...

Go to advanced search