Search found 1475 matches
- 13 Apr 2020, 13:44
- Forum: Ask for Help (v1)
- Topic: Two Field Input Box Topic is solved
- Replies: 19
- Views: 4512
Re: Two Field Input Box Topic is solved
Well, I just want the fields populated then I will use that data garry gave you a very good example! Next time at least try to make/extract code on your own! Gui +AlwaysonTop Gui Font, s10, Verdana Gui add, edit, w300 h30 vC1 Gui add, edit, w300 h30 vC2 Gui Add, Button, x12 gACCEPT1 default, Accept...
- 12 Apr 2020, 14:26
- Forum: Ask for Help (v1)
- Topic: Clipboard paste doesn't use current 'Clipboard' value Topic is solved
- Replies: 4
- Views: 652
Re: Clipboard paste doesn't use current 'Clipboard' value Topic is solved
Clipboard paste doesn't use current 'Clipboard' value See this thread to understand your problems and try my way to deal with it: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ...
- 11 Apr 2020, 06:25
- Forum: Ask for Help (v1)
- Topic: AutoHotkey help file, caret browsing Topic is solved
- Replies: 2
- Views: 1805
- 09 Apr 2020, 09:39
- Forum: Ask for Help (v1)
- Topic: Auto build gui elements Topic is solved
- Replies: 9
- Views: 1362
Re: Auto build gui elements Topic is solved
I've updated the post above to be (hopefully) more general!
- 08 Apr 2020, 09:05
- Forum: Ask for Help (v1)
- Topic: Holding 2 keys, Send to hold a third until release
- Replies: 3
- Views: 228
Re: Holding 2 keys, Send to hold a third until release
Try: <!LCtrl:: <^LAlt:: if !GetKeyState("ScrollLock", "T") SEND, {ScrollLock} While GetKeyState("LCtrl", "P")&&GetKeyState("LAlt", "P") Sleep, 50 SEND, {ScrollLock} Return The same but simpler: <!LCtrl:: <^LAlt:: SetScrollLockState, On While GetKeyState("LCtrl", "P")&&GetKeyState("LAlt", "P") Sleep,...
- 07 Apr 2020, 08:27
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 139204
Re: Get the URL of the current (active) browser tab
Did you try to run Vivaldi with --force-renderer-accessibility switch?
- 07 Apr 2020, 02:13
- Forum: Ask for Help (v1)
- Topic: Auto build gui elements Topic is solved
- Replies: 9
- Views: 1362
Re: Auto build gui elements Topic is solved
You probably need three columns: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDi...
- 06 Apr 2020, 11:47
- Forum: Scripts and Functions (v1)
- Topic: LineStr() : Extract any line or consecutive lines from text
- Replies: 21
- Views: 4990
Re: LineStr() : Extract any line or consecutive lines from text
There is a typo use GetStringByLine(Str, 3, 2) instead!
Note: "Last line" (Range 0) retrieves penultimate one (last line is empty)! This is a bug!
Note: "Last line" (Range 0) retrieves penultimate one (last line is empty)! This is a bug!
- 05 Apr 2020, 09:37
- Forum: Scripts and Functions (v1)
- Topic: LineStr() : Extract any line or consecutive lines from text
- Replies: 21
- Views: 4990
Re: LineStr() : Extract any line or consecutive lines from text
@ SKAN : I assume FileReadLine uses internaly FileOpen , because first lines of a file (no matter how big) are returned virtually instantly. However for subsequent lines it seems to use equivalent of FileOpen(file).FileReadLine() one by one, so lines towards the end of a file are retrieved much slow...
- 04 Apr 2020, 18:20
- Forum: Bug Reports
- Topic: If statement changes contents of var
- Replies: 14
- Views: 8486
Re: If statement changes contents of var
This example suggests that by using "" you can still retrieve the original string … It doesn't have to be a new variable, the old one contains as always both types. If (int1 := "12345678901234567890"){ int2 := int1 . "" msgbox % int1 . "`n" . int2 } P.s.: Pure numeric assignements prioritize to be ...
- 04 Apr 2020, 09:17
- Forum: Scripts and Functions (v1)
- Topic: LineStr() : Extract any line or consecutive lines from text
- Replies: 21
- Views: 4990
Re: LineStr() : Extract any line or consecutive lines from text
@ SKAN : Very fast! Retrieving lines beyond ca. 2/3 of the file/string is faster counting backwards! But the main problem for large file remains: Loading to variable is relatively slow. FileOpen avoids this, but can't pinpoint a line in the middle of the file. @ Delta Pythagorean : You should use di...
- 29 Mar 2020, 07:39
- Forum: Scripts and Functions (v1)
- Topic: Screen clipping
- Replies: 298
- Views: 130120
Re: Screen clipping
@ Zseni : CoordMode, ToolTip, Screen Icons := [] ToolTip, % " Please wait while loading Icons! ", % A_ScreenWidth/2-200, % A_ScreenHeight/2-200 Loop, Files, %A_WinDir%\system32\*.* while hwnd:=LoadPicture(A_LoopFileFullPath, "Icon" A_Index-1) Icons.Push([A_LoopFileName, hwnd, A_Index-1]) ToolTip gui...
- 27 Mar 2020, 15:12
- Forum: Ask for Help (v1)
- Topic: #include statement - I must be missing something
- Replies: 24
- Views: 3200
Re: #include statement - I must be missing something
If it's a standard Window maybe you should look into WinMenuSelectItem . P.s.: Window may already exist, but if it's not active yet you cannot operate upon it using Send command! P.p.s.: Try this too: ... IfWinExist, EndNote X9 - ; Endnote must have a library open to display the - after the title na...
- 27 Mar 2020, 13:22
- Forum: Ask for Help (v1)
- Topic: #include statement - I must be missing something
- Replies: 24
- Views: 3200
Re: #include statement - I must be missing something
Then your script(s) has/have bug(s), you've been just lucky that it/they work(s) separately! See previous page (I edited my last post!)
- 27 Mar 2020, 13:02
- Forum: Ask for Help (v1)
- Topic: #include statement - I must be missing something
- Replies: 24
- Views: 3200
Re: #include statement - I must be missing something
Try after:
FileSelectFolder, UserFolder,*T:\, 3, Select the folder in which to save the backup library file:
While WinExist("Browse For Folder ahk_class #32770")
Sleep, 100
Edit: or still better
WinWaitActive, The title you expect,, 5
FileSelectFolder, UserFolder,*T:\, 3, Select the folder in which to save the backup library file:
While WinExist("Browse For Folder ahk_class #32770")
Sleep, 100
Edit: or still better
WinWaitActive, The title you expect,, 5
- 27 Mar 2020, 12:34
- Forum: Ask for Help (v1)
- Topic: #include statement - I must be missing something
- Replies: 24
- Views: 3200
Re: #include statement - I must be missing something
If your two scripts do the job separately then has to be possible to do it remotely form the main script too!
In my opinion you took just unfortunate way to do that.
Try this approach!
In my opinion you took just unfortunate way to do that.
Try this approach!
- 24 Mar 2020, 18:14
- Forum: Scripts and Functions (v1)
- Topic: Optical character recognition (OCR) with UWP API
- Replies: 157
- Views: 64545
Re: Optical character recognition (OCR) with UWP API
You can do something like: ... text .= StrGet(buffer, "UTF-16") " " if InStr(text, Str:= "AutoHotkey Community", 1) { last:=StrLen("Community"), total:= StrLen(Str), wt:=total*w/last, Found:= 1 MouseClick,, x+w-wt//2, y+h//2 ; approximately middle of the string SoundBeep, 1400 ; audio feed back } Ob...
- 24 Mar 2020, 13:49
- Forum: Ask for Help (v1)
- Topic: Manipulate the columns (width/order) in the files detail view of Windows Explorer (Windows 10)
- Replies: 1
- Views: 341
Re: Manipulate the columns (width/order) in the files detail view of Windows Explorer (Windows 10)
A very diligent member assembled a lot of what you need!
- 24 Mar 2020, 07:13
- Forum: Scripts and Functions (v1)
- Topic: Optical character recognition (OCR) with UWP API
- Replies: 157
- Views: 64545
Re: Optical character recognition (OCR) with UWP API
Probably you should use CoordMode, Mouse, Screen or
...
WinGetPos, wx, wy, ww, wh, A
hBitmap := HBitmapFromScreen(wx, wy, ww, wh)
...
...
WinGetPos, wx, wy, ww, wh, A
hBitmap := HBitmapFromScreen(wx, wy, ww, wh)
...
- 23 Mar 2020, 09:22
- Forum: Scripts and Functions (v1)
- Topic: Optical character recognition (OCR) with UWP API
- Replies: 157
- Views: 64545
Re: Optical character recognition (OCR) with UWP API
Great idea by adegard and excellent execution by malcev!
Dpi independent, zoom independent, resolution independent... Many thanks!
P.s. off topic: How to get position of Magnifier (in full screen mode - Win10)
Dpi independent, zoom independent, resolution independent... Many thanks!
P.s. off topic: How to get position of Magnifier (in full screen mode - Win10)