Search found 6899 matches

by jeeswg
26 Dec 2016, 17:53
Forum: Ask For Help
Topic: How to combine text of two seperate files in a new file
Replies: 25
Views: 6326

Re: How to combine text of two seperate files in a new file

@taghi_ar, cheers, I haven't really shared much code before the last few days, nice to get some good feedback! @garry, yeah I know over time I've learnt some useful tidbits, but if someone can catch me out on anything that can be further improved I would like that! FileReadLine was always said to be...
by jeeswg
26 Dec 2016, 12:05
Forum: Ask For Help
Topic: How to combine text of two seperate files in a new file
Replies: 25
Views: 6326

Re: How to combine text of two seperate files in a new file

Classic programming problem! Hopefully my script is pretty self-explanatory. vPath1 = %A_Desktop%\z my file 1.txt vPath2 = %A_Desktop%\z my file 2.txt FileRead, vText1, % vPath1 FileRead, vText2, % vPath2 vOutput := "" VarSetCapacity(vOutput, StrLen(vText1)*2+StrLen(vText2)*2) vIsV1 := !!SubStr(1,0)...
by jeeswg
26 Dec 2016, 08:47
Forum: Ask For Help
Topic: obs studio start and record
Replies: 7
Views: 6526

Re: obs studio start and record

One possibility, maybe this line requires 'DetectHiddenWindows, On'. IfWinNotExist, % "ahk_pid " errorlevel ; Expression for ahk_pid I wrote a script that did something similar, to start/stop OBS Studio recording, from within Internet Explorer. ;[Acc functions] ;Acc library (MSAA) and AccViewer down...
by jeeswg
26 Dec 2016, 00:13
Forum: Ask For Help
Topic: Internet Explorer: move tab to new window
Replies: 1
Views: 1286

Internet Explorer: move tab to new window

I wrote this script which moves the active tab to a separate Internet Explorer window. I just wondered if anybody else had tried something similar, or if there was a more direct, programmatic method to achieve this. It uses the Acc library. #IfWinActive, ahk_class IEFrame ;internet explorer ^m:: ;in...
by jeeswg
26 Dec 2016, 00:02
Forum: Ask For Help
Topic: AutoHotkey help file, caret browsing Topic is solved
Replies: 2
Views: 1219

AutoHotkey help file, caret browsing Topic is solved

Is caret browsing possible in HTML Help (hh.exe) (i.e. in AutoHotkey's help file)? (If not, one can copy the url to Internet Explorer and browse there, but it would be nice!) It would seem odd that IE and HTML Help both use the same types of controls, but caret browsing is possible in one and not th...
by jeeswg
24 Dec 2016, 17:45
Forum: Ask For Help
Topic: basic terminology: hotkey, thread Topic is solved
Replies: 2
Views: 1320

basic terminology: hotkey, thread Topic is solved

Code: Select all

;===============
q::
SendInput q
Return
;===============
w::
SendInput w
Return
;===============
how do you refer to 'q::', a hotkey line, a hotkey trigger, a hotkey trigger line?
how do you refer to the 3 lines from 'q::' to 'Return', a thread?

apologies for such a basic question!
by jeeswg
24 Dec 2016, 17:17
Forum: Ask For Help
Topic: Internet Explorer: get WB hWnds via object loop (+ do win objects have unique object IDs)
Replies: 14
Views: 5087

Re: Internet Explorer: get WB hWnds via object loop

When I want to retrieve the urls and titles for websites I do 2 loops. I loop through the 'Internet Explorer_Server' controls, and grab LocationName, LocationURL and the text from the 'Frame Tab' controls (as a check to confirm LocationName is correct). These are in the order last accessed, with the...
by jeeswg
24 Dec 2016, 15:44
Forum: Ask For Help
Topic: Internet Explorer: get WB hWnds via object loop (+ do win objects have unique object IDs)
Replies: 14
Views: 5087

Internet Explorer: get WB hWnds via object loop (+ do win objects have unique object IDs)

If one does a for loop. for oWB in ComObjCreate("Shell.Application").Windows Can one retrieve the hWnds for the 'Internet Explorer_Server' controls? Thank you. [EDIT:] This issue is resolved here: Cast COM Object IWebBrowser2 to IServiceProvider - AutoHotkey Community https://autohotkey.com/boards/v...
by jeeswg
24 Dec 2016, 08:29
Forum: Offtopic
Topic: opinions on Stack Overflow
Replies: 65
Views: 20010

opinions on Stack Overflow

I would be interested in anything anyone has to say about Stack Overflow, other Stack Exchanges, or similar sites.
by jeeswg
23 Dec 2016, 15:34
Forum: Ask For Help
Topic: Why is the leading white space of the first line removed ?
Replies: 4
Views: 990

Re: Why is the leading white space of the first line removed ?

I only finally figured this out yesterday, after going through my AHK queries text file, I was going to report it as a bug, but did some double-checking on the forums to be sure: 'why is leading whitespace in a (non-expression) continuation section removed?' I found: Continuation sections, left tabs...
by jeeswg
23 Dec 2016, 09:12
Forum: Ask For Help
Topic: detect unresponsive scripts
Replies: 12
Views: 3281

Re: detect unresponsive scripts

Hmm well I usually have about 17 scripts running simultaneously, so I don't know if I should make them all high priority. Let's say all that was running was AHK scripts and Google Chrome, would making Google Chrome high priority, keep it happy and actually help prevent it from crashing the AHK scrip...
by jeeswg
23 Dec 2016, 05:53
Forum: Ask For Help
Topic: detect unresponsive scripts
Replies: 12
Views: 3281

Re: detect unresponsive scripts

whew, thought it might, but I've learnt never to assume with computers
by jeeswg
23 Dec 2016, 05:50
Forum: Ask For Help
Topic: detect unresponsive scripts
Replies: 12
Views: 3281

Re: detect unresponsive scripts

@Nextron thanks very much for the points and for the link, - checking for a menu item tick to establish paused/suspended status, very good, I was wanting a way to do that! - and a menu loop to jog (update) the menu, I was wondering about that too! - furthermore retrieving information from the menus ...
by jeeswg
23 Dec 2016, 05:41
Forum: Ask For Help
Topic: detect unresponsive scripts
Replies: 12
Views: 3281

Re: detect unresponsive scripts

@Helgef this is interesting information thank you, glad I asked (if it's of any relevance, I only use #IfWinActive, and not #If expressions, 32-bit v1.1.16.05, on 64-bit Windows 7) will try, next time my scripts get disrupted: DetectHiddenWindows, On WinGet, hWnd, ID, %vPath% - AutoHotkey v ahk_clas...
by jeeswg
23 Dec 2016, 02:17
Forum: Ask For Help
Topic: best way to truncate string Topic is solved
Replies: 1
Views: 1016

best way to truncate string Topic is solved

I want to create a function called 'StrTruncate' e.g. StrTruncate(ByRef vText, vLenNew) what is the best way to truncate a string? StringTrimRight, will be phased out SubStr VarSetCapacity, potentially reduces the var capacity affecting future text append insert a null character some other way? than...
by jeeswg
23 Dec 2016, 02:06
Forum: Ask For Help
Topic: detect unresponsive scripts
Replies: 12
Views: 3281

detect unresponsive scripts

every so often, probably due to heavy CPU usage by another program, all of my hotkeys/hotstrings fail to work, especially on a low-spec netbook, (a) I could kill all the processes and reopen, (b) I could reload all the processes, wait, and kill/reopen the ones that hadn't reloaded, - both approaches...
by jeeswg
20 Dec 2016, 11:53
Forum: Ask For Help
Topic: GUI COMMANDS: COMPLETE RETHINK
Replies: 40
Views: 13741

Re: GUI COMMANDS: COMPLETE RETHINK

@just me - it is true that many of the problems relate to AutoHotkey Basic, however I think the rationale was right, quick and easy commands for most everyday purposes and beginners - the key problem is the lack of a critical mass of people taking the flexible custom-function approach over the awkwa...
by jeeswg
20 Dec 2016, 11:28
Forum: Ask For Help
Topic: GUI COMMANDS: COMPLETE RETHINK
Replies: 40
Views: 13741

Re: GUI COMMANDS: COMPLETE RETHINK

- thank you very much guest3456, I didn't know about these, I will see if there is some useful code there (i.e. rewrites of the AHK GUI source code in function form) - I do not use objects in any of my GUI functions, I want them to be as short and low-level as possible - I favour the 'small governme...
by jeeswg
20 Dec 2016, 10:39
Forum: Ask For Help
Topic: GUI COMMANDS: COMPLETE RETHINK
Replies: 40
Views: 13741

GUI COMMANDS: COMPLETE RETHINK

GUI COMMANDS: COMPLETE RETHINK tl;dr do everything GUI via custom functions (1) I've already created about 100 functions (2) issues with MsgBox / InputBox / ToolTip (e.g. font size, background colour, countdown, beep, word wrap, ampersands, text dimension calculations via DrawTextEx) (3) AutoHotkey ...

Go to advanced search