Search found 1279 matches

by Blackholyman
04 Oct 2019, 06:57
Forum: Ask For Help
Topic: pixelgetcolor to variable
Replies: 2
Views: 141

Re: pixelgetcolor to variable

PixelGetColor Is a command not a function

A command like that has the return as the first parameter

So in your posted code the variable color holds the returned color from 900,400
by Blackholyman
01 Oct 2019, 06:58
Forum: Ask For Help
Topic: Pasting strings does not always work
Replies: 16
Views: 538

Re: Pasting strings does not always work

adding sleep after the key input send ^v Seems to always work, as the other parts of the code is controlled, only how long the program that gets the ctrl+v takes to process that input is unknown so a sleep there is the best option ^+F6:: ClipSaved := ClipboardAll Clipboard := "Some line of text to b...
by Blackholyman
01 Oct 2019, 05:48
Forum: Ask For Help
Topic: Interacting with IE with COM Interface and Java Script
Replies: 24
Views: 1020

Re: Interacting with IE with COM Interface and Java Script

What part of what i said was not part of fixing your issue?

You can not interact with the element without waiting -> not doing so will make your code fail

You need to act on the frame’s document -> in your case .contentDocument worked

But great you made it work...
by Blackholyman
30 Sep 2019, 04:36
Forum: Ask For Help
Topic: Interacting with IE with COM Interface and Java Script
Replies: 24
Views: 1020

Re: Interacting with IE with COM Interface and Java Script

Why i asked for all your code was that in one of your images you had sleep between the navigate and the element interaction but in your 4 lines of code you do not after a navigate event you have to wait for the document your navigating to load before trying to interact with any elements on the new d...
by Blackholyman
27 Sep 2019, 02:51
Forum: Ask For Help
Topic: Interacting with IE with COM Interface and Java Script
Replies: 24
Views: 1020

Re: Interacting with IE with COM Interface and Java Script

Script issues are easier to help with if we see all of your code and if we have access to the thing giving you issues in your case one line is most likely not the only part of the problem so maybe post more of your script, also without access to your page with the framed elements it is harder to giv...
by Blackholyman
05 Sep 2019, 07:24
Forum: Ask For Help
Topic: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInternal'
Replies: 6
Views: 493

Re: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInter

I did continue chipping away at this... and have made a version that works on my windows 10 build 1607 This is able to send a view/window of it's own process (AHK GUI) or of another process (tested with Notepad) to another virtual desktop #Persistent #SingleInstance, force #NoEnv ; Recommended for p...
by Blackholyman
02 Sep 2019, 04:52
Forum: Ask For Help
Topic: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInternal'
Replies: 6
Views: 493

Re: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInter

Thank you both for helping me with this #SingleInstance, force ; create a new virtual desktop with ctrl + win + d Gui, new, +hwndhwnd Gui, add, text,, let us try and move this window to another virtual desktop Gui, add, button, w100, Ok Gui, show return Cancel: ExitApp return buttonok: ; IVirtualDes...
by Blackholyman
02 Sep 2019, 02:00
Forum: Ask For Help
Topic: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInternal'
Replies: 6
Views: 493

Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInternal'

Hi, I'm trying to move a top level window to another virtual desktop without switching virtual desktop (not to easy it seems) examples: ( VirtualDesktop.ps1 ) ( VirtualDesktop is C# wrapper for IVirtualDesktopManager on Windows 10. ) after finding those two examples above i continued searching the i...
by Blackholyman
08 Aug 2019, 05:13
Forum: Gaming
Topic: Problem With Code Pixel Color
Replies: 2
Views: 327

Re: Problem With Code Pixel Color

know that pixelgetcolor store the color ID in hexadecimal blue-green-red (BGR) format

your color id 0x7D7DFF
Spoiler
so you need to make sure that your hex color is in the same format (BGR or RGB)
by Blackholyman
09 Nov 2018, 13:09
Forum: Ask For Help
Topic: PixelSearch search area always finds colour
Replies: 9
Views: 967

Re: PixelSearch search area always finds colour

The number you are searching for is the wrong format

It needs to be a hex or decimal number, so you are missing 0x to make your color id a hexidecimal number
by Blackholyman
17 Oct 2018, 00:49
Forum: Ask For Help
Topic: Excel COM SaveAs with variable for name - XL.ActiveWorkbook.SaveAs("C:\" variable ".xlsx" not working
Replies: 3
Views: 515

Re: Excel COM SaveAs with variable for name - XL.ActiveWorkbook.SaveAs("C:\" variable ".xlsx" not working

first thing i see is that you have : in the time stamp so the string in the variable has a char that can't be used in a file name
by Blackholyman
25 Sep 2018, 07:49
Forum: Ask For Help
Topic: Using millions of hotstrings any tips?
Replies: 7
Views: 927

Re: Using millions of hotstrings any tips?

Example: #Persistent #SingleInstance force Hotstring("(\/242)(\+|\-)?(\d+)(\+|\-)(\d+) ", "function", 3, false) Return ;~ /2420+12 = 1/24*12+Input*+1/24*12 ;~ /242+1+12 = 1/24*13+Input*+1/24*12 ;~ /242+2+9 = 1/24*14+Input*+1/24*9 ;~ /242+5+6 = 1/24*17+Input*+1/24*6 ;~ /242-2+9 = 1/24*10+Input*+1/24*...
by Blackholyman
25 Sep 2018, 06:29
Forum: Ask For Help
Topic: copy the selection from webpage and pasting in excel Topic is solved
Replies: 12
Views: 1519

Re: copy the selection from webpage and pasting in excel Topic is solved

yes it is, but without knowing almost exactly what and from where its hard to give examples that you can use

note: when using ClipWait remember to clear out the clipboard before, else it will not work correctly
by Blackholyman
14 Sep 2018, 07:29
Forum: Ask For Help
Topic: Portable AHK version?
Replies: 2
Views: 400

Re: Portable AHK version?

ahk is portable as is, you can just get the zip version https://autohotkey.com/download/ahk.zip
by Blackholyman
14 Sep 2018, 02:07
Forum: Offtopic
Topic: Answer a question, ask a question
Replies: 12
Views: 1939

Re: Answer a question, ask a question

CloakerSmoker wrote:Q: What's going on?
A: Life

Q: what's the answer to life the universe and everything?
by Blackholyman
14 May 2018, 07:09
Forum: Ask For Help
Topic: Web scraping using IE - problem when the index number of a element changes Topic is solved
Replies: 6
Views: 864

Re: Web scraping using IE - problem when the index number of a element changes Topic is solved

if you look at my code example i find the element (a button) with the className "like-button-renderer-like-button", and store a ref to it in the variable likeButtonIconElement then in the next line i go out from that element and use parentNode to get to its parent element in this case a span with a ...
by Blackholyman
14 May 2018, 05:47
Forum: Ask For Help
Topic: Web scraping using IE - problem when the index number of a element changes Topic is solved
Replies: 6
Views: 864

Re: Web scraping using IE - problem when the index number of a element changes Topic is solved

one way is to find an element that has something unique like an id or some class text unique to that element and work out from that... Example: wb := ComObjCreate("InternetExplorer.Application") wb.Visible := False wb.Navigate("https://www.youtube.com/watch?v=CYpcK0tDU58") while wb.ReadyState != 4 s...
by Blackholyman
08 Mar 2018, 02:34
Forum: Ask For Help
Topic: Need help with pixel detection reaction
Replies: 8
Views: 1132

Re: Need help with pixel detection reaction

also to what @BoBo said there is a VLC http interface that lets you control and grab info about the currently playing video https://autohotkey.com/board/topic/83886-vlc-http-2-interface-library-for-lastest-vlc-media-player/ one idea is to check every two seconds if the current elapsed time of the cu...
by Blackholyman
07 Mar 2018, 03:07
Forum: Ask For Help
Topic: Need help with pixel detection reaction
Replies: 8
Views: 1132

Re: Need help with pixel detection reaction

to keep the script running https://autohotkey.com/docs/commands/_Persistent.htm how about using a timer insted og your while loop? https://autohotkey.com/docs/commands/SetTimer.htm something like this SetTimer, checkVlcpixel, 250 return checkVlcpixel: if (GetColor(thisColor) != GetColor(thatColor)) ...
by Blackholyman
15 Feb 2018, 02:09
Forum: Ask For Help
Topic: Excel COM Insert (and Delete) Methods
Replies: 4
Views: 976

Re: Excel COM Insert (and Delete) Methods

yeah you need to use the value of the constants not the string name of them in AHK, most just do like jeewg showed but that is just for human readablity you only need .Insert(-4121)


look under point 5 here https://autohotkey.com/boards/viewtopic.php?t=8978

Go to advanced search