Search found 458 matches
- Today, 11:41
- Forum: Forum Issues
- Topic: Slow forum
- Replies: 103
- Views: 9300
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?
- Today, 11:38
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 420
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,...
- Today, 01:40
- Forum: Wish List
- Topic: Add auto-hide timeout for Tooltip
- Replies: 2
- Views: 239
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.
- Today, 01:29
- Forum: Wish List
- Topic: A wishlist 15 years in the making.
- Replies: 1
- Views: 298
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.
- Yesterday, 14:19
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 420
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...
- Yesterday, 10:41
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 420
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
- Yesterday, 10:29
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 420
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...
- Yesterday, 10:14
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 420
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...
- Yesterday, 10:02
- Forum: Ask for Help (v1)
- Topic: The same variable cannot be used for more then one control
- Replies: 13
- Views: 420
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: 420
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: 420
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: 219
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: 219
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: 206
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: 206
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: 206
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: 206
- 23 Jan 2024, 23:14
- Forum: Ask for Help (v1)
- Topic: Need help removing duplicate lines
- Replies: 7
- Views: 206
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...
- 23 Jan 2024, 10:28
- Forum: Ask for Help (v1)
- Topic: Help with assigning a number to variables in loop Topic is solved
- Replies: 2
- Views: 129
Re: Help with assigning a number to variables in loop Topic is solved
Fantastic, exactly what I meant. 2 lines of code that work no matter how many loops.mikeyww wrote: ↑23 Jan 2024, 10:20Are you trying to say that
Code: Select all
numB := 2 * A_Index numA := numB - 1
thank you
- 23 Jan 2024, 10:14
- Forum: Ask for Help (v1)
- Topic: Help with assigning a number to variables in loop Topic is solved
- Replies: 2
- Views: 129
Help with assigning a number to variables in loop Topic is solved
Would someone be able to help me write this shorter? Seems like there has to be a better way. This needs to work if I change the number of loops. Right now it is 5, later it maybe 9 and then I may change it again. Depending on my needs per script. numA and numB needs to equal 1 and 2 on the first lo...