Search found 460 matches
- 28 Apr 2024, 14:50
- Forum: Wish List
- Topic: Add auto-hide timeout for Tooltip
- Replies: 4
- Views: 720
Re: Add auto-hide timeout for Tooltip
TimedToolTip(content, life:=0, x?, y?, whichToolTip:=1){ life := life < 0 ? 0 : life ToolTip(content, x?, y?, whichToolTip) SetTimer(()=>ToolTip("", , , whichToolTip), -life) } Or from the V2 docs... ToolTip "Timed ToolTip`nThis will be displayed for 5 seconds." SetTimer () => ToolTip(), -5000 I ne...
- 28 Apr 2024, 14:47
- Forum: SciTE4AutoHotkey
- Topic: C:\Program' is not recognized as an internal or external command
- Replies: 6
- Views: 2255
Re: C:\Program' is not recognized as an internal or external command
Well, I've learned a bunch in the past 3 or 4 days working with AutoHotkey and Windows 11. I initially downloaded and installed V2 hoping that the new version work work better than V1. I kept getting the above command error. I even tried the TestSuite.ahk that come with it and got the same command ...
- 27 Apr 2024, 11:41
- Forum: Forum Issues
- Topic: Slow forum
- Replies: 111
- Views: 11500
Re: Slow forum
Do we have official word from the people that maintain the forum on why the forum is having these issues for several days?
- 27 Apr 2024, 11:38
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 737
Re: The same variable cannot be used for more then one control
Yes, I think that those are the right ideas to get started. Can a control ever be added twice if a Destroy command always precedes the Add? The script below shows how a specific sort of timing can throw the error even in that situation. If your user simulates this timing in relation to your script,...
- 27 Apr 2024, 01:40
- Forum: Wish List
- Topic: Add auto-hide timeout for Tooltip
- Replies: 4
- Views: 720
Re: Add auto-hide timeout for Tooltip
On 4 of my scripts I use tooltips extensively to display what the script is currently doing. Creating a timer and label for each new tooltip is a hassle.
A timeout would so much simplify things.
A timeout would so much simplify things.
- 27 Apr 2024, 01:29
- Forum: Wish List
- Topic: A wishlist 15 years in the making.
- Replies: 2
- Views: 473
Re: A wishlist 15 years in the making.
I got 2 cookies.
I have had problems troubleshooting because the message box takes focus. Using a tool tip with a pause or sleep does not take focus from from the active window.
I have had problems troubleshooting because the message box takes focus. Using a tool tip with a pause or sleep does not take focus from from the active window.
- 26 Apr 2024, 14:19
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 737
Re: The same variable cannot be used for more then one control
I have already suggested that you display the MDPID, but I don't think you have done it yet. Or, also as mentioned, you can insert a single MsgBox line before the GUI control is added. You need not wonder about what will happen. You can determine it by testing! I personally would not care whether y...
- 26 Apr 2024, 10:41
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 737
Re: The same variable cannot be used for more then one control
@mikeyww
I did try your suggestion
The user still got the same error.
I will try just me's suggestion.
thanks
Robert
I did try your suggestion
Code: Select all
Gui 1:New, +HwndMDPID
I will try just me's suggestion.
thanks
Robert
- 26 Apr 2024, 10:29
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 737
Re: The same variable cannot be used for more then one control
One more thing that makes no sense and probably is user testing error. This user has always used my compiled exe. I did not know, but he also uses autohothey. He has version 1.3 installed. I just telling what he said. He can reliably reproduce the intermittent error by using the tray icon to show th...
- 26 Apr 2024, 10:14
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 737
Re: The same variable cannot be used for more then one control
Your subroutine can be executing twice. How could it happen? I went to your script and noticed that you inserted the following comment. ShowGui: ;this can get called via the "Invalid Default Printers" and by selecting "Open Nework Aware Printing Menu" from the system tray . If the user can select a...
- 26 Apr 2024, 10:02
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 737
Re: The same variable cannot be used for more then one control
Moin @DataLife, one 'special' AHK v1 option to solve this special problem without using a window ID/HWND: ShowGui: Gui 1:+LastFoundExist IfWinExist { WinActivate return } ;this is a sample gui Gui 1: Add, Radio, vAssociatedVariable1, 1st Sample Radio button Gui 1: Add, Radio, vAssociatedVariable2, ...
- 25 Apr 2024, 01:18
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 737
Re: The same variable cannot be used for more then one control
Thanks for the quick reply, and thanks for the troubleshooting suggestions. I can reproduce the error, just like you did. But I can not reproduce the error the way my script is written. I have to work with a guy 2 states away that knows nothing about autohotkey to troubleshoot. I have been coding wi...
- 24 Apr 2024, 20:54
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 737
The same variable cannot be used for more then one control
A user of one of my programs is getting this error. The same variable cannot be used for more then one control I can not reproduce this error. If I had not seen the screenshot I would have said this is absolutely not possible due to "IfWinExist,ahk_id %MDPID%" ShowGui: IfWinExist,ahk_id %MDPID% { Wi...
- 07 Apr 2024, 20:15
- Forum: Ask for Help (v1)
- Topic: WinHttp.WinHttpRequest IsInternetConnected()
- Replies: 3
- Views: 252
Re: WinHttp.WinHttpRequest IsInternetConnected()
@Imstern thanks for the suggestions. I modified the function and posted below. I ran "BITSADMIN /LIST /ALLUSERS /VERBOSE" and 0x80072EFE error code was not in the output. There were two https entries and both were related to a firefox update That article mentioned "Using a browser, try to download i...
- 05 Apr 2024, 12:17
- Forum: Ask for Help (v1)
- Topic: WinHttp.WinHttpRequest IsInternetConnected()
- Replies: 3
- Views: 252
WinHttp.WinHttpRequest IsInternetConnected()
I found this function by Linear Spoon on the old forum at this address....https://www.autohotkey.com/board/topic/111086-solved-check-if-connected-to-the-internet/ It checks if the computer has access to the internet. It works really fast (around 200 ms), but I occasionally get errors. My script chec...
- 24 Jan 2024, 00:16
- Forum: Ask for Help (v1)
- Topic: Need help removing duplicate lines
- Replies: 7
- Views: 250
Re: Need help removing duplicate lines
Code: Select all
Loop Parse, txt, `n, `r
noDupes .= InStr(noDupes, "*" StrSplit(A_LoopField, "*")[5] "*") ? ""
: (noDupes = "" ? "" : "`n") A_LoopField
MsgBox 0, Result, % noDupes
- 23 Jan 2024, 23:39
- Forum: Ask for Help (v1)
- Topic: Need help removing duplicate lines
- Replies: 7
- Views: 250
Re: Need help removing duplicate lines
Instead of seeing whether your string contains text , see whether it contains *text* . Let me ask you something else. I do this alot, and I mean alot. Seems like there would be a better way to avoid a blank line at the beginning of a variable if NoDuplicates = NoDuplicates = %a_loopfield% else NoDu...
- 23 Jan 2024, 23:36
- Forum: Ask for Help (v1)
- Topic: Need help removing duplicate lines
- Replies: 7
- Views: 250
Re: Need help removing duplicate lines
I would have spent hours and come up with a complicated solution, when all I had to do was change
Code: Select all
IfNotInString, NoDuplicates, %OutputArray5%
Code: Select all
IfNotInString, NoDuplicates, *%OutputArray5%*
- 23 Jan 2024, 23:33
- Forum: Ask for Help (v1)
- Topic: Need help removing duplicate lines
- Replies: 7
- Views: 250
- 23 Jan 2024, 23:14
- Forum: Ask for Help (v1)
- Topic: Need help removing duplicate lines
- Replies: 7
- Views: 250
Need help removing duplicate lines
I need to elimiate all lines with duplicate OutputArray5, the rest of the line does not matter. It does not matter which line it deletes that have a matching OutputArray5 In this example it does not matter which of these 2 it removes, because OutputArray5 (MIN100) is an exact match. Vases*S/10 Hinge...