Search found 5759 matches

by jeeswg
Today, 00:23
Forum: Scripts and Functions
Topic: [Prototype] Detect dragging of icons
Replies: 3
Views: 42

Re: [Prototype] Detect dragging of icons

- Wow, fastest ever 'wuh' to 'yeah!' re. is a script worth doing. Great video link cheers.
- I'd been looking at various programming languages for syntax ideas. Now I see that I could benefit from UI ideas. But how to quickly find a collection of interesting UI ideas? Cheers again.
by jeeswg
Yesterday, 22:44
Forum: Ask For Help
Topic: Replicating Run Box abilities
Replies: 16
Views: 141

Re: Replicating Run Box abilities

I use Wow64DisableWow64FsRedirection once per script, it only affects the script.
by jeeswg
Yesterday, 22:34
Forum: Ask For Help
Topic: Replicating Run Box abilities
Replies: 16
Views: 141

Re: Replicating Run Box abilities

I tested on Windows 7 64-bit.
This works on AHK 64-bit:

Code: Select all

Run, msconfig
This works on AHK 64-bit and 32-bit:

Code: Select all

DllCall("kernel32\Wow64DisableWow64FsRedirection", PtrP,0)
Run, msconfig
Cheers.

@gregster, by 'Lexikos solution explanation' do you mean that A_ProgramFiles quote?
by jeeswg
Yesterday, 20:49
Forum: Ask For Help
Topic: IniWrite: flush WritePrivateProfileString
Replies: 2
Views: 150

Re: IniWrite: flush WritePrivateProfileString

- Bump. I'm trying to understand the difference between the 2 code lines above. - I quoted re. all 4 null parameters, here's a quote re. 3 leading null parameters plus a path: WritePrivateProfileStringA function | Microsoft Docs https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase...
by jeeswg
Yesterday, 17:00
Forum: Ask For Help
Topic: WinHttpRequest (An error occurred in the secure channel support)
Replies: 15
Views: 357

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

- I think the logic would be something like this (if 2 separate writes for 64-bit/32-bit are required): - Note: I use exactly the same key name both times (I don't use Wow6432Node). SetRegView, 64 if A_Is64bitOS RegWrite, REG_DWORD, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Intern...
by jeeswg
Yesterday, 15:20
Forum: Ask For Help
Topic: WinHttpRequest (An error occurred in the secure channel support)
Replies: 15
Views: 357

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

Some registry keys are mentioned here:
iis - An error occurred in the secure channel support - Classic ASP HTTP Request - Stack Overflow
https://stackoverflow.com/questions/21354992/an-error-occurred-in-the-secure-channel-support-classic-asp-http-request
by jeeswg
Yesterday, 12:16
Forum: Ask For Help
Topic: WinHttpRequest (An error occurred in the secure channel support)
Replies: 15
Views: 357

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.
by jeeswg
Yesterday, 11:57
Forum: Ask For Help
Topic: Lynda.com workaround
Replies: 26
Views: 366

Re: Lynda.com workaround

- This worked for me on Windows 7. q:: ;url download html to string vUrl := "https://www.lynda.com/allcourses/" try { oHTTP := ComObjCreate("MSXML2.XMLHTTP.6.0") oHTTP.Open("GET", vUrl) oHTTP.Send() vText := oHTTP.ResponseText oHTTP := "" } catch { oHTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1")...
by jeeswg
Yesterday, 05:35
Forum: Ask For Help
Topic: Screen Resolution Issues
Replies: 20
Views: 331

Re: Screen Resolution Issues

- Here's some code to click the centre of a control. q:: ;click centre of control (e.g. Notepad's Edit control) ControlGet, hCtl, Hwnd,, Edit1, A WinGetPos, vCtlX, vCtlY, vCtlW, vCtlH, % "ahk_id " hCtl ControlClick, % Format("X{:i} Y{:i}", vCtlW/2, vCtlH/2), % "ahk_id " hCtl return - Acc could be an...
by jeeswg
20 Feb 2019, 20:04
Forum: Ask For Help
Topic: SendInput is sluggish, stops
Replies: 7
Views: 191

Re: SendInput is sluggish, stops

You could try this:

Code: Select all

SendInput, {Text}hello ;requires AHK v1.1.27+
by jeeswg
20 Feb 2019, 19:53
Forum: Ask For Help
Topic: Alternative to iniread
Replies: 4
Views: 93

Re: Alternative to iniread

Here are two ways. Cheers.

Code: Select all

oArray := ["AK", "AZ", "AR"]
vNum := 3
MsgBox, % oArray[vNum]

oArray := StrSplit("AK,AZ,AR", ",")
vNum := 3
MsgBox, % oArray[vNum]
by jeeswg
19 Feb 2019, 17:18
Forum: Ask For Help
Topic: Lagging Script
Replies: 4
Views: 77

Re: Lagging Script

- What OS do you/they use? - Do you use x64/x32 AutoHotkey? - Do you use other scripts/programs at the same time? - Virus checkers maybe? - Maybe newer PCs have more problems for some reason. (Windows 10 updates always seem to cause people problems.) - You can check Task Manager and other diagnostic...
by jeeswg
19 Feb 2019, 15:26
Forum: Ask For Help
Topic: StrSplit function does not work when ahk file is converted to an exe Topic is solved
Replies: 5
Views: 101

Re: StrSplit function does not work when ahk file is converted to an exe Topic is solved

- Maybe your AHK exe and compiler exe are from different versions. I.e. the compiler exe is older.
- StrSplit was introduced in AHK v1.1.13. Cheers.
by jeeswg
19 Feb 2019, 11:30
Forum: Ask For Help
Topic: Randomize lines of two text files in the same order Topic is solved
Replies: 8
Views: 153

Re: Randomize lines of two text files in the same order Topic is solved

This will remove any trailing carriage returns/line feeds from the end of the string. There are also Trim and LTrim functions.

Code: Select all

vList1 := RTrim(vList1, "`r`n")
Btw do keep backups of the lists! Cheers.
by jeeswg
19 Feb 2019, 11:07
Forum: Forum Issues
Topic: phpBB issues
Replies: 8
Views: 330

Re: phpBB issues

- For reference, this is another important change cf. the previous behaviour, which has affected numerous posts of mine. - I'll have to manually change any affected posts, but it's only just now, when I tested, that I've figured out what the current rules are. - The previous rule was either to do mo...
by jeeswg
19 Feb 2019, 11:03
Forum: Forum Issues
Topic: phpBB issues
Replies: 8
Views: 330

Re: phpBB issues

- Thanks for the link. - I did some tests with the 'color' and 'list' tags. It seems that putting in non-letters allows '[list' to be used as normal text. Hello! Hello! [color red]Hello![/color] [color=red green]Hello![/color] [color=green red]Hello![/color] [color]Hello![/color] [list = abc] [list ...
by jeeswg
19 Feb 2019, 10:29
Forum: Ask For Help
Topic: Internet Explorer Save Open Cancel Popup
Replies: 12
Views: 3090

Re: Internet Explorer Save Open Cancel Popup

@TheDewd: You could do tests with MouseGetPos and looping through controls, i.e. you could try investigating the notification bar. ;q:: ;get DirectUIHWND controls WinGet, hWnd, ID, A WinGet, vCtlList, ControlList, % "ahk_id " hWnd vOutput := "" Loop, Parse, vCtlList, `n { vCtlClassNN := A_LoopField ...
by jeeswg
18 Feb 2019, 21:25
Forum: Ask For Help
Topic: Randomize lines of two text files in the same order Topic is solved
Replies: 8
Views: 153

Re: Randomize lines of two text files in the same order Topic is solved

- It might be good to include a check that each file has the same line count. Otherwise the pairings could get out of sync. StrReplace(vList1, "`n",, vCount1) StrReplace(vList2, "`n",, vCount2) if !(vCount1 = vCount2) { MsgBox, % "error: line count mismatch" return } - Note: StrReplace(vList1, "`n",...
by jeeswg
18 Feb 2019, 16:10
Forum: Ask For Help
Topic: Randomize lines of two text files in the same order Topic is solved
Replies: 8
Views: 153

Re: Randomize lines of two text files in the same order Topic is solved

- Hello Sweetins, I believe that I did understand what you meant, and that the script demonstrates how to do it. - I took 2 lists *with the same number of items*, and sorted both lists so that they were shuffled in the same way. I demonstrated that both lists were shuffled the same way, by combining...
by jeeswg
18 Feb 2019, 08:20
Forum: Ask For Help
Topic: Randomize lines of two text files in the same order Topic is solved
Replies: 8
Views: 153

Re: Randomize lines of two text files in the same order Topic is solved

- Interesting question. Try this. Cheers. - You use the Random command to specify a seed, an arbitrary number. - The Random command uses pseudorandom numbers which are based on a seed value. q:: ;sort list in a consistent random order Random,, 1337 vList := "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u...

Go to advanced search