Search found 373 matches

by lmstearn
10 Jan 2021, 09:08
Forum: Gaming
Topic: Need help With looping
Replies: 1
Views: 34

Re: Need help With looping

Without doing anything tricky with the sequence of Send and Sleep values, insert

Code: Select all

If not toggle
break
after each

Code: Select all

Send {X}
Sleep Y
by lmstearn
10 Jan 2021, 09:02
Forum: Gaming
Topic: File loop cant read variable?
Replies: 1
Views: 48

Re: File loop cant read variable?

Do you have the AddConf function returning a string? It looks like DirFile is just one character.
An alternative approach might be to to make SaveConf into an array of string filenames by

Code: Select all

SaveConf.Push(AddConf())
by lmstearn
08 Jan 2021, 10:10
Forum: Ask For Help
Topic: Get minimum window dimensions
Replies: 5
Views: 828

Re: Get minimum window dimensions

FWIW, had no luck with any of the MinTrackSize values. The window height will size to 2 pixels, and the width sizes to the menu bar height, as if they have the things round the wrong way. In any case, no values given it make any difference at all. Edit: Don't think It is a global setting by default-...
by lmstearn
08 Jan 2021, 06:51
Forum: Ask For Help
Topic: Changing Text Topic is solved
Replies: 8
Views: 157

Re: Changing Text Topic is solved

Just put this in the scripts folder here and the items in filelist showed up. Is something else required? #MaxThreadsPerHotkey 2 SetWorkingDir %A_ScriptDir% getplaylist: if(Toggle:=!Toggle) { Change := "Hide Playlist" GuiControl, 1:, CText, % Change Gui, 2:Submit,NoHide Gui, 2:New Gui, 2:color, 7734...
by lmstearn
08 Jan 2021, 03:26
Forum: Gaming
Topic: Text in in-game chat
Replies: 3
Views: 86

Re: Text in in-game chat

There's this related post plus a lot of general info over at The Automator.
Alternatively, have you tried something like FindText?
by lmstearn
07 Jan 2021, 07:39
Forum: Gaming
Topic: Text in in-game chat
Replies: 3
Views: 86

Re: Text in in-game chat

Should be able. Just use the spy utility to determine the control id, and then use ControlGetText to retrieve the text.
by lmstearn
05 Jan 2021, 01:22
Forum: Ask For Help
Topic: Cant get multi monitor working
Replies: 2
Views: 101

Re: Cant get multi monitor working

Hi Shanghei , and welcome to AHK! :) All the co-ordinates for the mouse-clicks have to be adjusted per monitor. Things will be much easier if they are all of the same resolution. Get dimensions for all monitors from this code and adjust. Other functions relating to monitors can be found from WinPadX...
by lmstearn
27 Dec 2020, 01:35
Forum: Ask For Help
Topic: looping and expressions
Replies: 4
Views: 93

Re: looping and expressions

Code: Select all

test := 2
loop, % test < 3 ? test : 0
soundbeep
Gives two beeps here, all else is as expected. Still works with test as a string:

Code: Select all

test := "4"
loop, % test < 3 ? test : 0
soundbeep
and also with

Code: Select all

test = 3
loop, % test < 3 ? test : 0
soundbeep
What's the version of AHK over there?
by lmstearn
26 Dec 2020, 21:41
Forum: Ask For Help
Topic: Chrome Closed after Complete Script
Replies: 3
Views: 56

Re: Chrome Closed after Complete Script

gregster wrote:
lmstearn wrote:
26 Dec 2020, 04:22
That's just caused by the forum's saftey features - new users can only post links to whilelisted websites. Other links will be mutilated like this.
Good to know, thanks.
by lmstearn
26 Dec 2020, 04:22
Forum: Ask For Help
Topic: Chrome Closed after Complete Script
Replies: 3
Views: 56

Re: Chorme Closed after Complete Script

Hi rizwan4season , does Driver.Start("chrome", "https www.EXAMPLE.COM /") ; Broken Link for safety make any difference? Otherwise, Chrome may treat that as some kind of command line argument. I would also place the Sleep before the try/catch: Loop { Sleep 500 driver.findElementByID("imgbtnLogin").cl...
by lmstearn
24 Dec 2020, 08:44
Forum: Offtopic
Topic: Thank you for the music
Replies: 204
Views: 113203

Re: Thank you for the music

Merry Festivus everyone!

Edit: And a happy NY, too! Leaning into this kind of stuff more and more as a result of approaching dotage. This is a classic, nevertheless!
by lmstearn
23 Dec 2020, 22:08
Forum: Other Utilities & Resources
Topic: Undoc'd
Replies: 0
Views: 102

Undoc'd

Although from some time back, some interesting and potentially useless functions to try out. http://undoc.airesoft.co.uk/index.php Want to freeze the registry ? Want Ghost from Hung ? Want a FrostCrashed Gui ? Never actually knew of the existence of CheckElevationEnabled, or any of its mysteries - w...
by lmstearn
22 Dec 2020, 07:41
Forum: Wish List
Topic: Allow built-in variables as default function parameters
Replies: 15
Views: 444

Re: Allow built-in variables as default function parameters

Would imagine it would be a tricky exercise for any compiler to do something like that, as variables aren't allowed as optional variables, unfortunately. Perhaps passing the variable directly in the caller be a reasonable alternative?

Code: Select all

debug(s,A_Linenumber)
...
...
debug(s,line)
{}
by lmstearn
22 Dec 2020, 04:19
Forum: Suggestions on documentation improvements
Topic: Per-Drive Default Directory
Replies: 3
Views: 113

Re: Per-Drive Default Directory

Yeah, that's the default flavour of the command processor. The internal commands PUSHD and POPD also have provision for handling one marvellous thing, the "current drive". And as noted here , the current directory holds no favour in UNC Paths. SS64 is actually a great resource for anything related t...
by lmstearn
13 Dec 2020, 23:36
Forum: Gaming
Topic: Sending keys to a background game?
Replies: 3
Views: 69

Re: Sending keys to a background game?

The controls may not be usable or even accessible when the game is minimized. To test, MouseGetPos,OutputVarX, OutputVarY, id, control msgbox % id " ," OutputVarX ", " OutputVarY The game may have code in it that puts everything in a wait state until it is in the foreground again. Another thing to t...
by lmstearn
13 Dec 2020, 22:47
Forum: Gaming
Topic: WinMaximize not working Topic is solved
Replies: 25
Views: 292

Re: WinMaximize not working Topic is solved

That's to be expected when the window is minimized. Imagine it to be something like a kuiper belt surrounding the virtual screen. :)
by lmstearn
13 Dec 2020, 09:16
Forum: Ask For Help
Topic: Run program as soon as Print dialog appears
Replies: 9
Views: 130

Re: Run program as soon as Print dialog appears

Or this?

Code: Select all

doneBat = 0
print:
if (doneBat){
WinWaitNotActive, <printer dialog title>
Sleep 300
Reload
}
WinWaitActive, <printer dialog title>
Run, my.bat
doneBat = 1
Goto, print
by lmstearn
13 Dec 2020, 09:01
Forum: Ask For Help
Topic: How to only take numbers ...
Replies: 10
Views: 174

Re: How to only take numbers ...

Is this all that's required, or something else?

Code: Select all

if(InStr(g, "ID 00")){
; Refer to previous answers in thread
}
by lmstearn
12 Dec 2020, 22:22
Forum: Ask For Help
Topic: How to only take numbers ...
Replies: 10
Views: 174

Re: How to only take numbers ...

Not sure if this is what you want. (At least this time, the script is tested) :P o := getLastChatMessage() p := getPlayerPingById(id) oOut := "" Loop, Parse, o { If A_LoopField is digit oOut .= A_LoopField } output := % "ID " . oOut . " Ping 100" if(InStr(g, "ID %D")){ SendInput t %output% {enter} }...
by lmstearn
12 Dec 2020, 08:03
Forum: Ask For Help
Topic: How to only take numbers ...
Replies: 10
Views: 174

Re: How to only take numbers ...

@Bobo, edited- your eyes are better than mine tonight it seems. :)

Go to advanced search