Search found 21 matches
- 07 Oct 2018, 04:14
- Forum: Scripts and Functions (v1)
- Topic: XGraph v1.1.1.0 : Real time data plotting.
- Replies: 28
- Views: 40927
Re: XGraph v1.1.1.0 : Real time data plotting.
For example I don't even know how to even get the hex code for basic parameters like eg. PS_SOLID := 0 - how did SKAN figure out PS_SOLID = 0? Uppercase names, like PS_SOLID, are constants in C++. If you look at the requirements section of this page, it tells you in which header the constants are d...
- 27 Feb 2015, 08:28
- Forum: Scripts and Functions (v1)
- Topic: Resizable and scrollable GUI
- Replies: 3
- Views: 3039
Re: Resizable and scrollable GUI
Well, it's nothing special. I used Lexikos code for a while and recently I had to change it to work with my new GUIs. It's essentially the same code except it calculates differently the coordinates of the window's client area, uses ControlGet instead of GuiControlGet so it can work with child window...
- 20 Feb 2015, 10:03
- Forum: Scripts and Functions (v1)
- Topic: Resizable and scrollable GUI
- Replies: 3
- Views: 3039
Resizable and scrollable GUI
I improved a little bit the old functions Lexikos made to implement a scrollable GUI. Now it works with child windows, status bar, menu bars and I believe is independent of window styles. #Include libWindows.ahk Menu, File, Add, File Gui, Parent:Menu, File Gui, Parent:Color, Gray Gui, Parent:+Resize...
- 06 Feb 2015, 12:20
- Forum: Ask for Help (v1)
- Topic: Critical thread gets interuped and enters in a deadlock
- Replies: 17
- Views: 7079
Re: Critical thread gets interuped and enters in a deadlock
On my system, the ListView population (in your latest script) takes quite a while, and the ListView event thread does not execute. Yep, I messed up. You are right the Edit control remains blank. So I think the deadlock is either in AutoHotkey's message loop, or outside AutoHotkey's control, in the ...
- 05 Feb 2015, 18:21
- Forum: Ask for Help (v1)
- Topic: Critical thread gets interuped and enters in a deadlock
- Replies: 17
- Views: 7079
Re: Critical thread gets interuped and enters in a deadlock
What makes you think that? I'm fairly certain that the event thread only interrupts the timer before it is Critical. On my system the ListView population in that script takes quiet a while, so if I click on the ListView a couple of seconds after the script started, I'm way after the thread has been...
- 05 Feb 2015, 15:46
- Forum: Ask for Help (v1)
- Topic: How to make a GUI act like Rainmeter skin?
- Replies: 7
- Views: 3752
Re: How to make a GUI act like Rainmeter skin?
Gui, Gadget:+ToolWindow get's rid of the taskbar icon and gives a narrower title bar. Read GUI options . DesktopIntegration: label activates the gadget window (brings it to the front) whenever the current active window class is "WorkerW" (desktop when you press Win+D) Gadget: is the name I chose fo...
- 05 Feb 2015, 12:23
- Forum: Ask for Help (v1)
- Topic: How to make a GUI act like Rainmeter skin?
- Replies: 7
- Views: 3752
Re: How to make a GUI act like Rainmeter skin?
This complies with 2) and 3): Gui, Gadget:+ToolWindow Gui, Gadget:Add, Text, , Gadget Gui, Gadget:Show, w150 h50, Gadget window Gui, Gadget:+LastFound hGadgetGui := WinExist() SetTimer, DesktopIntegration return DesktopIntegration: WinGetClass, ahk_class, A If (ahk_class == "WorkerW") and (LastClass...
- 05 Feb 2015, 10:39
- Forum: Ask for Help (v1)
- Topic: Critical thread gets interuped and enters in a deadlock
- Replies: 17
- Views: 7079
Re: Critical thread gets interuped and enters in a deadlock
The reason I use Critical when I populate/update the ListView is to make sure the list view functions operates on the right one, because there are multiple ListViews that are concurrently being updated. Disabling the ListView during population/update would fix the deadlock but produces an annoying f...
- 05 Feb 2015, 05:45
- Forum: Ask for Help (v1)
- Topic: Send string to a non-ahk process that has stdin enabled Topic is solved
- Replies: 5
- Views: 4245
Re: Send string to a non-ahk process that has stdin enabled Topic is solved
You could try something like this: PID := ; obtain the PID of the process to which you want to send the text DllCall("AttachConsole", "Int", PID) ;~ or ;~ DllCall("AttachConsole", "Int", -1) ; attach to parent's console hStdIn := DllCall("GetStdHandle", "Int", -10) ; STD_INPUT_HANDLE = -10 Text := "...
- 04 Feb 2015, 15:03
- Forum: Ask for Help (v1)
- Topic: URLDownloadtoFile
- Replies: 7
- Views: 4671
Re: URLDownloadtoFile
Have you checked the path in the script is actually correct? MsgBox ,"%mnkdir%\tempfiles\MNK.zip" IfNotExist, %mnkdir%\tempfiles\ MsgBox, "%mnkdir%\tempfiles\" does not exist. UrlDownloadToFile, http://mynoteskeeper.com/mnk.zip, %mnkdir%\tempfiles\MNK.zip Is %mnkdir% ending in a backslash ("\") ? If...
- 04 Feb 2015, 14:25
- Forum: Ask for Help (v1)
- Topic: Critical thread gets interuped and enters in a deadlock
- Replies: 17
- Views: 7079
Critical thread gets interuped and enters in a deadlock
The script below may enter in a deadlock if you left click madly on the on the list view as soon as it starts. This is what happens: ListGui is created and shown UpdateList label is set to be triggered 1 sec later lots of calls to ListEvent are triggered as I click very fast the list view after a se...
- 04 Feb 2015, 12:35
- Forum: Ask for Help (v1)
- Topic: URLDownloadtoFile
- Replies: 7
- Views: 4671
Re: URLDownloadtoFile
It fails because "%mnkdir%\tempfiles" path doesn't exist. Make sure it exist before downloading.
- 24 Jan 2015, 11:55
- Forum: Ask for Help (v1)
- Topic: String appending - how does it work
- Replies: 3
- Views: 2085
Re: String appending - how does it work
I missed that in docs. Thanks!
- 24 Jan 2015, 10:55
- Forum: Ask for Help (v1)
- Topic: String appending - how does it work
- Replies: 3
- Views: 2085
String appending - how does it work
I want to append a string to a buffer received from a DllCalll containing a null terminated string, but instead of being appended it's simply placed at the start of the string. The code snippet below depicts the issue. ;~ ANSI only VarSetCapacity(string, 8, 0) DllCall("RtlFillMemory", "Ptr", &string...
- 17 Dec 2014, 13:55
- Forum: Ask for Help (v1)
- Topic: #include file cannot be opened
- Replies: 3
- Views: 2924
Re: #include file cannot be opened
Ah, I see.
Thanks !
Thanks !
- 16 Dec 2014, 01:35
- Forum: Ask for Help (v1)
- Topic: #include file cannot be opened
- Replies: 3
- Views: 2924
#include file cannot be opened
I have a problem that makes absolutely no sense. I keep my ahk scripts on OneDrive and everything works perfect on PC, but once I sync to my laptop I can't compile, getting error "#include file cannot be opened". Ok, so I thought there must be something wrong with OneDrive folder, and I moved the sc...
- 19 Oct 2014, 07:14
- Forum: Ask for Help (v1)
- Topic: Function with parameter defaulting to an object
- Replies: 2
- Views: 1474
Function with parameter defaulting to an object
Why can't I do this?
It says : "Unsupported parameter default."
Why not?
Code: Select all
testFunc(parameter := new Object())
{
return 123
}
Why not?
- 23 Apr 2014, 18:18
- Forum: Ask for Help (v1)
- Topic: Nested classes
- Replies: 1
- Views: 1058
Nested classes
Why is the constructor of the "Element" nested class not called ?
Code: Select all
obj := new List()
obj.AddElement(13)
class List
{
AddElement(index)
{
this.Insert(new Element(index))
}
class Element
{
__New(index)
{
this.Index := index
MsgBox works
}
}
}
- 22 Apr 2014, 10:28
- Forum: Ask for Help (v1)
- Topic: How to call IsWindowsVersionOrGreater function?
- Replies: 1
- Views: 1572
Re: How to call IsWindowsVersionOrGreater function?
Ok. I ended up using GetVersionEx WinAPI function. Much better. MsgBox % GetOSVersion() MsgBox % CompareVersion(GetOSVersion(), "5.1.2600.3.0") ; check if XP SP3 or grater GetOSVersion() { hModuleKernel32 := DllCall("LoadLibrary", "str", "kernel32.dll") VarSetCapacity(OSVERSIONINFOEX, 156, 0) NumPut...
- 22 Apr 2014, 09:14
- Forum: Ask for Help (v1)
- Topic: How to call IsWindowsVersionOrGreater function?
- Replies: 1
- Views: 1572
How to call IsWindowsVersionOrGreater function?
How can you call this function ? None of this works. hModuleNtdll := DllCall("LoadLibrary", "str", "ntdll.dll") hModuleKernel32 := DllCall("LoadLibrary", "str", "kernel32.dll") MsgBox % DllCall("ntdll.dll\IsWindowsXPSP3OrGreater") MsgBox % DllCall("Kernel32.dll\IsWindowsXPSP3OrGreater") DllCall("Fre...