Search found 156 matches

by SAbboushi
02 Aug 2018, 11:48
Forum: AutoHotkey v2 Development
Topic: How to make sure timer is run again instead of reset Topic is solved
Replies: 12
Views: 2251

Re: How to make sure timer is run again instead of reset Topic is solved

Oops - you posted while I was still writing, so I didn't see your post. Thanks - I think you've given me enough info to proceed.
by SAbboushi
02 Aug 2018, 11:47
Forum: AutoHotkey v2 Development
Topic: How to make sure timer is run again instead of reset Topic is solved
Replies: 12
Views: 2251

Re: How to make sure timer is run again instead of reset Topic is solved

My conclusion is that it is not possible to have two enabled "MsgBox1" timers because a SetTimer statement either creates a new timer or resets it (a "timer" being identified by the SetTimer's callback parameter which in this case is MsgBox1 ). So if I want to have multiple timers that all use the s...
by SAbboushi
02 Aug 2018, 11:31
Forum: AutoHotkey v2 Development
Topic: How to make sure timer is run again instead of reset Topic is solved
Replies: 12
Views: 2251

Re: How to make sure timer is run again instead of reset Topic is solved

Thanks - I'll look into that. I'm curious though: documentation says By default, a given hotkey or hotstring subroutine cannot be run a second time if it is already running. Use #MaxThreadsPerHotkey to change this behavior. Wondering if this might also apply to functions called by SetTimer (relates ...
by SAbboushi
01 Aug 2018, 22:51
Forum: AutoHotkey v2 Development
Topic: How to make sure timer is run again instead of reset Topic is solved
Replies: 12
Views: 2251

How to make sure timer is run again instead of reset Topic is solved

Is there any way to determine in script whether a timer is enabled or not? Only way I can think of is maybe to use Lexikos' ScriptInfo and extract "Enabled Timers"... or maybe set a global variable in the timer function. Anyone with experience that can suggest what they think is the best way? I want...
by SAbboushi
26 Jul 2018, 15:40
Forum: Ask For Help
Topic: Correct use of Return Topic is solved
Replies: 4
Views: 476

Re: Correct use of Return Topic is solved

And welcome!
by SAbboushi
26 Jul 2018, 15:40
Forum: Ask For Help
Topic: Correct use of Return Topic is solved
Replies: 4
Views: 476

Re: Correct use of Return Topic is solved

I'm not sure I understood what you were asking, but hope I've answered your question (see my notes I've added to your code below). Note: when posting code, use "Full Editor & Preview" mode. Click in the post where you want your code, click on the "Select code" dropdown and select "AHK (AutoHotkey)",...
by SAbboushi
26 Jul 2018, 15:08
Forum: Ask For Help
Topic: Paste a password while remote'd into a PC?
Replies: 5
Views: 573

Re: Paste a password while remote'd into a PC?

I don't use logmein. I understand that CTRL/v works to paste into remote PC, but you didn't say whether you are copying from notepad on your local PC or the remote PC (I suspect the latter). I suspect you're working with 2 clipboards. On some of the remote software I use, unmaximizing the local wind...
by SAbboushi
26 Jul 2018, 15:00
Forum: Ask For Help
Topic: #presistent keeps script looping
Replies: 4
Views: 433

Re: #presistent keeps script looping

If I understand what you want:

Windows shortcut/.bat/.cmd file to launch the script e.g.
j:\StandaloneApps\AutoHotkeyV2\AutoHotkeyU64.exe "D:\Documents\GAR\test13.ahk"

Add the .bat or .cmd file to windows startup if you want it to start when windows starts
by SAbboushi
26 Jul 2018, 13:57
Forum: Scripts and Functions
Topic: [Lib] ObjDump / ObjLoad - Object Backup
Replies: 68
Views: 18407

Re: [Lib] ObjDump / ObjLoad - Object Backup

Thanks for your efforts but no - I get the same error I posted earlier Error in #include file "J:\StandaloneApps\AutoHotkeyV2\Lib\objdump.ahk": Type mismatch. Line# 046: objects[obj]:=1 047: For k,v in obj 048: { 049: if IsObject(k) 050: sz+=objects.HasKey(k)?9:RawObjectSize(k,buf,objects)+9 051: El...
by SAbboushi
26 Jul 2018, 10:41
Forum: Scripts and Functions
Topic: [Lib] ObjDump / ObjLoad - Object Backup
Replies: 68
Views: 18407

Re: [Lib] ObjDump / ObjLoad - Object Backup

HotKeyIt: Are you getting the same error?
by SAbboushi
26 Jul 2018, 00:11
Forum: Ask For Help
Topic: Object Serializer/Deserializer for AHK V2?
Replies: 2
Views: 406

Re: Object Serializer/Deserializer for AHK V2?

Thanks - anyone else?
by SAbboushi
25 Jul 2018, 16:18
Forum: Scripts and Functions
Topic: [Lib] ObjDump / ObjLoad - Object Backup
Replies: 68
Views: 18407

Re: [Lib] ObjDump / ObjLoad - Object Backup

Sorry - my bad. Example that fails using AHK v2 and objdump.ahk for v2:

Code: Select all

SendObject :=	{
                  x: 2
                }
                        
size := objdump(sendObject, variable)
by SAbboushi
25 Jul 2018, 15:56
Forum: Scripts and Functions
Topic: [Lib] ObjDump / ObjLoad - Object Backup
Replies: 68
Views: 18407

Re: [Lib] ObjDump / ObjLoad - Object Backup

Code: Select all

SendObject :=	{
                  x: 2
                }
                        
x:=objdump(sendObject)
by SAbboushi
25 Jul 2018, 13:06
Forum: Ask For Help
Topic: Object Serializer/Deserializer for AHK V2?
Replies: 2
Views: 406

Object Serializer/Deserializer for AHK V2?

Trying to find a working AHK V2 library to serialize/deserialize objects but the ones I've tested that have V2 versions throw errors (HotKeyIt's YAML parser & ObjDumpObjLoad, CoCo's SerDes) for things like math operations on uninitialized variables or doing ABS("")...
by SAbboushi
25 Jul 2018, 13:02
Forum: Scripts and Functions
Topic: [Lib] ObjDump / ObjLoad - Object Backup
Replies: 68
Views: 18407

Re: [Lib] ObjDump / ObjLoad - Object Backup

I downloaded the v2 versions. Getting error: Error in #include file "J:\StandaloneApps\AutoHotkeyV2\Lib\ObjDump.ahk": Type mismatch. Line# 046: objects[obj]:=1 047: For k,v in obj 048: { 049: if IsObject(k) 050: sz+=objects.HasKey(k)?9:RawObjectSize(k,buf,objects)+9 051: Else 051: if Type(k)="String...
by SAbboushi
19 Jul 2018, 17:38
Forum: AutoHotkey v2 Development
Topic: AHK V2: function reference works to class prototype method but not class instance method
Replies: 8
Views: 1509

Re: AHK V2: function reference works to class prototype method but not class instance method

You cannot get a pointer of data that's inside an array/object by using &. You need to use .getAdress() Thanks. With the caveat that I think .getAddress only gives address for string values Also in AutoHotkey using & probably does not do what you think it does. I think it's supposed to give me the ...
by SAbboushi
18 Jul 2018, 19:14
Forum: AutoHotkey v2 Development
Topic: AHK V2: function reference works to class prototype method but not class instance method
Replies: 8
Views: 1509

AHK V2: function reference works to class prototype method but not class instance method

I've been trying to dig out of the object/class rabbit hole for weeks now. :crazy: :roll: Current mystery: the following test has me pondering what I'm missing. Not that I'm looking to code like this, but am wondering why I can create a function reference to a class prototype method, but not to the ...
by SAbboushi
17 Jul 2018, 15:08
Forum: Ask For Help
Topic: variables contain a reference to an object...?
Replies: 2
Views: 346

Re: variables contain a reference to an object...?

Thanks Helgef for your response. It's given me a lot to absorb -- sent me deeper into the rabbit hole for 2 days! Still absorbing.

Go to advanced search