Search found 137 matches

by p3trus
21 May 2017, 10:03
Forum: Ask For Help
Topic: COM Object: HTMLFile & querySelectorAll not working Topic is solved
Replies: 11
Views: 2271

Re: COM Object: HTMLFile & querySelectorAll not working Topic is solved

that really did the trick @jeeswg - thanks!
...simply writing <meta http-equiv="X-UA-Compatible" content="IE=edge"> to the document first :crazy:
by p3trus
21 May 2017, 08:25
Forum: Ask For Help
Topic: COM Object: HTMLFile & querySelectorAll not working Topic is solved
Replies: 11
Views: 2271

Re: COM Object: HTMLFile & querySelectorAll not working Topic is solved

thanks - but those linked posts are from 2009/2010, the info I had used is from late 2013.

So is ComObjCreate("InternetExplorer.Application") really preferable over the COMs I've used, does it make life easier for simple data extraction?
by p3trus
21 May 2017, 07:32
Forum: Ask For Help
Topic: COM Object: HTMLFile & querySelectorAll not working Topic is solved
Replies: 11
Views: 2271

COM Object: HTMLFile & querySelectorAll not working Topic is solved

Hi there, I just wanted to code a little script to get data from a website, using COM Objects. And I'm really confused: The examples in https://autohotkey.com/boards/viewtopic.php?p=398#p398 work fine, but the linked documentation has methods & properties which seem not to be supported - and on the ...
by p3trus
27 Apr 2017, 11:43
Forum: Ask For Help
Topic: 'extending' a subclass by a method? Topic is solved
Replies: 2
Views: 570

Re: 'extending' a subclass by a method? Topic is solved

Thanks alot!

I've been on the right track then - I just didn't use this as parameter for my custom function - since it's implicit when declaring a class method, I didn't think of making it explicit with that added function :oops:
Sometimes OOP is too OP for me :crazy: ;)
by p3trus
27 Apr 2017, 11:24
Forum: Ask For Help
Topic: 'extending' a subclass by a method? Topic is solved
Replies: 2
Views: 570

'extending' a subclass by a method? Topic is solved

Hi there, I just stumbled upon the question: Is there an easy way to 'extend' a class (by someone else) with a custom method? Something like class AAA { ...Methods() & Properties[]... class Sub_BBB { ... } class Sub_CCC extends AAA.Sub_BBB { Method_C1() {...} Method_C2() {...} MY_NEW_METHOD() { ; do...
by p3trus
25 Sep 2016, 21:05
Forum: Forum Issues
Topic: Search Broken
Replies: 2
Views: 1171

Re: Search Broken

...after being some weeks away from this board, I just noticed I also can't use the search function anymore - I'm always getting a [HTTP/2.0 500 Internal Server Error 43774ms] - tried several times, same error response after ~45secs. Using Firefox 49.0.1 on an up-to-date Win7 Also tried it in Chrome...
by p3trus
28 Aug 2016, 02:36
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 657
Views: 155791

Re: Suggestions on documentation improvements

Ok, I'll give up ;) (Although a poll would be interesting - how many users would see / guess the source for the error here: ) ; works | ; doesn't work | GetByClipboardCopy(){ | GetByClipboardCopy(){ _clipsave := ClipboardAll | _clipsave := ClipboardAll, Clipboard := "" Clipboard := "" | SendInput, ^...
by p3trus
28 Aug 2016, 02:02
Forum: Ask For Help
Topic: Loop each line and Replace contents
Replies: 3
Views: 520

Re: Loop each line and Replace contents

Most likely you don't need to parse the 'Contents' line by line; StrReplace() defaults to 'replace all occurences', so you only need your second function SearchAndReplace() In case you ever need to do it line by line: GetNewContents(Contents) { _temp_var := "" ; not really needed because it's automa...
by p3trus
28 Aug 2016, 01:34
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 657
Views: 155791

Re: Suggestions on documentation improvements

.. if the person in question knows from the start that ClipboardAll is the culprit, I totally agree with you. If the person in question only sees that his code works when using only single lines and fails as soon as he combines the assignments by commas, the person might look up the comma operator d...
by p3trus
28 Aug 2016, 00:44
Forum: Other Programming Languages
Topic: HidMacros
Replies: 1
Views: 4761

Re: HidMacros

Modifier keys can be added to your macros to simulate Ctrl+S for example. Please refer to the help file in HID Macros, it features a complete list of commands such as... + = Shift ^ = Control % = Alt & = Tab You can even program mouse movements. More info on this page http://www.hidmacros.eu/script...
by p3trus
27 Aug 2016, 21:50
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 657
Views: 155791

Re: Suggestions on documentation improvements

I think the Note on ClipboardAll not working with the comma operator should be mentioned in bold red letters in the comma operator's description, too.

effective_time -= comma_headache
by p3trus
27 Aug 2016, 21:01
Forum: Ask For Help
Topic: Read & Write Timestamp
Replies: 19
Views: 2664

Re: Read & Write Timestamp

Im new to AHK so those pages mean absolutely nothing to me thanks anyway. :wtf: You can either build a car, but have to learn about some mechanics, or buy a ready one *g* If theres one thing im actually not 100% on its the reading the timestamp and figuring out if 3960 hours has elapsed? Also not s...
by p3trus
27 Aug 2016, 20:26
Forum: Scripts and Functions
Topic: Speed up Google Chrome
Replies: 1
Views: 1693

Re: Speed up Google Chrome

@Q1: "Clear Browsing Data" is the default button of that dialog - - so you don't need to focus it. But you need ONE {Tab} to get the focus off the time range selectbox. In general - I've never read anything about the History Provider Cache and don't know if deleting it helps with speed. Regarding th...
by p3trus
27 Aug 2016, 12:40
Forum: Ask For Help
Topic: commend thats know if its red(all the kind of red) Topic is solved
Replies: 13
Views: 2272

Re: commend thats know if its red(all the kind of red) Topic is solved

the script you give me work but not for red. only for blue and purple .. i need it click only red(yellow and orange also good) not purple blue d'oh... :oops: :oops: :oops: Sorry, made up a wrong test func, confused RGB <> BGR myself :oops: use instead: isReddish(p_rgb_color){ ; split color: _r := (...
by p3trus
27 Aug 2016, 09:33
Forum: Ask For Help
Topic: commend thats know if its red(all the kind of red) Topic is solved
Replies: 13
Views: 2272

Re: commend thats know if its red(all the kind of red) Topic is solved

its still dont work for red ; define the following only once: CoordMode, Pixel, Screen isReddish(p_rgb_color){ ; split color: _r := p_rgb_color & 255 _g := (p_rgb_color >> 8) & 255 _b := (p_rgb_color >> 16) & 255 ; totally deliberate definition of reddish: red channel must be 1.5 times of the sum o...
by p3trus
27 Aug 2016, 09:17
Forum: Ask For Help
Topic: Have script check for text on web page?
Replies: 6
Views: 1473

Re: Have script check for text on web page?

Save that one, use an existing unique ID :)
> http://www.nextofwindows.com/the-best-w ... ws-machine
e.g. the last paragraph/ update: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography > MachineGuid
by p3trus
27 Aug 2016, 09:07
Forum: Scripts and Functions
Topic: Something cute I made after 3 days of AHK :)
Replies: 7
Views: 2149

Re: Something cute I made after 3 days of AHK :)

Aesthetic (Vaporwave Text, better known as Full Width characters) ... aesthetic .= (character == 0x3000) ? Chr(0x20) : "" ... Nice one! :thumbup: Is there any reason why you convert that 0x3000 IDEOGRAPHIC SPACE 'back', but never forth? (no aesthetic .= (character == 0x20) ? Chr(0x3000) : "" ) ...a...
by p3trus
26 Aug 2016, 21:02
Forum: Ich brauche Hilfe
Topic: Wie Ordner auf dem NAS öffnen? Topic is solved
Replies: 2
Views: 1085

Re: Wie Ordner auf dem NAS öffnen? Topic is solved

Wenn Benutzername & Passwort - sofern vorhanden - in Windoof hinterlegt sind, dann sollte ein einfaches Run, %A_WinDir%\explorer.exe "\\NAS\Share" reichen.
by p3trus
26 Aug 2016, 20:55
Forum: Ask For Help
Topic: Have script check for text on web page?
Replies: 6
Views: 1473

Re: Have script check for text on web page?

Enclusion wrote:...(Basically this is piracy protection for a HUGE script for a game. It took MANY HOURS to make sure everything is flawless and I don't want it being re-distrubuted)
Quite another question... but what would stop the pirate from commenting out that script part..?
by p3trus
26 Aug 2016, 19:57
Forum: Ask For Help
Topic: commend thats know if its red(all the kind of red) Topic is solved
Replies: 13
Views: 2272

Re: commend thats know if its red(all the kind of red) Topic is solved

what i need to put in color1 to make it only red .. can you help me and chang it for me please only red would be - 0x0000FF if you use PixelGetColor the way you do (BGR format) - 0xFF0000 if you use PixelGetColor with the additional , RGB parameter Otherwise you have to specify a custom function to...

Go to advanced search