Search found 31 matches

by drawback
07 Jan 2017, 12:46
Forum: Ask For Help
Topic: Capture streaming cli output?
Replies: 2
Views: 264

Capture streaming cli output?

Hi, is it possible to read in the output line after line that a cli program creates (e.g. in a command prompt)? In this particular case I'd like to capture the output of rsync.exe (but not when it's finished but with every new line that it spits out) and display it in e.g. an edit field in a gui... ...
by drawback
25 Oct 2016, 07:28
Forum: Ask For Help
Topic: RegExReplace simple question
Replies: 2
Views: 294

Re: RegExReplace simple question

or {<x>}$ where <x> is an integer -> in your case {3}$
or if you want to ignore the comma and anything behind it e.g.:

Code: Select all

one := "1.532.245,33"
RegExMatch(one, "^[0-9.]+", two)
msgbox, % two
by drawback
22 Oct 2016, 08:59
Forum: Ask For Help
Topic: Icon in taskbar(toolbar)
Replies: 11
Views: 1033

Re: Icon in taskbar(toolbar)

Code: Select all

#Include TrayIcon.ahk

trayIcons := TrayIcon_GetInfo()

Loop, % trayIcons.MaxIndex()
	if (trayIcons[A_Index].process = "skype.exe")
		TrayIcon_Remove(trayIcons[A_Index].hwnd, trayIcons[A_Index].uid)

by drawback
20 Oct 2016, 15:07
Forum: Ask For Help
Topic: Regex help...
Replies: 8
Views: 713

Re: Regex help...

@ahcahc
Thanks a lot, works!

@HelgeF
Very... evil! :)
by drawback
20 Oct 2016, 13:59
Forum: Ask For Help
Topic: Regex help...
Replies: 8
Views: 713

Re: Regex help...

@evilC: Thank you!, but I guess I didn't describe it correctly :( This string can consist of any combination (and numbers!) of serial number / volume label / drive letter :\ [<path with ; in it] So these would be all "valid" strings that could occur: EED6-5BA8:\Us;e;rs;D:\Test;Storage:\A;B;C\ Storag...
by drawback
20 Oct 2016, 12:35
Forum: Ask For Help
Topic: Regex help...
Replies: 8
Views: 713

Re: Regex help...

Could be quite difficult due to the different ways in which semicolon is used (Both as a field separator and a folder separator - how can it tell the difference?) The difference should be solvable by a positive lookahead (at least that was my plan...) Does EED6-5BA8:\Us;e;rs vary? Ofc. It could be ...
by drawback
20 Oct 2016, 12:09
Forum: Ask For Help
Topic: Regex help...
Replies: 8
Views: 713

Regex help...

Hi, I have the following string: EED6-5BA8:\Us;e;rs;D:\Test;Storage:\A;B;C\ I know how to loop over it via RegExMatch but I need a bit of help to define the actual regex pattern... The string consists of three paths: 1.) EED6-5BA8:\Us;e;rs -> Drive serial number + folder with semicolons in it 2.) D:...
by drawback
20 Oct 2016, 05:57
Forum: Ask For Help
Topic: water-tight window activating sequence?
Replies: 1
Views: 274

Re: water-tight window activating sequence?

RunWait?
It waits until that program was quit!

Use WinWait instead of Sleep
by drawback
18 Oct 2016, 17:44
Forum: Ask For Help
Topic: Navigate Microsoft Management Console?
Replies: 0
Views: 328

Navigate Microsoft Management Console?

Hi, isn't it possible to navigate gpedit.msc (a MM console)? It has a SysListView321 on it's left side but I can't get any row text from it (with ControlGetText, var, List, , SysListView321, Editor für lokale Gruppenrichtlinien)... I'd really like to automate setting some group policies (which don't...
by drawback
14 Oct 2016, 17:37
Forum: Ask For Help
Topic: [SOLVED] Convert string to raw binary data?
Replies: 14
Views: 3474

Re: [SOLVED] Convert string to raw binary data?

@jNizM

Is there a way to get the unicode string back from the hex values (with a function like hex2str(hexValue)) after using str2hex("some unicode characters")?
by drawback
12 Oct 2016, 14:12
Forum: Scripts and Functions
Topic: AutoXYWH() - Move control automatically when GUI resized
Replies: 100
Views: 40630

Re: AutoXYWH() - Move control automatically when GUI resized

Are there any license restrictions (for using it in a commercial application) for this one?
by drawback
09 Oct 2016, 04:05
Forum: Ask For Help
Topic: Combination of GetKeyStates() -> Derive characters from it? Topic is solved
Replies: 3
Views: 366

Combination of GetKeyStates() -> Derive characters from it? Topic is solved

Hi, shiftState := GetKeyState("Shift", "P") ? 1 : 0 ctrlState := GetKeyState("Ctrl", "P") ? 2 : 0 altState := GetKeyState("Alt", "P") ? 4 : 0 lWinState := GetKeyState("LWin", "P") ? 8 : 0 state := ctrlState + shiftState + altState + lWinState Is there a good way to get the corresponding modifier (^,...
by drawback
07 Oct 2016, 13:45
Forum: Ask For Help
Topic: OnMessage - Receive WM_LBUTTONDOWN event?
Replies: 5
Views: 675

Re: OnMessage - Receive WM_LBUTTONDOWN event?

Sorry, you're right lexikos. I though about a specialized hook but a hotkey is sufficient in this case. Me culpa!
by drawback
06 Oct 2016, 17:31
Forum: Ask For Help
Topic: OnMessage - Receive WM_LBUTTONDOWN event?
Replies: 5
Views: 675

Re: OnMessage - Receive WM_LBUTTONDOWN event?

Ok, thanks!

@lexikos:
Any hints how to implement this? I only need to listen for this event for a specific application (for example: Windows File Explorer)
by drawback
06 Oct 2016, 13:49
Forum: Ask For Help
Topic: limit loop files & folders to an exact match?
Replies: 2
Views: 379

Re: limit loop files & folders to an exact match?

If CustID is "A132" and no directory in "Q:\QA ORDERS\" exists that begins with "A132" than JobDirCheck isn't set at all so there is no *a* match...

Code: Select all

Q:\QA ORDERS\%CustID%*.*
You are processing folders, not files, why are you using "*.*"?
"*" is sufficient
by drawback
05 Oct 2016, 22:07
Forum: Ask For Help
Topic: Release a mouse button?
Replies: 0
Views: 370

Release a mouse button?

I'm capturing mouse clicks via hotkey(s) like this: #IfWinActive, ahk_class ThunderRT6FormDC *LButton:: *RButton:: *MButton:: *XButton1:: *XButton2:: Mouse_ProcessClick(A_ThisHotkey) return #IfWinActive and I'm checking in the Mouse_ProcessClick() function which mouse button was used and depending o...
by drawback
03 Oct 2016, 15:31
Forum: Ask For Help
Topic: Prevent shell-context menu from appearing?
Replies: 2
Views: 572

Re: Prevent shell-context menu from appearing?

Thank you Capn Odin Unfortunately this is not about "ignoring" the right click (by immediately returning when it's used). I'm actually doing something inside my timer function when an item is right clicked but I don't want the shell context menu to appear afterwards. Sorry if my explanation was too ...

Go to advanced search