Search found 1475 matches

by rommmcek
07 Oct 2023, 07:07
Forum: Scripts and Functions (v2)
Topic: Class ToolTipOptions - 2024-03-27
Replies: 18
Views: 3313

Re: Class ToolTipOptions - 2023-09-10

This issue seems nothing to do with Class ToolTipOptions.
Try your loop w/o this Class.
If you slow down a loop there is no problem in any case.

P.s.: AutoHotkey v1 seems not to have such an issue, therefore it might be a v2 bug.
by rommmcek
05 Oct 2023, 06:59
Forum: Scripts and Functions (v1)
Topic: ToolTipFont / ToolTipColor - options for the ToolTip command
Replies: 92
Views: 51135

Re: ToolTipFont / ToolTipColor - options for the ToolTip command

You are doing nothing wrong. AutoHotkey's ToolTip time ago just underwent antiflickering measure, i.e. ToolTip is refreshed only if it's content is changed (at least this is my interpretation). So to work around it, you can display some unique ToolTip beforehand the actual one, if a tiny flicker as ...
by rommmcek
19 Jul 2023, 17:46
Forum: Ask for Help (v2)
Topic: clipboard code Topic is solved
Replies: 3
Views: 376

Re: clipboard code Topic is solved

For such operations is Send "^c" much more suitable.
by rommmcek
25 Jun 2023, 00:14
Forum: Scripts and Functions (v1)
Topic: Optical character recognition (OCR) with UWP API
Replies: 157
Views: 64580

Re: Optical character recognition (OCR) with UWP API

Try something like: msgbox % RegExReplace(ocr("C:\Users\RRR\My Ahk-s\test.jpg", "en"), "[^0-9]").
by rommmcek
29 May 2023, 16:17
Forum: Scripts and Functions (v1)
Topic: Using Google Translate to automate text translation
Replies: 227
Views: 96164

Re: Using Google Translate to automate text translation

Thanks!
Just noticed that not every LanguageCode works either.
by rommmcek
29 May 2023, 15:06
Forum: Scripts and Functions (v1)
Topic: Using Google Translate to automate text translation
Replies: 227
Views: 96164

Re: Using Google Translate to automate text translation

To get US accent use: url := "https://translate.google.com/translate_tts?ie=UTF-8&tl=" . (lng="en"? "en-US": lng) . "&total=1&idx=0&client=t&prev=input&textlen=" . StrLen(text) . "&tk=" . JS.("tk").(text) . "&q=" . URIEncodeS(text) Anybody know how to change the voice ( (lng="en"? "en-US&voice=en-US...
by rommmcek
19 May 2023, 04:26
Forum: AutoHotkey Development
Topic: Acc / AccViewer / iWB2 Learner / Anchor conversion attempts
Replies: 9
Views: 6819

Re: Acc / AccViewer / iWB2 Learner / Anchor conversion attempts

Acc/AccViewer for AHK v2 has been added to jeeswg's website.
by rommmcek
19 May 2023, 04:21
Forum: Scripts and Functions (v1)
Topic: Acc library (MSAA) and AccViewer download links
Replies: 43
Views: 78777

Re: Acc library (MSAA) and AccViewer download links

Acc/AccViewer for AHK v2 has been added to jeeswg's website.
by rommmcek
19 May 2023, 04:09
Forum: Scripts and Functions (v1)
Topic: objects: backport AHK v2 Gui/Menu classes to AHK v1
Replies: 21
Views: 7818

Re: objects: backport AHK v2 Gui/Menu classes to AHK v1

AHK v2 functions for AHK v1, with a separate GUI functions script, has been added to jeeswg's website.
by rommmcek
30 Mar 2023, 14:41
Forum: General Discussion
Topic: What has happened to AutoHotkey?!
Replies: 33
Views: 7412

Re: What has happened to AutoHotkey?!

I agree with every one on this thread, but I'm not undecided and will definitely migrate (gradually) to Ahk v2, because everything is developing, however unlike a new OS, browser and the like, Ahk is open source, hence unlikely to be insidious in any way. So long live Ahk v2! P.s.: Ahk v2 seems to b...
by rommmcek
28 Mar 2023, 06:14
Forum: Tutorials (v1)
Topic: Weighted Random Distribution
Replies: 11
Views: 5601

Re: Weighted Random Distribution

You have to build your own dictionary/hashmap e.g. for y = x²: w:= {1: 1, 2: 4, 3: 9, 4: 16}.
How to build it programmatically make a new thread in Ask For Help (v1).
by rommmcek
24 Mar 2023, 23:43
Forum: Scripts and Functions (v1)
Topic: iswitchw mod - Fast window and browser tab switching - Updated Oct 1st, 2023!
Replies: 17
Views: 4347

Re: iswitchw mod - Fast window and browser tab switching

The only thing not working is searching for numbers and in addition a period. Ad numbers : In the RefreshWindowList() function comment out: if (search ~= "^\d+") return Ad period : Define your own EndChars (e.g.: Hotstring("EndChars", "-()[]{}:;""/\,?!`n`t") - note: there is no period and no space)...
by rommmcek
11 Mar 2023, 03:47
Forum: Tutorials (v1)
Topic: Weighted Random Distribution
Replies: 11
Views: 5601

Re: Weighted Random Distribution

To generate a single random value set the count value of the loop in the example to exactly 1 . To display the generated random value use: for i, j in w if p[A_Index] Break MsgBox % i P.s.: You can increase the associative value for B in the array w for let's say ten times to 40 . Now running the ex...
by rommmcek
28 Jan 2023, 07:18
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 130228

Re: Screen clipping

@one1tick: Basically you have to replace original Gdip_BitmapFromScreen() with the edited one including ScaleDim().

Note: The new functions are stubs¹ so you have to adjust hardcoded static values (for both functions) according to your configurations!
__________
¹stub
by rommmcek
25 Jan 2023, 02:20
Forum: Ask for Help (v1)
Topic: Windows 10 / after renaming the folder, the old name persists, how to fix this with AutoHotkey?
Replies: 13
Views: 1210

Re: Windows 10 / after renaming the folder, the old name persists, how to fix this with AutoHotkey?

@ jimhoyle : Oh yes, definitely it occurs once and a while and even after deleting a file it remains displayed for a period of time, sometimes. I think explorer in modern Windows OS-es caches the data and refreshes on it's own logic, that's why manuel refresh always works. To fix it with AutoHotkey ...
by rommmcek
09 Jan 2023, 20:31
Forum: Ask for Help (v1)
Topic: Help with learning Japanese
Replies: 10
Views: 717

Re: Help with learning Japanese

Try KaiZen.
by rommmcek
07 Jan 2023, 22:58
Forum: Scripts and Functions (v1)
Topic: Draw border around Active Window
Replies: 11
Views: 3197

Re: Draw border around Active Window

Try adding:

Code: Select all

~!TAb:: 
    SetTimer, DrawRect, Off
    KeyWait Alt
    SetTimer, DrawRect, 50
 Return
by rommmcek
30 Dec 2022, 12:59
Forum: Ask for Help (v1)
Topic: Autohotkey Screensaver only works on main screen, need to work on extra screen Topic is solved
Replies: 6
Views: 602

Re: Autohotkey Screensaver only works on main screen, need to work on extra screen Topic is solved

I didn't change the code! Use this Move instead:

Code: Select all

Move:
If WinExist(wTitle) {
 SoundBeep, 1900
 WinGetPos,,, w, h
 Random, x, mon3Left, mon3Right-w
 Random, y, mon3Top, mon3Bottom-h     
 WinRestore
 WinMove,,, x, y, w, h
} Else {
 SetTimer,, Off
 SoundBeep, 1000
}
Return
by rommmcek
30 Dec 2022, 03:36
Forum: Ask for Help (v1)
Topic: Autohotkey Screensaver only works on main screen, need to work on extra screen Topic is solved
Replies: 6
Views: 602

Re: Autohotkey Screensaver only works on main screen, need to work on extra screen Topic is solved

Can't seem to find any flaw in the code. Can you describe how it works for you and what does not work as expected. My main screen is 2 What do you mean by "My main screen is 2"? Your " screen 1" is still on the far right, isn't it? Run this script and make 3 times "PrintScreen" when MsgBox tells you...

Go to advanced search