Search found 101 matches

by labrint
26 Feb 2019, 04:48
Forum: Ask For Help
Topic: running two functions at once
Replies: 5
Views: 206

Re: running two functions at once

I don't think you can run two functions at once in a single script because AHK does not support multithreading. What you can do is run this script in parallel with another script. #Persistent SetTimer, Internet, 500 return ConnectedToInternet(flag=0x40) { Return DllCall("Wininet.dll\InternetGetConne...
by labrint
26 Feb 2019, 03:31
Forum: Ask For Help
Topic: Taskbar Search Macro
Replies: 0
Views: 95

Taskbar Search Macro

Windows allows one to create a search bar in the taskbar to locate a file and search the internet.

Can one add a macro taskbar search bar? I have in mind a search bar that acts as an input box at the start of a macro.
by labrint
26 Feb 2019, 03:05
Forum: Ask For Help
Topic: Error 0x80072F7D - An Error occured in the secure channel support Topic is solved
Replies: 1
Views: 154

Re: Error 0x80072F7D - An Error occured in the secure channel support Topic is solved

Replaced

Code: Select all

WinHttp := ComObjCreate("WinHttp.WinHttpRequest.5.1")
with

Code: Select all

WinHttp := ComObjCreate("MSXML2.XMLHTTP.6.0")
and it worked.
by labrint
26 Feb 2019, 03:01
Forum: Ask For Help
Topic: WinHttpRequest (An error occurred in the secure channel support)
Replies: 16
Views: 733

Re: WinHttpRequest (An error occurred in the secure channel support)

- You could try this: oHTTP := ComObjCreate("MSXML2.XMLHTTP.6.0") - Which is demonstrated here: Lynda.com workaround - Page 2 - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=61969&p=264597#p264597 - Or try variants of the code by teadrinker in that thread. This worked for m...
by labrint
22 Feb 2019, 07:37
Forum: Ask For Help
Topic: Software Monitoring
Replies: 0
Views: 119

Software Monitoring

I have an AHK which I am selling as a subscription and I need to monitor each time it is run. Currently, I use an API call to Airtable to fill a spreadsheet. I need suggestions of what to use which is cheaper, and has less limitations than Airtable. Airtable limitations: 1,200 record limit for free ...
by labrint
22 Feb 2019, 07:24
Forum: Ask For Help
Topic: Returning values / variables in multiple conditions
Replies: 5
Views: 230

Re: Returning values / variables in multiple conditions

I do that already DRocks.

Returning to the question, is there a way to return Vars which meet / do not meet a condition / multiple conditions?
by labrint
22 Feb 2019, 04:03
Forum: Ask For Help
Topic: Returning values / variables in multiple conditions
Replies: 5
Views: 230

Re: Returning values / variables in multiple conditions

I'm working on software where I need to capture a lot of classNNs and sometimes, something goes wrong and the var remains empty. I need to know which ones are empty in multiple conditions.
by labrint
22 Feb 2019, 03:07
Forum: Ask For Help
Topic: Returning values / variables in multiple conditions
Replies: 5
Views: 230

Returning values / variables in multiple conditions

Example code;

Code: Select all

A := 0
B := 0
C := 0

If (A = 1) OR (B = 1) OR (C = 0)
MsgBox, One of the variables is a zero
How can I return which variable satisfied the conditions and which variables did not?
by labrint
21 Feb 2019, 16:13
Forum: Ask For Help
Topic: WinHttpRequest (An error occurred in the secure channel support)
Replies: 16
Views: 733

Re: WinHttpRequest (An error occurred in the secure channel support)

Is a solution involving code possible? It is not always possible to fix registries of many client pcs.
by labrint
21 Feb 2019, 06:04
Forum: Ask For Help
Topic: Screen Resolution Issues
Replies: 20
Views: 643

Re: Screen Resolution Issues

Yes Jeeswg that is good for clicking the centre of a known ClassNN. But you need to click an area in the class with an unknown position, on several systems without a hitch its good to relate it to other points. If it runs on one operating system with the same monitor settings I would not go through ...
by labrint
21 Feb 2019, 04:26
Forum: Ask For Help
Topic: Screen Resolution Issues
Replies: 20
Views: 643

Re: Screen Resolution Issues

I have solved it using this method. Step 1; Get the position of four arbitrary controls in the target window. Preferably situated Top Left, Top Right, Bottom Left, Bottom Right to be able to account for the stretch with different resolutions and screen sizes. Use WinGet, ActiveControlList, ControlLi...
by labrint
21 Feb 2019, 03:09
Forum: Ask For Help
Topic: Error 0x80072F7D - An Error occured in the secure channel support Topic is solved
Replies: 1
Views: 154

Error 0x80072F7D - An Error occured in the secure channel support Topic is solved

I am using Autohotkey to log data onto Ragic (online database) via API with the following code. The code works on most computers but not all and it gives this error on those it doesn't work on. Can anyone explain? It is stemming from AHK. Ragic(Name,PID,Transaction){ API_Key := "****" Ragic_Date := ...
by labrint
15 Feb 2019, 13:44
Forum: Ask For Help
Topic: Screen Resolution Issues
Replies: 20
Views: 643

Re: Screen Resolution Issues

I am currently approaching this problem by mapping the coordinates of all the controls in the software.

I calculate the distances between these controls and multiply with constants to deduce the coordinates that vary from pc to pc
by labrint
15 Feb 2019, 04:43
Forum: Ask For Help
Topic: Screen Resolution Issues
Replies: 20
Views: 643

Re: Screen Resolution Issues

Even if I get the control co-ordinates, I have a problem. There is a control with 5 buttons in it. I need to use ControlClick with the control address and the X Y offset to trigger each button. The X Y coordinates vary in these PCs. So even using controls or getting coordinates from controls are not...
by labrint
15 Feb 2019, 04:22
Forum: Ask For Help
Topic: Screen Resolution Issues
Replies: 20
Views: 643

Re: Screen Resolution Issues

SOTE I have used the above methods extensively. But I have a situation where I need to press locations without controls, as well as controls which are unnamed and changing ClassNN changing all the time. It would be very hard to use controls in that situation. Believe me, I have been using them for y...
by labrint
15 Feb 2019, 03:54
Forum: Ask For Help
Topic: Screen Resolution Issues
Replies: 20
Views: 643

Re: Screen Resolution Issues

I ran a code to check the position of the button across two resolutions. Screen Resolution 1440 by 900 control is 193,276 Screen Resolution 1024 by 768 control is 193,272 Why does Y change but X did not change? #SingleInstance force Gui, Add, Button, x190 y250 w30 h30, Executor Gui, Add, Button, x31...
by labrint
15 Feb 2019, 03:36
Forum: Ask For Help
Topic: Screen Resolution Issues
Replies: 20
Views: 643

Re: Screen Resolution Issues

I've tried the SysGet, to get monitor size and use it instead of resolution. Didn't work either. The coordinates of the buttons were the same location on both PCs with different resolutions! Then I have some client PCs which the button coordinates do not match.
by labrint
15 Feb 2019, 03:26
Forum: Ask For Help
Topic: Screen Resolution Issues
Replies: 20
Views: 643

Re: Screen Resolution Issues

I have written a simple code (below). 1440 and 900 is the resolution of my computer. If your resolution is the same, pressing the button press me would press the executor button. But if your resolution is different it will not work, even though the math is supposed to adjust the coordinates. #Single...
by labrint
14 Feb 2019, 13:47
Forum: Ask For Help
Topic: Screen Resolution Issues
Replies: 20
Views: 643

Re: URGENT: Screen Resolution Issues

I use them SOTE. This is a particular situation where it is impossible to use ControlSend/Click, because the Table Cell I need to click does not have a ClassNN.

Interesting AHK Student. Can you tell me how you arrived at 34, and 4.1?

Go to advanced search