Search found 17 matches
- 17 Feb 2023, 07:09
- Forum: Ask for Help (v1)
- Topic: Parsing ffprobe json output Topic is solved
- Replies: 1
- Views: 327
Parsing ffprobe json output Topic is solved
Hello, have script like this: cmd = %ComSpec% /q /c ffprobe -v quiet -print_format json -show_format -show_streams "%movpath%" json := ComObjCreate("WScript.Shell").Exec(cmd).StdOut.ReadAll() fin := Jxon_Load(json) msgbox %fin% Get json output/variable like: https://gist.githubusercontent.com/nrk/22...
- 17 Dec 2016, 14:05
- Forum: Ask for Help (v1)
- Topic: Wait till previous ahk instance (of single script) is finished Topic is solved
- Replies: 6
- Views: 2949
Re: Wait till previous ahk instance (of single script) is finished Topic is solved
Thank you for reminding me that all ahk scripts have windows ;-) While keeping this in mind I was able to come with this: #SingleInstance, off SetTitleMatchMode,2 DetectHiddenWindows, On WinGet, this, id, usbrun.ahk - AutoHotkey loop { WinGet, last, idlast, usbrun.ahk - AutoHotkey if this = %last% b...
- 17 Dec 2016, 05:08
- Forum: Ask for Help (v1)
- Topic: Wait till previous ahk instance (of single script) is finished Topic is solved
- Replies: 6
- Views: 2949
Re: Wait till previous ahk instance (of single script) is finished Topic is solved
Ideally, I would need something like #SingleInstance wait -> The word WAIT skips the dialog box and leaves the old instance running. The new one (first from the queue) will start as soon as previously started one is finished. Since there is nothing like this I hope there is at least some elegant wor...
- 17 Dec 2016, 04:58
- Forum: Ask for Help (v1)
- Topic: Wait till previous ahk instance (of single script) is finished Topic is solved
- Replies: 6
- Views: 2949
Re: Wait till previous ahk instance (of single script) is finished Topic is solved
Thank you for your reply. Unfortunately, this is not it. I just tried. Even if I add say usbrun2.ahk with only one line (runwait, c:\usbrun.ahk) to the USB Drive Letter Manager it will not prevent multiple instances of usbrun.ahk from starting sooner that all previously started ones are finished.
- 16 Dec 2016, 21:12
- Forum: Ask for Help (v1)
- Topic: Wait till previous ahk instance (of single script) is finished Topic is solved
- Replies: 6
- Views: 2949
Re: Wait till previous ahk instance (of single script) is finished Topic is solved
In other words I am looking for something like WaitTillAllPreviouslyStartedInstancesOfThisScriptAreFinished command
To paste it in the first line...
To paste it in the first line...
- 16 Dec 2016, 14:58
- Forum: Ask for Help (v1)
- Topic: Wait till previous ahk instance (of single script) is finished Topic is solved
- Replies: 6
- Views: 2949
Wait till previous ahk instance (of single script) is finished Topic is solved
Hello, I use USB Drive Letter Manager for Windows (http://www.uwe-sieber.de/usbdlm_e.html) which allows me to run ahk script (lets say usbrun.ahk) whenever is any usb drive successfully mounted. Is there any easy way how to make second instance wait for the first to finish, third instance wait for t...
- 27 Oct 2016, 17:25
- Forum: Ask for Help (v1)
- Topic: Changing value in xml file Topic is solved
- Replies: 5
- Views: 1857
Re: Changing value in xml file Topic is solved
Thank you.
- 25 Oct 2016, 06:39
- Forum: Ask for Help (v1)
- Topic: Changing value in xml file Topic is solved
- Replies: 5
- Views: 1857
Changing value in xml file Topic is solved
I would like to ask how can I replace bgColor="999999" with a new value (for example ffffff) using AHK. Line is: <WidgetStyle name="Global override" styleID="0" fgColor="000000" bgColor="999999" fontName="Courier New" fontStyle="0" fontSize="12" /> Whole xml file: <?xml version="1.0" encoding="Windo...
- 18 Sep 2016, 11:01
- Forum: Ask for Help (v1)
- Topic: List of files to best fit DVD size
- Replies: 5
- Views: 1819
Re: List of files to best fit DVD size
The function as SizeMe does is pretty simple to implement into any script, for instant a VBScript: dim oFS, oFolder set oFS = WScript.CreateObject("Scripting.FileSystemObject") set oFolder = oFS.GetFolder("c:\") ShowFolderDetails oFolder sub ShowFolderDetails(oF) dim F wscript.echo oF.Name & ":Size=...
- 18 Sep 2016, 07:27
- Forum: Ask for Help (v1)
- Topic: List of files to best fit DVD size
- Replies: 5
- Views: 1819
Re: List of files to best fit DVD size
Thank you for your replies. size of the destination media must be accounted for Yes, I know: SetBatchLines, -1 ; Make the operation run at maximum speed. FolderSizeKB = 0 WhichFolder = ... Loop, %WhichFolder%\*.*, , 1 FolderSizeKB += %A_LoopFileSizeKB% ... if FolderSizeKB < 4590208 { runwait, ...\bu...
- 18 Sep 2016, 03:10
- Forum: Ask for Help (v1)
- Topic: List of files to best fit DVD size
- Replies: 5
- Views: 1819
List of files to best fit DVD size
Hello, I use app SizeMe (http://lars.werner.no/?page_id=2) to scan a directory and compare it to how many floppy/zip/CD-R/DVD-discs I need. (Many calls it spanning or span of elements over a medium). It tries to fill each disc up as much as possible, and gives me the result on each disc. I was wonde...
- 04 Mar 2016, 03:38
- Forum: Scripts and Functions (v1)
- Topic: AHK integration of KeePass and IMacros
- Replies: 0
- Views: 2907
AHK integration of KeePass and IMacros
AHK integration of KeePass and IMacros Until imacros is integrated with keefox/keepass somehow I came up with simple solution bellow. Maybe it will be useful for you. See also: https://zohodiscussions.com/keefox#Topic/71684000000869005 https://sourceforge.net/p/keepass/discussion/329220/thread/0554...
- 22 Jan 2016, 05:49
- Forum: Ask for Help (v1)
- Topic: Custom sort
- Replies: 2
- Views: 1109
Re: Custom sort
It seems that I managed to find a way. I will reply again should it proves otherwise. Thank you.
- 21 Jan 2016, 04:38
- Forum: Ask for Help (v1)
- Topic: Custom sort
- Replies: 2
- Views: 1109
Custom sort
Hello, I have a variable. Lets say three lines. And I want sort those lines according to first X characters in each line. How do I please do that using AHK? It would be also nice to have more general way of sorting. It means to be able to pick string inside each line starting at position X and endin...
- 08 Jun 2015, 13:15
- Forum: Scripts and Functions (v1)
- Topic: Remove letter accents in a string (function)
- Replies: 11
- Views: 23403
Re: Remove letter accents in a string (function)
See another example of usage here: http://ahkscript.org/boards/viewtopic.p ... 284#p47284
- 08 Jun 2015, 03:22
- Forum: Scripts and Functions (v1)
- Topic: [library] TF: Text files & Variables (strings) v3.8
- Replies: 61
- Views: 38100
Re: [library] TF: Text files & Variables (strings) v3.5
I managed to do it by myself in the end -> http://ahkscript.org/boards/viewtopic.php?f=6&t=8089
Thanks.
Thanks.
- 08 Jun 2015, 03:10
- Forum: Scripts and Functions (v1)
- Topic: Remove letter accents in a string (function)
- Replies: 11
- Views: 23403
Remove letter accents in a string (function)
RemoveLetterAccents( text ) Supported letters/accents are (297 in total): ÁáÀàÂâǍǎĂăÃãẢảẠạÄäÅåĀāĄąẤấẦầẪẫẨẩẬậẮắẰằẴẵẲẳẶặǺǻĆćĈĉČčĊċÇçĎďĐđÐÉéÈèÊêĚěĔĕẼẽẺẻĖėËëĒēĘęẾếỀềỄễỂểẸẹỆệĞğĜĝĠġĢģĤĥĦħÍíÌìĬĭÎîǏǐÏïĨĩĮįĪīỈỉỊịĴĵĶķĹ弾ĻļŁłĿŀŃńŇňÑñŅņÓóÒòŎŏÔôỐốỒồỖỗỔổǑǒÖöŐőÕõØøǾǿŌōỎỏƠơỚớỜờỠỡỞởỢợỌọỘộṔṕṖṗŔŕŘřŖŗŚśŜŝŠšŞşŤťŢţŦŧÚú...