Search found 1481 matches

by HotKeyIt
Yesterday, 15:40
Forum: Ask For Help
Topic: two-way listview communication between two scripts. Topic is solved
Replies: 1
Views: 48

Re: two-way listview communication between two scripts. Topic is solved

#NoEnv #SingleInstance Force #Persistent FileEncoding UTF-8 sendmsg:="ListView_library sendtest" LVM_Insert(HLvInfo,1,1,0,,A_Hour . ":" . A_min . ":" . A_Sec,sendmsg) ExitApp LVM_Insert(hLV, row=0, col=1, options=0, f*) { static MEM_RELEASE:=32768, MEM_DECOMMIT:=16384,...
by HotKeyIt
19 Oct 2017, 00:51
Forum: Ask For Help
Topic: AHK_L V1 → AHK_H V2
Replies: 8
Views: 121

Re: AHK_L V1 → AHK_H V2

I have updated above, should be fine now: https://autohotkey.com/boards/viewtopic ... 33#p176494
by HotKeyIt
18 Oct 2017, 15:29
Forum: Ask For Help
Topic: AHK_L V1 → AHK_H V2
Replies: 8
Views: 121

Re: AHK_L V1 → AHK_H V2

I get 2 for AHK_L as well, can you link to Acc.ahk you are using for AHK_L?
by HotKeyIt
17 Oct 2017, 18:51
Forum: Ask For Help
Topic: GetWindowLong versus GetWindowLongPtr
Replies: 10
Views: 160

Re: GetWindowLong versus GetWindowLongPtr

jeeswg wrote:Btw is it conceivable that the Long (not the LongPtr) versions of the dll functions could be useful on x64 in some circumstances?

They could be used and will work vor 32-bit values but would not for 64-bit.
To avoid confusion always use LongPtr on 64-bit!
by HotKeyIt
17 Oct 2017, 05:50
Forum: Ask For Help
Topic: AHK_L V1 → AHK_H V2
Replies: 8
Views: 121

Re: AHK_L V1 → AHK_H V2

If ConnectedToInternet() Msgbox "online" else MsgBox "offline" ;ConnectedToInternet() ConnectedToInternet(flag:=0x40) { Return DllCall("Wininet.dll\InternetGetConnectedState", "UInt*", flag,"Int",0) } ;-----------------------------------------------...
by HotKeyIt
17 Oct 2017, 05:39
Forum: Ask For Help
Topic: GetWindowLong versus GetWindowLongPtr
Replies: 10
Views: 160

Re: GetWindowLong versus GetWindowLongPtr

Btw why do you use 'PTR' sometimes and 'Ptr' other times? Cheers. [EDIT:] A-ha, so the issue is the return type, in x64, with GetWindowLong, you get an Int, when it should be a Ptr. - But how come you can't just do GetWindowLongPtr in x32, is the function just not in the x32 version of the dll? Doe...
by HotKeyIt
16 Oct 2017, 17:49
Forum: Ask For Help
Topic: GetWindowLong versus GetWindowLongPtr
Replies: 10
Views: 160

Re: GetWindowLong versus GetWindowLongPtr

Note If you are retrieving a pointer or a handle , this function has been superseded by the GetWindowLongPtr function. (Pointers and handles are 32 bits on 32-bit Windows and 64 bits on 64-bit Windows.) To write code that is compatible with both 32-bit and 64-bit versions of Windows, use GetWindowL...
by HotKeyIt
16 Oct 2017, 15:23
Forum: Ask For Help
Topic: how to stop this?the computer goes idle and then log off my session
Replies: 22
Views: 153

Re: how to stop this?the computer goes idle and then log off my session

Because it exits, you need the other part, e.g.:

Code: [Select all]GeSHi © Codebox Plus

Loop {
ControlSend,,{Shift down}, ahk_class TscShellContainerClass
Sleep 50
ControlSend,,{Shift up}, ahk_class TscShellContainerClass
Sleep 60000
}
by HotKeyIt
15 Oct 2017, 15:11
Forum: Ask For Help
Topic: how to stop this?the computer goes idle and then log off my session
Replies: 22
Views: 153

Re: how to stop this?the computer goes idle and then log off my session

If that does not help try using ControlSend,,{Shift down}, ahk_class TscShellContainerClass Sleep 50 ControlSend,,{Shift up}, ahk_class TscShellContainerClass Try also different keys and probably ControlSend,ahk_parent, ... or ControlSend,UIMainClass1, ... See https://autohotkey.com/docs/commands/Co...
by HotKeyIt
15 Oct 2017, 15:05
Forum: Ask For Help
Topic: how to stop this?the computer goes idle and then log off my session
Replies: 22
Views: 153

Re: how to stop this?the computer goes idle and then log off my session

That is not a problem, simply make sure you don't minimize the RDP session window!
Put it in window mode and leave it running in background when you interact with other windows/programs.
by HotKeyIt
15 Oct 2017, 14:58
Forum: Ask For Help
Topic: how to stop this?the computer goes idle and then log off my session
Replies: 22
Views: 153

Re: how to stop this?the computer goes idle and then log off my session

Have a look here: http://www.networkautomation.com/urc/kn ... f43e03470/
Minimizing the Remote Desktop window causes the Windows operating system to switch the remote session to GUI-less mode ...
by HotKeyIt
15 Oct 2017, 14:42
Forum: Ask For Help
Topic: how to stop this?the computer goes idle and then log off my session
Replies: 22
Views: 153

Re: how to stop this?the computer goes idle and then log off my session

Change to Sleep 60000 and make sure you don't minimize your sessions.
by HotKeyIt
15 Oct 2017, 13:55
Forum: Ask For Help
Topic: how to stop this?the computer goes idle and then log off my session
Replies: 22
Views: 153

Re: how to stop this?the computer goes idle and then log off my session

You have to execute it on every remote computer!
by HotKeyIt
15 Oct 2017, 10:08
Forum: Ask For Help
Topic: how to stop this?the computer goes idle and then log off my session
Replies: 22
Views: 153

Re: how to stop this?the computer goes idle and then log off my session

After how many minutes does your machine get locked? Sleep accepts miliseconds, so 5*60*1000 = 300000 = 5 Minutes. You don't need Admin rights, all you need is AutoHotkey.exe, save the script as AutoHotkey.ahk in same folder and double click AutoHotkey.exe. To exit script run task manager and kill A...
by HotKeyIt
15 Oct 2017, 07:04
Forum: Ask For Help
Topic: how to stop this?the computer goes idle and then log off my session
Replies: 22
Views: 153

Re: how to stop this?the computer goes idle and then log off my session

This works fine for me, you might need to change the Sleep to something else then 5 minutes:
by HotKeyIt
14 Oct 2017, 05:14
Forum: Wish List
Topic: InBuilt DataBase Support
Replies: 1
Views: 65

Re: InBuilt DataBase Support

Why, sqlite is being updated quite often and what would be the advantage vs using a dll?
by HotKeyIt
10 Oct 2017, 14:57
Forum: Ask For Help
Topic: how to use the function of the main thread in thread1
Replies: 7
Views: 126

Re: how to use the function of the main thread in thread1

Function is local, you can only get global variables.
Also by the time you try to get the variable, function already exited and variables were cleared!
by HotKeyIt
10 Oct 2017, 14:52
Forum: Allgemeines
Topic: lexikos?
Replies: 32
Views: 985

Re: lexikos?

just me wrote:Wenn nicht, erinnert mich das stark an den 'schleichenden' Abgang von polyethene.

Du meinst wahrscheinlich Chris, du kannst doch nicht poly mit lex vergleichen.
Die Situation ist auch eine ganz andere, lex betreibt nicht die Webseite und poly hat nicht ahk entwickelt.
by HotKeyIt
10 Oct 2017, 01:19
Forum: Ask For Help
Topic: how to use the function of the main thread in thread1
Replies: 7
Views: 126

Re: how to use the function of the main thread in thread1

Yes, main exe has no variable var1: var1:="this is a test" thread:=AhkThread(" ( Sleep 500 exe:=AhkExported() exe.ahkFunction("test",var,var1) MsgBox exe.ahkgetvar("var1") ;retun null )") thread.ahkassign("var","2") While thread.ahkReady() ...
by HotKeyIt
09 Oct 2017, 16:05
Forum: AutoHotkey_H
Topic: [AHK_H v2] Macro Functions
Replies: 2
Views: 46

Re: [AHK_H v2] Macro Functions

That seems to be a problem in v2, it is not related to macro, I have opened a bug report: https://autohotkey.com/boards/viewtopic ... 33#p158449

Go to advanced search