Search found 694 matches

by lmstearn
09 Apr 2024, 09:25
Forum: Ask for Help (v1)
Topic: WinHttp.WinHttpRequest IsInternetConnected()
Replies: 3
Views: 197

Re: WinHttp.WinHttpRequest IsInternetConnected()

Apologies for the late response - how did you go with it? That link and Malcev's are great, at first glimpse aren't they just another way of doing the same thing? FWIW IPv6 is configured on the router over here and works . Would hazard a guess that whatever url is returning the error to http://ipv6....
by lmstearn
07 Apr 2024, 01:50
Forum: Ask for Help (v1)
Topic: WinHttp.WinHttpRequest IsInternetConnected()
Replies: 3
Views: 197

Re: WinHttp.WinHttpRequest IsInternetConnected()

Tried the following: ;Should be compatible with Win XP or higher, 32/64 bit, Unicode or ANSI, latest version. #Requires AutoHotkey v1.1.33+ ;code here loop, 50 { gosub CheckInternet ;(probably about 5 seconds elapses before calling the gosub again) sleep 5000 } ;more code here msgbox Completed! retu...
by lmstearn
03 Apr 2024, 15:39
Forum: Ask for Help (v1)
Topic: AHK Script to connect to a Named Pipe Help
Replies: 7
Views: 160

Re: AHK Script to connect to a Named Pipe Help

The info is all there in the MS article for CreateNamedPipe, the task of matching the settings in the Python client/server scripts to the OP AHK script may relate to just one of the tweaks applied later, but hey it's working and glad to be of help! :)
by lmstearn
01 Apr 2024, 22:18
Forum: Ask for Help (v1)
Topic: AHK Script to connect to a Named Pipe Help
Replies: 7
Views: 160

Re: AHK Script to connect to a Named Pipe Help

It's a v1 script, best to continue with debugging that. :) Regarding the win32pipe.CreateNamedPipe function in the Python script, replace win32pipe.PIPE_TYPE_MESSAGE | win32pipe.PIPE_WAIT with win32pipe.PIPE_WAIT and increase the timeout from 300 to e.g. 3000, also check win32pipe.PIPE_ACCESS_OUTBOU...
by lmstearn
31 Mar 2024, 22:08
Forum: Ask for Help (v1)
Topic: AHK Script to connect to a Named Pipe Help
Replies: 7
Views: 160

Re: AHK Script to connect to a Named Pipe Help

Shouldn't be syntax errors with 64bit, might be an issue if you had old ahk v1 +v2. In that case uninstall the lot, re-install v2, then install v1 after. The Python script uses PIPE_ACCESS_OUTBOUND , make any difference changing to PIPE_ACCESS_DUPLEX ? PIPE_NAME := "\\.\pipe\SamplePipe" PIPE_ACCESS_...
by lmstearn
31 Mar 2024, 06:02
Forum: Ask for Help (v1)
Topic: AHK Script to connect to a Named Pipe Help
Replies: 7
Views: 160

Re: AHK Script to connect to a Named Pipe Help

Hi, have to ask, the bitness matches in both processes, 32bit or 64 bit, and both process are either unicode or ANSI?
To narrow down the issue, catch the value of A_LastError directly after the CF function, also consider Wait and Peek functions for named pipes mentioned in this thread.
by lmstearn
26 Mar 2024, 04:20
Forum: Ask for Help (v1)
Topic: Please update the Premiere Pro True Fullscreen to Premiere 24
Replies: 4
Views: 93

Re: Please update the Premiere Pro True Fullscreen to Premiere 24

Hi, lmstearn, I tried installing v.2 but it does not read the code published here https://vakago-tools.com/premiere-pro-true-fullscreen-tutorial/ saying this script code is only for the v.1.1 And I don't have the skills to rewrite this code for version 2. Isn't there someone who can just adapt this...
by lmstearn
25 Mar 2024, 22:51
Forum: Ask for Help (v1)
Topic: Please update the Premiere Pro True Fullscreen to Premiere 24
Replies: 4
Views: 93

Re: Please update the Premiere Pro True Fullscreen to Premiere 24

Hi AndyF, welcome to AHK. :) As Adobe isn't installed here, just a few pointers. As there is no issue with the script with hiding the Title Bar of the app, the app class name is correct, we assume the makers of the app have changed the Toolbar properties. Be sure to have the latest AHK installed, it...
by lmstearn
25 Mar 2024, 12:51
Forum: Bug Reports
Topic: WinTitle with multiple ahk_id uses only last one
Replies: 5
Views: 161

Re: WinTitle with multiple ahk_id uses only last one

Thanks, that explains it. :) In the linked function there is CRITERION_ID , first thought it was a stub for some kind of recursive dissection of the ahk_criteria of the criteria id, there's more to it. For instance the comments note it can crop up with WinActive(), ahk_id in ahk_group - and others, ...
by lmstearn
24 Mar 2024, 23:44
Forum: Bug Reports
Topic: WinTitle with multiple ahk_id uses only last one
Replies: 5
Views: 161

Re: WinTitle with multiple ahk_id uses only last one

How odd, the second window is chosen if a space is prefixed to the second ahk_id string, otherwise it's the first id (as expected :P ): list := WinGetList() hwnd1 := list[1] hwnd2 := list[2] MsgBox "hwnd1 is " hwnd1 ", Ist element of WinGetList, no space : " WinExist("ahk_id " hwnd1 "ahk_id " hwnd2)...
by lmstearn
22 Mar 2024, 00:07
Forum: Ask for Help (v1)
Topic: Toggle Mouse Pointer Transparency
Replies: 1
Views: 65

Re: Toggle Mouse Pointer Transparency

Hi, changing the mouse cursor from a transparent cursor image file you have created might be the best approach, there is also SetSystemCursor and RestoreCursor for effects on all cursors, in the LoadImage function try:

Code: Select all

LR_LOADTRANSPARENT := 0x00000020
by lmstearn
21 Mar 2024, 01:51
Forum: Bug Reports
Topic: SysGetIPAddresses() causes Invalid memory read/write. Topic is solved
Replies: 7
Views: 234

Re: SysGetIPAddresses() causes Invalid memory read/write. Topic is solved

Could be, AHK uses Winsock.h only, in there:
#ifdef IPV6STRICT
#error WINSOCK2 required.
in_addr is for ipv4 only. :(
Toggled off the ethernet to test, the IP now loops back to localhost, no crash either.
Quite a rabbit hole with v6, this seems to be most accepted on SO.
by lmstearn
20 Mar 2024, 01:41
Forum: Bug Reports
Topic: SysGetIPAddresses() causes Invalid memory read/write. Topic is solved
Replies: 7
Views: 234

Re: SysGetIPAddresses() causes Invalid memory read/write. Topic is solved

In v1, using the posted code gets: Error: Call to nonexistent function. Specifically: SysGetIPAddresses() Line# ---> 001: addresses := SysGetIPAddresses() 002: msg := "IP addresses: " 003: For n,address in addresses 004: msg .= address " " 005: MsgBox,msg 006: Exit The program will exit. Not using a...
by lmstearn
10 Mar 2024, 05:37
Forum: Gaming Scripts (v1)
Topic: Flappy Bird but Bad [Game]
Replies: 14
Views: 3085

Re: Flappy Bird but Bad [Game]

Cool, glad you found Chatgpt to be of some use. There's always plenty of time, and heaps of resources on hand in the site, and ... we'll be here as well.
Good luck. :)
by lmstearn
09 Mar 2024, 22:07
Forum: Gaming Scripts (v1)
Topic: Flappy Bird but Bad [Game]
Replies: 14
Views: 3085

Re: Flappy Bird but Bad [Game]

Coming on nicely, :) And a handful of milestones: Embed all data files in script. <Enter> key to commence, restart game. Text on starting screen: <Spacebar> to jump. Selectable speed modes: Speedy, Normal, Granny. Gap between pipes: Narrow, Normal, Wide Coloured pipes (cached before each game) Green...
by lmstearn
06 Mar 2024, 00:27
Forum: Ask for Help (v1)
Topic: Outlook COM failure
Replies: 2
Views: 95

Re: Outlook COM failure

Hi Joe, could be that the index of the object is of a variant type, so the object method might be taking the string value of the variable name OuterDex by default when the type cannot be ascertained. Yet in the next line A_Index is used, so no problem with the type in that case. A For - each Item in...
by lmstearn
05 Mar 2024, 01:54
Forum: Ask for Help (v1)
Topic: [v1.1.37.01]"Post-increment" forgets its "Post" ?
Replies: 12
Views: 553

Re: [v1.1.37.01]"Post-increment" forgets its "Post" ?

++N++ Even though it is a standalone statement, it should produce a syntax error, as the docs (and the Standard) indicate they are exclusive constructs: For example, Var := ++X increments X and then assigns its value to Var. Conversely, if the operator appears after the variable's name, the result ...
by lmstearn
02 Mar 2024, 08:22
Forum: Forum Issues
Topic: Slow forum
Replies: 81
Views: 8343

Re: Slow forum

When making a post there's a bit of a wait before the page refreshes to show it, opening the topic in another window/tab before the refresh often shows the post already included in the topic. This has been the case for almost a year, the wait is getting longer no doubt as the DB grows in size. By co...
by lmstearn
29 Feb 2024, 08:31
Forum: Scripts and Functions (v1)
Topic: showcase of random Scripts
Replies: 2
Views: 225

Re: showcase of random Scripts

Try out the slightly ridiculous Splashy Roadtest, required files here. :P
by lmstearn
29 Feb 2024, 07:57
Forum: Ask for Help (v1)
Topic: Issue reading data after FileAppend/FileRead ClipboardAll
Replies: 6
Views: 242

Re: Issue reading data after FileAppend/FileRead ClipboardAll

FileAppend only supports text, ClipboardAll is a binary memory object dumped to string, Winclip saves and loads it. Thanks Just Me, :thumbup: dataHandle is redefined as the pointer to the block, he had to call Unlock: #SingleInstance Force #requires AutoHotkey v1.1 strClipFilePath := A_ScriptDir . "...

Go to advanced search