Search found 2068 matches

by teadrinker
23 Jan 2021, 16:23
Forum: Scripts and Functions
Topic: Using Google Translate to automate text translation
Replies: 148
Views: 32882

Re: Using Google Translate to automate text translation

@garry
If there isn't a language in the list I linked, I think Google Translate does not support this language.
by teadrinker
23 Jan 2021, 04:45
Forum: Ask For Help
Topic: Instantiating GUI Elements
Replies: 1
Views: 69

Re: Instantiating GUI Elements

You can use handles instead: MyGui := new GUI MyGui.Show() Sleep, 500 MyGui.EditText("Hello, World!") Return class GUI { __New() { this.Controls := {} this.Events := new this.EventHandler(this.Controls) Gui, New, +hwndhGui this.hGui := hGui Gui, Add, Edit, hwndhEdit w200 h100 this.Controls.Edit := h...
by teadrinker
22 Jan 2021, 16:54
Forum: Ask For Help
Topic: CDDBControl.dll and current AHK
Replies: 9
Views: 907

Re: CDDBControl.dll and current AHK

You don't need to run the script as admin when you create the object instance.
by teadrinker
21 Jan 2021, 12:38
Forum: Ask For Help
Topic: Extracting text from a line where the last occurence of a string occurs.
Replies: 11
Views: 202

Re: Extracting text from a line where the last occurence of a string occurs.

@sofista
Try your code with

Code: Select all

SampleText =
(Join`r`n
Reporter: Dave likes ice-cream
Reporter: Everybody likes ice-cream
Reporter: The big bad wolf likes ice-cream
Reporter: somebody likes cake
)
by teadrinker
21 Jan 2021, 02:27
Forum: Ask For Help
Topic: Extracting text from a line where the last occurence of a string occurs.
Replies: 11
Views: 202

Re: Extracting text from a line where the last occurence of a string occurs.

; Dummy data FileContents = (Join`r`n I want to find some text in a line at a point before where the last string occurs, say that string happens to be ice-cream, and say the text I want to return is in format xxx line. This is the 3rd line, 2nd ice-cream this is the 4th line, 3rd ice-cream this is ...
by teadrinker
20 Jan 2021, 20:48
Forum: Ask For Help
Topic: CDDBControl.dll and current AHK
Replies: 9
Views: 907

Re: CDDBControl.dll and current AHK

Just checked on Windows 10, for me it works. What I did: 1. Placed cddbcontrol.dll in Windows folder 2. Launched the script: RunAsAdmin("C:\Program Files\AutoHotkey\AutoHotkeyU32.exe", true) Run RegSvr32 cddbcontrol.dll RunAsAdmin(exe, exitIfNotAdmin) { if !FileExist(exe) { MsgBox, The file %exe% no...
by teadrinker
20 Jan 2021, 19:59
Forum: Ask For Help
Topic: CDDBControl.dll and current AHK
Replies: 9
Views: 907

Re: CDDBControl.dll and current AHK

Try on 32 bit:

Code: Select all

tag := ComObjCreate("CDDBControlAOL.CddbID3Tag")
32 bit dll does not create 64 bit implementation of this class.
by teadrinker
20 Jan 2021, 19:21
Forum: Ask For Help
Topic: Modal Windows
Replies: 10
Views: 226

Re: Modal Windows

I think It would not work, though, when called from a thread initiated by another GUI Yeah, you are right, but it's better like this: GetResponseFromUser() { static EM_SETCUEBANNER := 0x1501, response := "", hGui := "foo" if (A_Gui = hGui) { GuiControlGet, response,, Edit1 Gui, Cancel } else { Gui,...
by teadrinker
19 Jan 2021, 19:53
Forum: Ask For Help
Topic: Using ComObjCreate without errors
Replies: 3
Views: 86

Re: Using ComObjCreate without errors

It's not clear, why you need python. Hotstrings
by teadrinker
18 Jan 2021, 16:02
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 367
Views: 158815

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

20170201225639 wrote: is there any benefit of using one of the non-Light versions of your
Nope, Parse and Stringify methods do the same in both classes.
20170201225639 wrote: Does your class have an official thread?
Not yet. :)
by teadrinker
17 Jan 2021, 12:56
Forum: Ask For Help
Topic: GDIP Create photo collage
Replies: 4
Views: 139

Re: GDIP Create photo collage

If you use Gdip_All.ahk you must call the functions properly: pBitmap%v% := Gdip_CreateBitmapFromFile("link" v) You dont need to use my class GdiPlus and Gdip_All.ahk together. Either copy Gdip_CreateBitmapFromFile() in my class, or remove my class from the script at all and use function names from ...
by teadrinker
16 Jan 2021, 21:44
Forum: Ask For Help
Topic: GDIP Create photo collage
Replies: 4
Views: 139

Re: GDIP Create photo collage

linkA := "https://www.autohotkey.com/boards/download/file.php?id=11804" linkH := "https://www.autohotkey.com/boards/download/file.php?id=11801" linkK := "https://www.autohotkey.com/boards/download/file.php?id=11802" Gdip := new GdiPlus for k, v in ["A", "H", "K"] { Stream%v% := GetImgResponseStream...
by teadrinker
16 Jan 2021, 20:51
Forum: Gaming
Topic: See /show AHK processing Topic is solved
Replies: 14
Views: 225

Re: See /show AHK processing Topic is solved

To see the ListLines window use this command without parameters.
by teadrinker
15 Jan 2021, 16:52
Forum: Ask For Help
Topic: How to set the control's background transparent later?
Replies: 6
Views: 109

Re: How to set the control's background transparent later?

Code: Select all

Gui, Add, Progress, x0 y0 w100 h100 vMainLeft BackgroundBlue disabled
Gui, Add, Progress, x10 y10 w80 h80 vMyProg BackgroundRed disabled
Gui, Show
return

!x:: GuiControl, Hide, MyProg
by teadrinker
15 Jan 2021, 16:39
Forum: Ask For Help
Topic: SHA-1 hash - base64-encoded
Replies: 1
Views: 69

Re: SHA-1 hash - base64-encoded

String := "dGhlIHNhbXBsZSBub25jZQ==258EAFA5-E914-47DA-95CA-C5AB0DC85B11" len := StrPutBuff(String, data) size := CreateHash(&data, len, hashData,,, "SHA1") MsgBox, % CryptBinaryToString(&hashData, size) CreateHash(pData, size, ByRef hashData, pSecretKey := 0, keySize := 0, AlgId := "SHA256") { ; CN...
by teadrinker
15 Jan 2021, 12:33
Forum: Ask For Help
Topic: Modal Windows
Replies: 10
Views: 226

Re: Modal Windows

Another trick, all in one function: MsgBox, % "User entered:`n" . GetResponseFromUser() ExitApp GetResponseFromUser() { static EM_SETCUEBANNER := 0x1501, response := "" if A_Gui { GuiControlGet, response,, Edit1 Gui, Cancel } else { Gui, New, +hwndhGui Gui, Add, Edit, w300 +hwndhEdit SendMessage, EM...
by teadrinker
14 Jan 2021, 14:32
Forum: Ask For Help
Topic: Modal Windows
Replies: 10
Views: 226

Re: Modal Windows

Code sample: Gui, Add, Edit, w300 hwndhEdit SendMessage, EM_SETCUEBANNER := 0x1501, true, "Enter some text here and click OK",, ahk_id %hEdit% Gui, Add, Button, x120 w80 Default, OK Gui, Show WinWaitClose, ahk_id %hEdit% MsgBox, You entered:`n %Edit1% ExitApp ButtonOK: GuiControlGet, Edit1 Gui, Dest...
by teadrinker
13 Jan 2021, 17:52
Forum: Ask For Help
Topic: Use regex with process names? Topic is solved
Replies: 3
Views: 67

Re: Use regex with process names? Topic is solved

Another way:

Code: Select all

find = applic-v
For p in ComObjGet("winmgmts:").ExecQuery("Select * from Win32_Process where name like '" . find . "%'")
   MsgBox, % p.Name
by teadrinker
13 Jan 2021, 17:43
Forum: Ask For Help
Topic: Any way to make this Chrome ACC work properly? Topic is solved
Replies: 2
Views: 64

Re: Any way to make this Chrome ACC work properly? Topic is solved

AHKStudent wrote: enumerating all this every time?
You can just add AccAddrBar to static variables.

Go to advanced search