Search found 1274 matches

by TLM
10 Nov 2018, 15:27
Forum: Ask For Help
Topic: Question about using WinSet
Replies: 1
Views: 217

Re: Question about using WinSet

codude wrote:
10 Nov 2018, 10:12
...I experimented with “WinSet, Bottom” but it only seemed to work when it was applied to a window that was currently active...
Please post the line of code in question in [code][/code] or [c][/c] tags.
by TLM
09 Nov 2018, 13:55
Forum: Ask For Help
Topic: Mouse Move Left Send K, Mouse Move Left Send H Topic is solved
Replies: 4
Views: 522

Re: Mouse Move Left Send K, Mouse Move Left Send H Topic is solved

I sometimes use this `magic` to push values an updating value to an array with 2 keys in a loop: xPosArr[ mod( a_index-1, 2 )+1 ]
key 1 being the current value and key 2 being the previous value.

Here it is applied to your question ( on line 12 ):
by TLM
09 Nov 2018, 10:14
Forum: Ask For Help
Topic: Excel COM - pull variable from other function variable??
Replies: 2
Views: 326

Re: Excel COM - pull variable from other function variable??

Just trying to figure out how to make it so if someone wants to save their Excel Workbook as Macro-enabled.... You're really close Xl.ActiveWorkbook.Saveas(FileName := fileToSave, FileFormat := 52) 52 is for an Open XML Workbook Macro Enabled ( xlOpenXMLWorkbookMacroEnabled ) 53 is for an Open XML ...
by TLM
09 Nov 2018, 09:51
Forum: Ask For Help
Topic: PixelSearch search area always finds colour
Replies: 9
Views: 826

Re: PixelSearch search area always finds colour

Rlentless wrote:
09 Nov 2018, 09:40
....so far it works great
Ok sounds good.

FYI, your while loop was incorrect
by TLM
09 Nov 2018, 09:14
Forum: Ask For Help
Topic: PixelSearch search area always finds colour
Replies: 9
Views: 826

Re: PixelSearch search area always finds colour

sorry for the delay, any progress? this could be your problem While(Stop=0) 786, 33 1096, 70
by TLM
09 Nov 2018, 09:10
Forum: Offtopic
Topic: « What's on your mind? »
Replies: 4202
Views: 684135

Re: « What's on your mind? »

benchmark friday,
benchmark friday,
benchmark friday YAHH

Google says ‘Dark Mode’ helps save considerably more battery life
Image
by TLM
07 Nov 2018, 09:55
Forum: Ask For Help
Topic: Detect screen brightness changes in Windows 10 Topic is solved
Replies: 4
Views: 783

Re: Detect screen brightness changes in Windows 10 Topic is solved

Image
:D now if I could just remember how to init context,
in-class command calls would be more elegant lol
by TLM
06 Nov 2018, 20:21
Forum: Ask For Help
Topic: Is it possible to use RegEx Delimiters with LoopParse or StrSplit()/StringSplit?
Replies: 5
Views: 428

Re: Is it possible to use RegEx Delimiters with LoopParse or StrSplit()/StringSplit?

Is it possible to use RegEx Delimiters with LoopParse or StrSplit()/StringSplit? Not directly with those functions and or commands but you can parse a string with a RegEx loop Colors := "red,green,blue, ,_ ,_ ,blue," While Pos:=RegExMatch( Colors, "(?<match>\w+)`,", _, !Pos?1:(StrLen(_)+Pos)) msgbo...
by TLM
06 Nov 2018, 18:27
Forum: Ask For Help
Topic: PixelSearch search area always finds colour
Replies: 9
Views: 826

Re: PixelSearch search area always finds colour

I honestly rarely use pixel commands. I have run into problems detecting correct colors when AERO and or DWM is running.
What's your underlying goal? Is there perhaps a more reliable way for you to achieve it? Lemmi know..
by TLM
06 Nov 2018, 15:40
Forum: Ask For Help
Topic: Detect screen brightness changes in Windows 10 Topic is solved
Replies: 4
Views: 783

Re: Detect screen brightness changes in Windows 10 Topic is solved

This modified version of my WMI eventhandler works for me:
The added bonus is you can return property values for things like brightness e.g.tooltip % eventObj.Brightness

Even better, wrapped to class
by TLM
06 Nov 2018, 14:56
Forum: Ask For Help
Topic: GUI does not immediately reacts during a loop.
Replies: 3
Views: 348

Re: GUI does not immediately reacts during a loop.

Try throwing a function call to the gui from inside the conditional statement

Code: Select all

   Loop
        {
        if A_SEC =30
          break
        else 
                {
                  GuiCall( "params" ) ; pseudo function call
                  sleep, 800
                } 
          }
hth
by TLM
06 Nov 2018, 10:26
Forum: Ask For Help
Topic: While loop not looping Topic is solved
Replies: 3
Views: 334

Re: While loop not looping Topic is solved

MsgBox, % a, b, c, x (But I never use that style) Your expression is incorrect. In this case, it's better to not use expression mode as you'd be left with: msgbox % "a, b, c, x" , msgbox % "a, " "b, " "c, " "x" or something else similarly horrid. Please only respond if you feel you can provide an a...
by TLM
06 Nov 2018, 10:04
Forum: Ask For Help
Topic: PixelSearch search area always finds colour
Replies: 9
Views: 826

Re: PixelSearch search area always finds colour

Sometimes designating a Coordmode can fix issues like this. For example before the PixelSearch command try: CoordMode, Pixel, Screen
For more info please see the documentation.
by TLM
28 Aug 2018, 08:33
Forum: Offtopic
Topic: « What's on your mind? »
Replies: 4202
Views: 684135

Re: « What's on your mind? »

....wut did i learn this summer :think:
by TLM
02 Aug 2018, 15:25
Forum: Ask For Help
Topic: Copy / paste from Excel to multiple fields in browser
Replies: 5
Views: 759

Re: Copy / paste from Excel to multiple fields in browser

Hi there, yes It's exactly what ahk is designed to do. The Excel part is easy. Does it matter which browser you use?
You should register too :)
by TLM
02 Aug 2018, 15:12
Forum: Ask For Help
Topic: SplashText Detect If Clicked
Replies: 1
Views: 248

Re: SplashText Detect If Clicked

I'd say go with a GUI
by TLM
02 Aug 2018, 14:06
Forum: Ask For Help
Topic: How to jump in a for loop Topic is solved
Replies: 3
Views: 409

Re: How to jump in a for loop Topic is solved

Straight forward approach:

Code: Select all

Data := [["a",10], ["b",20], ["c",30], ["d",40]]

Loop % Data.Length()-2
{
	Count := A_Index
	for k, n in Data
	{
		if ( k >= Count ) 
		msgbox % "name - " n[1] " / value" n[2]	"`n"
	}
}
by TLM
02 Aug 2018, 13:52
Forum: Ask For Help
Topic: WMP COM Help Topic is solved
Replies: 2
Views: 381

Re: WMP COM Help Topic is solved

You have to point to the correct object. Change this Mbut1: wmp := ComObjCreate("WMPlayer.OCX") FileSelectFile, file, 2,, Select WMP Compatable File: wmp.url := file ; points to the OCX object wmp return to this Mbut1: FileSelectFile, file, 2,, Select WMP Compatable File: WMP1.url := file ; points t...

Go to advanced search