Search found 41 matches

by grimboto
05 Feb 2019, 18:30
Forum: Ask For Help
Topic: GDIP filter all but a certain color out of an image Topic is solved
Replies: 4
Views: 193

Re: GDIP filter all but a certain color out of an image Topic is solved

thanks that works well, its a little slow but gets the job done.

cheers
by grimboto
05 Feb 2019, 17:21
Forum: Ask For Help
Topic: GDIP filter all but a certain color out of an image Topic is solved
Replies: 4
Views: 193

GDIP filter all but a certain color out of an image Topic is solved

hey i have a little function that launches windows screen sketch and then saves the image to file after the copy to clipboard button is pressed. I will only ever be using the red pen to draw on these images. Just looking for a way to save another copy of the image that only contains the lines i've d...
by grimboto
09 Sep 2018, 17:00
Forum: Ask For Help
Topic: Newbie grappling with COM
Replies: 8
Views: 325

Re: Newbie grappling with COM

start the timer before the ItemToPrint.Printout

Code: Select all

	SetDefaultPrinter(Microsoft Print to PDF)
	ItemToPrint := ComObjActive("Word.Application").ActiveDocument
	
	;start the timer here
	ItemToPrint.Printout
	
	Click, Edit2, Save Print Output As ahk_exe WINWORD.EXe
	
	
by grimboto
19 Aug 2018, 03:58
Forum: Ask For Help
Topic: Help getting started with the IRealTimeStylus object
Replies: 1
Views: 154

Re: Help getting started with the IRealTimeStylus object

a couple more links i found looks like i need a istylusplugin object aswell https://docs.microsoft.com/en-us/windows/desktop/api/rtscom/nn-rtscom-istylusplugin and the function stylusdown https://docs.microsoft.com/en-us/windows/desktop/api/rtscom/nf-rtscom-istylusplugin-stylusdown but i'm still not...
by grimboto
05 Aug 2018, 06:25
Forum: Ask For Help
Topic: Help getting started with the IRealTimeStylus object
Replies: 1
Views: 154

Help getting started with the IRealTimeStylus object

I'm trying to get data when ever a stylus or touch screen is used, at the moment just looking at getting the x y position when the stylus/finger is pressed down and released then modify it. After having a look around i found the IRealTimeStylus object https://docs.microsoft.com/en-us/windows/desktop...
by grimboto
20 Jun 2018, 02:33
Forum: Ask For Help
Topic: LoopReadLine, works, can't get it to work as a function Topic is solved
Replies: 2
Views: 146

Re: LoopReadLine, works, can't get it to work as a function Topic is solved

func(kolx,varx,koly,vary,kolz,varz) { global items static col loop read, % "n.csv" { if a_loopreadline = "" continue col := strSplit(a_loopreadline, ";", " `t" ) if (col[kolx] = varx) && (col[koly] = vary) && (col[kolz] != varz) items .= A_index ";" ;remove return form this line it exits the functi...
by grimboto
07 Jun 2018, 19:16
Forum: Ask For Help
Topic: Sound file doesnt play unless I press Enter?
Replies: 15
Views: 783

Re: Sound file doesnt play unless I press Enter?

while(!WinActive("Item Not Found!")){ ;Wait for Window to become active sleep 20 } if WinActive("Item Not Found!") SoundGet, master_mute, , mute ; this will check if volume is muted or therwise if ( master_mute == "On" ) SoundSet, +1, , mute ; this will unmute SoundSet +100 ; Raise volume to 100% S...
by grimboto
30 May 2018, 00:58
Forum: Ask For Help
Topic: Help Sending a WM_command Message
Replies: 2
Views: 182

Re: Help Sending a WM_command Message

thanks that worked perfectly
by grimboto
29 May 2018, 19:54
Forum: Ask For Help
Topic: Help Sending a WM_command Message
Replies: 2
Views: 182

Help Sending a WM_command Message

I'm trying to sned a WM Command Message to Illustrator CS4. using Winspector Spy i see the following message is sent when i click on the menu item i'm trying to activate. WM Command.png I've tried the following code postMessage, 0x111, 96, 33024, , Adobe Illustrator CS4 but the message received by I...
by grimboto
21 Apr 2018, 18:57
Forum: Ask For Help
Topic: Help clicking java script button Topic is solved
Replies: 3
Views: 211

Re: Help clicking java script button Topic is solved

if its in a frame maybe try this.

WB.document.parentWindow.frames["content_frame"].document.getElementById("btn_div").click()
by grimboto
27 Mar 2018, 21:36
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 185
Views: 18623

Re: AutoHotInterception - Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

thanks for the offer @evilC unfortunately i don't know any C#. I'm keen to try the version with the added mouse support but the AutoHotInterception.dll seems to be missing from the libary folder in the latest update.
by grimboto
27 Mar 2018, 20:16
Forum: Ask For Help
Topic: Trying to find a smarter way to reduce redundancy in code Topic is solved
Replies: 2
Views: 161

Re: Trying to find a smarter way to reduce redundancy in code Topic is solved

Code: Select all

F1::
F2::
F3::
F4::
F5::
F6::
F7::
F8::
F9::
F10::
F11::
F12::
MsgBox, You pressed %A_ThisHotkey% button!
Return
by grimboto
18 Mar 2018, 16:32
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 185
Views: 18623

Re: AutoHotInterception - Per-keyboard hotkeys for AHK (Fire macros in response to key on a 2nd keyboard)

its a Lenovo Yoga, the pen seems to use the wacom drivers though.
From the quick tests i've done interception can see when the barrel buttons are pressed but doesn't seem to get anything when the pen itself taps on the screen
by grimboto
14 Mar 2018, 22:56
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 185
Views: 18623

Re: AutoHotInterception - Per-keyboard hotkeys for AHK (Fire macros in response to key on a 2nd keyboard)

when Windows rolled out the fall creators update, they changed the way the pen works. it used to work like a mouse where you could click and drag to select items on the screen, now if you click and drag it scrolls the window instead which is very annoying and i was looking for a solution to change i...
by grimboto
18 Feb 2018, 15:27
Forum: Ask For Help
Topic: Get Window Handle of Windows Screen Sketch
Replies: 0
Views: 126

Get Window Handle of Windows Screen Sketch

I'm trying to get the window Handle of the window that opens when Screen Sketch is opened. Window Spy shows the Title as "Windows Ink Workspace" But WinExist("Windows Ink Workspace") returns nothing. MouseGetPos will return the right handle but i don't want to have to rely on the position of the mou...
by grimboto
04 Feb 2018, 15:01
Forum: Ask For Help
Topic: Get Running process group count
Replies: 2
Views: 183

Re: Get Running process group count

I thought that would be the answer aswell but it just returns the exe name again "Tcw.exe"
by grimboto
02 Feb 2018, 05:24
Forum: Ask For Help
Topic: Get Running process group count
Replies: 2
Views: 183

Get Running process group count

I'm trying to get the number of running processes for a certain .exe process. but i am getting inconsistent results. Below is the code I'm using at the moment displaylist := "" name := "tcw90.exe" strComputer := "." objWMIService := ComObjGet("winmgmts:{impersonationLevel=impersonate}!\\" . strCompu...

Go to advanced search