Search found 104 matches
- 30 Nov 2023, 10:52
- Forum: Scripts and Functions (v1)
- Topic: OSDTIP()
- Replies: 86
- Views: 41844
Re: OSDTIP()
Where is the code? Cant find it.
- 17 Aug 2023, 07:42
- Forum: Ask for Help (v1)
- Topic: Save Chrome sessions and achive logged in state everytime? [Chrome.ahk 1.2]
- Replies: 3
- Views: 288
Re: Save Chrome sessions and achive logged in state everytime? [Chrome.ahk 1.2]
I can set credentials with chrome.ahk. No problem there. My sistem all so sends sms code to log in. It takes time and my attention. I should fully automatize this stuff. That is; Login once and automatize other tasks without logging in.
- 17 Aug 2023, 06:47
- Forum: Ask for Help (v1)
- Topic: Save Chrome sessions and achive logged in state everytime? [Chrome.ahk 1.2]
- Replies: 3
- Views: 288
Save Chrome sessions and achive logged in state everytime? [Chrome.ahk 1.2]
The web site i try to use needs a login procedure. I have 4 different login credentials to get in. Can i do something like this. Login a website. Save session information. Do stuff. Close chrome. Next time. Run chrome. Set session info. Do stuff. (By bypassing login procedure). Close chrome. Don't w...
- 05 Dec 2022, 17:23
- Forum: Scripts and Functions (v1)
- Topic: BalloonTip
- Replies: 2
- Views: 663
Re: BalloonTip
Good. Thanks.
- 17 Nov 2022, 06:33
- Forum: AutoHotkey_H
- Topic: make 2nd thread to exit mainscript Topic is solved
- Replies: 1
- Views: 2117
Re: make 2nd thread to exit mainscript Topic is solved
2ndthread = ( #Persistent #NoTrayIcon AhkExe := AhkExported() n:=5 loop, { sleep, 500 n++ Tooltip, `% n if (n > 10) AhkExe.ahkFunction["ExitFunction"] } ) dllpath:=A_AhkDir "\AutoHotkey.dll" DllCall("LoadLibrary","Str",dllpath) DllCall(dllpath "\ahktextdll","Str",2ndthread,"Str","","Str","","CDecl"...
- 14 Nov 2022, 10:53
- Forum: AutoHotkey_H
- Topic: ahkTerminate[] kills main script too. Topic is solved
- Replies: 1
- Views: 2203
Re: ahkTerminate[] kills main script too. Topic is solved
I was using Chrome.ahk in that thread and i dont know why, when i use PageInst.Disconnect() function and ahkTerminate[] one after the other main script shuts itself down. Page.Inst function from Chrome.ahk; Disconnect() { if !this.Connected return this.Connected := False this.ws.Delete("Parent") thi...
- 13 Nov 2022, 10:54
- Forum: AutoHotkey_H
- Topic: ahkTerminate[] kills main script too. Topic is solved
- Replies: 1
- Views: 2203
ahkTerminate[] kills main script too. Topic is solved
Main thread has #Persistent Tag.
A hotkey creates thread. Thread does its jop. When finishes calls a function on main script (ahkExported). Main script terminates thread but it allso exits without error. What may be the couse of this?
A hotkey creates thread. Thread does its jop. When finishes calls a function on main script (ahkExported). Main script terminates thread but it allso exits without error. What may be the couse of this?
- 11 Nov 2022, 08:35
- Forum: AutoHotkey_H
- Topic: Can a Thread run a function in main script? Topic is solved
- Replies: 1
- Views: 2064
Re: Can a Thread run a function in main script? Topic is solved
I figured out that;
When you define
AhkExe := AhkExported()
in thread. You can do it like;
AhkExe.ahkFunction["myFunction"]
When you define
AhkExe := AhkExported()
in thread. You can do it like;
AhkExe.ahkFunction["myFunction"]
- 11 Nov 2022, 08:26
- Forum: AutoHotkey_H
- Topic: Can a Thread run a function in main script? Topic is solved
- Replies: 1
- Views: 2064
Can a Thread run a function in main script? Topic is solved
1. Main script --> Create thread 2. Main script --> Run a function on thread ( dll.ahkFunction() as in docs.) 3. Thread does some work and inform main script. How can i make thread to run a function on main script? I know that ahkFunction waits for thread function to return but my thread waits for c...
- 10 Nov 2022, 03:55
- Forum: Visual Studio Code
- Topic: Best Visual Studio Code Extension for AutoHotkey
- Replies: 2
- Views: 2688
Best Visual Studio Code Extension for AutoHotkey
@CoffeeChaton develops a VS Code extension full of features. Updates frequently and responds issues quickly. I think we should test his work and motivate/support him. He does pretty good jop. https://github.com/CoffeeChaton/vscode-autohotkey-NekoHelp [Mod edit: Moved topic from “Script and Functions...
- 26 Oct 2022, 12:11
- Forum: Scripts and Functions (v1)
- Topic: Using AHK for large scale software development
- Replies: 14
- Views: 3047
Re: Using AHK for large scale software development
How come you got familiar with AHK so fast. You must be a genius
- 02 Oct 2022, 12:40
- Forum: Scripts and Functions (v1)
- Topic: ObjectSort()
- Replies: 19
- Views: 6276
Re: ObjectSort()
BTW.. Why the heck AHK sorts arrays?
- 02 Oct 2022, 12:07
- Forum: Scripts and Functions (v1)
- Topic: ObjectSort()
- Replies: 19
- Views: 6276
Re: ObjectSort()
Didn't know about AutoSort . I refered to one-loop sorting . The idea is the same, however murataygun has a nested array. Having the function is useful, so I added two versions in my previous post . Thank you. I have that nested array. Have 44 objects in it. I build a table from it with the help of...
- 30 Sep 2022, 15:44
- Forum: Scripts and Functions (v1)
- Topic: ObjectSort()
- Replies: 19
- Views: 6276
Re: ObjectSort()
If you mean: Thank you for your reply. Its so kind of you spend time coding that loops. But its not the case. Maybe i can express stuation in code. Please see the code comments. Its working code to easly copy/paste and run. #Persistent #SingleInstance, force Malzemeler := Object() Malzemeler["glow"...
- 30 Sep 2022, 03:59
- Forum: Scripts and Functions (v1)
- Topic: ObjectSort()
- Replies: 19
- Views: 6276
Re: ObjectSort()
Thank you.
Malzemeler["item1"] := {id: 1, name: "deneme", adet: 3}
Malzemeler["item2"] := {id: 1, name: "deneme", adet: 3}
If i sort this array i loose Malzemeler arrays keys. (item1, item2)
Malzemeler["item1"] := {id: 1, name: "deneme", adet: 3}
Malzemeler["item2"] := {id: 1, name: "deneme", adet: 3}
If i sort this array i loose Malzemeler arrays keys. (item1, item2)
- 29 Sep 2022, 12:40
- Forum: Scripts and Functions (v1)
- Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
- Replies: 140
- Views: 59173
Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids
Please see the code. Button function. How can i handle that buttonClick event inside that class? Not the global scope. #Persistent #Include, ../lib/Neutron.ahk P := new PharmacyGui() P.showGui() ;How can i get this function to work in PharmacyGui class as a method. ;I should handle the form data ins...
- 29 Sep 2022, 06:10
- Forum: Scripts and Functions (v1)
- Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
- Replies: 140
- Views: 59173
Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids
Can we use real URL's instead of local html files? How? i think if the html has something referring back to the ahk script, for instance, onclick="ahk.buttonclicked(event, something)", can more unveil the usefulness of neutron. I tried this. - Modified neutron.ahk - Created an html page on a server...
- 25 Sep 2022, 11:27
- Forum: Ask for Help (v1)
- Topic: Global Settings Class
- Replies: 0
- Views: 258
Global Settings Class
Is it ok to create a class and keep variables in it and use everywhere? for example; Global Settings := new Settings_class() class Settings_class { width := 500 height := 400 } class bla{ createGui() { gui, w % Settings.width%, ;--- } class bla2{ createGui() { gui, w % Settings.width, ;--- } }
- 23 Sep 2022, 16:12
- Forum: Ask for Help (v1)
- Topic: The order of creating classes (OOP)
- Replies: 5
- Views: 578
Re: The order of creating classes (OOP)
IMO: - if you have circular references, then it is a bad design. You should change it. - Controller class shouldn't change anything of another class, although it could call some Telemetri method to change its values. - If Controller has many Telemetri instances to control, then Controller could hav...
- 23 Sep 2022, 14:43
- Forum: Ask for Help (v1)
- Topic: The order of creating classes (OOP)
- Replies: 5
- Views: 578
Re: The order of creating classes (OOP)
@murataygun, It shouldn't matter in which order you instantiate the classes. What I did notice is a few critical errors in your code: a) the Label parameter of the SetTimer command is neither a string or a function object and b) your code contains circular references. The code below fixes the SetTi...