Search found 1557 matches

by HotKeyIt
Yesterday, 18:57
Forum: Ask For Help
Topic: "+Resize" option is deleted?
Replies: 1
Views: 25

Re: "+Resize" option is deleted?

Can you post a simple script that generates that error, calling the line only does not seem to cause the error.
by HotKeyIt
21 Jan 2018, 08:38
Forum: Ask For Help
Topic: C# Exe crashes when latest version call
Replies: 6
Views: 80

Re: C# Exe crashes when latest version call

This should be fixed now, there was a problem with new A_Args command line variable.
by HotKeyIt
20 Jan 2018, 08:39
Forum: Ask For Help
Topic: C# Exe crashes when latest version call
Replies: 6
Views: 80

Re: C# Exe crashes when latest version call

Do you have an example script for c#?
by HotKeyIt
17 Jan 2018, 18:07
Forum: Bug Reports
Topic: 1.1.27.06 being blocked by Microsoft Security Essentials
Replies: 13
Views: 296

Re: 1.1.27.06 being blocked by Microsoft Security Essentials

You can suspend real-time protection to download and submit the file, I have submitted a report: https://www.microsoft.com/en-us/wdsi/su ... 05911a68fb
by HotKeyIt
17 Jan 2018, 17:51
Forum: Ask For Help
Topic: Compiled script instantly fails / triggers Windows Error Reporting on some machines
Replies: 2
Views: 74

Re: Compiled script instantly fails / triggers Windows Error Reporting on some machines

Can you compile simple script using latest version and test again (with and without compression)?
by HotKeyIt
17 Jan 2018, 17:40
Forum: Ask For Help
Topic: ahk v2+ahk_h COMPILER issue
Replies: 10
Views: 149

Re: ahk v2+ahk_h COMPILER issue

Thanks for feedback and sorry about that, Compiler was not updated to latest syntax. I have now fixed the Menu and command line parameters, try latest version. Note to compile using uncompiled Ahk2Exe.exe (copied from Win32w or x64w folder) use: Ahk2Exe.exe Ahk2Exe.ahk /in "C:\Program Files\Aut...
by HotKeyIt
16 Jan 2018, 18:12
Forum: Ask For Help
Topic: ahk v2+ahk_h COMPILER issue
Replies: 10
Views: 149

Re: ahk v2+ahk_h COMPILER issue

You need to replace Ahk2Exe.exe with AutoHotkey_H.exe from Win32w folder (rename it to Ahk2Exe.exe).
by HotKeyIt
13 Jan 2018, 17:28
Forum: Ask For Help
Topic: INetwork.GetName catastrophic failure
Replies: 3
Views: 68

Re: INetwork.GetName catastrophic failure

use try ActiveNetwork = ;if the pc is not connected to any network then ActiveNetwork := INetwork.GetName() is skipped, for INetwork in ComObjCreate("{DCB00C01-570F-4A9B-8D69-199FDBA5723B}").GetNetworks(1) try ActiveNetwork := INetwork.GetName() if ActiveNetwork = return
by HotKeyIt
13 Jan 2018, 09:00
Forum: Spiele
Topic: Maustasten umbelegen, außer in Spielen
Replies: 2
Views: 94

Re: Maustasten umbelegen, außer in Spielen

Code: [Select all]GeSHi © Codebox Plus

#IfWinNotActive Counter-Strike: Global Offensive ahk_class Valve001
Xbutton1::^c
Xbutton2::^v
#IfWinNotActive
by HotKeyIt
12 Jan 2018, 07:23
Forum: Ask For Help
Topic: Listview Icons in more than first column
Replies: 4
Views: 60

Re: Listview Icons in more than first column

Most likely you are using 64-bit version of AutoHotkey, try this: ; example for adding icons to listview columns > the first ; after Drugwash: http://www.autohotkey.com/forum/post-234198.html#234198 Gui, add, ListView, w600 h400 +LV0x2 HwndHLV, Name|Size|Ext ImageListID := IL_Create(10) LV_SetImageL...
by HotKeyIt
11 Jan 2018, 17:05
Forum: Ask For Help
Topic: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?
Replies: 10
Views: 141

Re: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?

Try this: SetControlDelay, -1 GroupAdd, XXX, ahk_class Notepad CoordMode, Mouse, Relative Delete:: MouseGetPos,,, mousehwnd If WinExist("ahk_group XXX ahk_id " mousehwnd){ WinGetPos, x, y,,,ahk_id %mousehwnd% if (newhwnd:=DllCall("WindowFromPoint","Int", x + 82, "I...
by HotKeyIt
09 Jan 2018, 16:39
Forum: Ask For Help
Topic: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?
Replies: 10
Views: 141

Re: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?

Try this:

Code: [Select all]GeSHi © Codebox Plus

SetControlDelay, -1
GroupAdd, XXX, ahk_class Notepad
CoordMode, Mouse, Relative

Delete::
MouseGetPos,,, mousehwnd
If !WinExist("ahk_group XXX ahk_id " mousehwnd)
Return
ControlClick, x82 y61, Ahk_id %mousehwnd%,, Left, 1, NA
Return
by HotKeyIt
08 Jan 2018, 19:32
Forum: Ask For Help
Topic: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?
Replies: 10
Views: 141

Re: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?

Change return WinExist(WinTitle " ahk_id " Win) to return WinExist(WinTitle)=WinExist("ahk_id " Win).
by HotKeyIt
08 Jan 2018, 16:33
Forum: Ask For Help
Topic: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?
Replies: 10
Views: 141

Re: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?

#if, see my example.
Or

Code: [Select all]GeSHi © Codebox Plus

GroupAdd, XXX, Prova

CoordMode, Mouse, Relative

Delete::
MouseGetPos,,, mousehwnd
if (mousehwnd != WinExist("ahk_group Prova"))
Return
SetControlDelay -1
ControlClick, x82 y61, Ahk_id %mousehwnd%,, Left, 1, NA
Return
by HotKeyIt
07 Jan 2018, 09:08
Forum: Ask For Help
Topic: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?
Replies: 10
Views: 141

Re: ifwinactive ahk_group XXX ... "and if mouse is on active window". How can I add?

Try this:

Code: [Select all]GeSHi © Codebox Plus

GroupAdd, XXX, Prova
CoordMode, Mouse, Relative

#if XXXActiveAndMouseInActive()
Delete::ControlClick, x82 y61, A,, Left, 1, NA
#if

XXXActiveAndMouseInActive(){
MouseGetPos,,,win
return WinActive("ahk_group XXX")&&(WinExist("A")=win)
}
by HotKeyIt
07 Jan 2018, 07:42
Forum: Ask For Help
Topic: [AHK_H v2] 'ComObjConnect' Thread direct connection Topic is solved
Replies: 4
Views: 133

Re: [AHK_H v2] 'ComObjConnect' Thread direct connection Topic is solved

' CriticalObject ' is understood as a way to prevent problems caused by interference during multi-threading. Is that right? Yes Try this ;) ie := ComObjCreate("InternetExplorer.Application") ; create a IE instance ie.Visible := true ThreadList:=' ( #Persistent ie:=new IE_ ready:=&ie C...
by HotKeyIt
06 Jan 2018, 18:59
Forum: Ask For Help
Topic: [AHK_H v2] 'ComObjConnect' Thread direct connection Topic is solved
Replies: 4
Views: 133

Re: [AHK_H v2] 'ComObjConnect' Thread direct connection Topic is solved

You don't need COM to do that, it would even cause problems with COM due to multi-threading. Instead use CriticalObject : ThreadList:=' ( #Persistent _test:=CriticalObject(new test) ready:=&_test Class test{ Test_EventName(params*){ msgbox "... event-handling code ...test" } } )' Threa...
by HotKeyIt
06 Jan 2018, 18:53
Forum: Gaming
Topic: Stopping Loop?
Replies: 6
Views: 98

Re: Stopping Loop?

Works fine for me, change the sleep for testing purpose, so you don't have to wait that long:

Code: [Select all]GeSHi © Codebox Plus

+^s::
While !stop {
send .{enter}
Sleep, 1000
}
stop:=0
Return
^!s::stop:=1
by HotKeyIt
05 Jan 2018, 20:19
Forum: Gaming
Topic: Stopping Loop?
Replies: 6
Views: 98

Re: Stopping Loop?

Here pressing CTRL+ALT+S will stop the Loop:

Code: [Select all]GeSHi © Codebox Plus

+^s::
While !stop {
send .{enter}
Sleep, 66666
}
stop:=0
Return
^!s::stop:=1
by HotKeyIt
05 Jan 2018, 09:22
Forum: Ask For Help
Topic: Newbie wants to record day/time into a notepad file each time when I press a keystoke
Replies: 4
Views: 78

Re: Newbie wants to record day/time into a notepad file each time when I press a keystoke

In notepad you can press F5 to paste current time and date!
You can also use a Hotkey to do all automatically, here you need to press Windows Key + F5:

Code: [Select all]GeSHi © Codebox Plus

#F5::
file:=""
FileSelectFile, file,S 16,,Save As, *.txt
if !file
Return
FileAppend %A_Now%, %file%
Return

Go to advanced search