Search found 47 matches

by grimboto
11 Dec 2019, 15:29
Forum: Ask For Help
Topic: save winHTTPRequest response as an image
Replies: 1
Views: 119

Re: save winHTTPRequest response as an image

Sorry i figured it out vStream := Http.ResponseStream if (ComObjType(vStream) = 0xD) { ;VT_UNKNOWN = 0xD pIStream := ComObjQuery(vStream, "{0000000c-0000-0000-C000-000000000046}") ;defined in ObjIdl.h oFile := FileOpen( A_ScriptDIr "\ms-banner.png", "w") Loop { VarSetCapacity(Buffer, 8192) hResult :...
by grimboto
11 Dec 2019, 15:18
Forum: Ask For Help
Topic: save winHTTPRequest response as an image
Replies: 1
Views: 119

save winHTTPRequest response as an image

I'm generating a url to send using winHttpRequest that returns Image data but i can't figure out how to save the returned data as a file. HTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1") ;Create COM Object generatedURL := "https://gis.mapshare.vic.gov.au/arcgis/rest/services/mapshare/PropertyAndPa...
by grimboto
08 Sep 2019, 01:20
Forum: Ask For Help
Topic: Retrieving Elements Within a Frame
Replies: 19
Views: 1259

Re: Retrieving Elements Within a Frame

try adding parentWindow

Code: Select all

wb.document.parentWindow.frames["main"].document.getElementsByName("iw_board_deviceName")[0].value
by grimboto
10 Aug 2019, 03:13
Forum: Ask For Help
Topic: Help With IE COM Input box that has autocomplete results
Replies: 1
Views: 203

Help With IE COM Input box that has autocomplete results

Im trying to automate a website to look up address. it has a search box that when you type in it it lists suggested address in a list under the searchbox. im trying to retrieve the values that it suggests. the below code navigates to the website and sets a value in the search box but no suggestions ...
by grimboto
23 Jun 2019, 06:08
Forum: Ask For Help
Topic: Listen For CursorDown Event
Replies: 0
Views: 252

Listen For CursorDown Event

I'm using a stylus to draw on the screen using GDIP and there is a small delay between when the stylus touches the screen and the line starts drawing. After a bit of research i found the below article that describes the timeline of events when a stylus is used. https://docs.microsoft.com/en-us/windo...
by grimboto
27 Feb 2019, 19:38
Forum: Ask For Help
Topic: Help With Advanced MultImage Search Topic is solved
Replies: 2
Views: 398

Re: Help With Advanced MultImage Search Topic is solved

the below line is an expression so change it to whats below

Code: Select all

CenterImgSrchCoords(A_ScriptDir "\Imagens\Screen_L1" . var . ".png", FoundX, FoundY)
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: 821

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: 821

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: 1037

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: 436

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: 436

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: 512

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: 2367

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: 614

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: 614

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: 728

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: 272
Views: 56946

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: 504

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

Go to advanced search