Search found 296 matches

by iilabs
03 Jul 2022, 18:42
Forum: Ask for Help (v1)
Topic: RegEXMatch or replace and move to caret position.
Replies: 9
Views: 1308

Re: RegEXMatch or replace and move to caret position.

Very sorry to be a noob and not know you built that UI Automation your referring too. Amazing work and exactly something I need for other work. Appreciate all the suggestions.
by iilabs
30 Jun 2022, 14:37
Forum: Ask for Help (v1)
Topic: RegEXMatch or replace and move to caret position.
Replies: 9
Views: 1308

Re: RegEXMatch or replace and move to caret position.

Ok great will look into all those options. Maybe a good excuse to learn FindText() UI automation is that a program or something written in AHK? Most of the time this [] as at the bottom of the report so I could just do a send, pgdn? Still doesn't select the [], so I have to backspace and delete it, ...
by iilabs
30 Jun 2022, 14:07
Forum: Ask for Help (v1)
Topic: RegEXMatch or replace and move to caret position.
Replies: 9
Views: 1308

Re: RegEXMatch or replace and move to caret position.

Thanks for your reply. Yes I was having trouble just selecting the "[]" and your edit worked great. So only thing works is Ctrl-A,C instead of the ControlGetText since external program so I will try to figure out that bit. By analyzing the text do you mean parse it out? Find the "[]" and do some kin...
by iilabs
30 Jun 2022, 13:32
Forum: Ask for Help (v1)
Topic: RegEXMatch or replace and move to caret position.
Replies: 9
Views: 1308

RegEXMatch or replace and move to caret position.

Hello everyone, I am trying to using RegExMatch and the more I learn the more confusing it gets. Lol. What I am trying to do is find [] at the end of a text in an active window if it exists (EradRIS) and move the cursor or caret to that position and highlight it. For example here is the haystack: Fi...
by iilabs
19 Jun 2022, 12:18
Forum: Ask for Help (v1)
Topic: Switchcase and RegExMatch
Replies: 16
Views: 1550

Re: Switchcase and RegExMatch

Ok that is good to know for future. Thanks for covering all the variabilities.
by iilabs
19 Jun 2022, 10:47
Forum: Ask for Help (v1)
Topic: Switchcase and RegExMatch
Replies: 16
Views: 1550

Re: Switchcase and RegExMatch

Awesome. Thank you Mikeyww. Mission accomplished. You have always been a tremendous help! :bravo: Out of curiosity what is the purpose of ini := StrReplace(A_ScriptFullPath, ".ahk", ".ini") I was able to get the script running without this code but curious why it maybe needed? Perhaps for the example?
by iilabs
18 Jun 2022, 17:43
Forum: Ask for Help (v1)
Topic: Switchcase and RegExMatch
Replies: 16
Views: 1550

Re: Switchcase and RegExMatch

Thank you Mikeyww, obj_Clinic := ["smoker", "covid", "COPD","hysterectomy"] For each, trait in obj_Clinic { If !(OriginalText ~= "i)Clinical Data\R+.*\b" trait "\b") Continue Switch trait { Case "smoker": GuiControl, VASCULAR:choose, Listbox1, 3 GuiControl, LUNGS:choose, Listbox1, 3 Case "covid": Gu...
by iilabs
18 Jun 2022, 10:13
Forum: Ask for Help (v1)
Topic: Switchcase and RegExMatch
Replies: 16
Views: 1550

Re: Switchcase and RegExMatch

That is interesting. Can you explain the logic in that syntax and if possible do the opposite if that makes sense? Meaning, what I would prefer is it to look for just "smoker" and ignore "nonsmoker" or "non-smoker." I dont see that many prior smoker or quit smoking so I think Im ok not figuring out ...
by iilabs
18 Jun 2022, 09:36
Forum: Ask for Help (v1)
Topic: Switchcase and RegExMatch
Replies: 16
Views: 1550

Re: Switchcase and RegExMatch

Thanks Mikeyww, Got it shortened OriginalText := RegExReplace(OriginalText, "\bNo\b[^.]+") ; remove sentences containing "No" obj_Clinc := ["smoker", "covid", "hysterectomy"] For each, trait in obj_Clinc { If !RegExMatch(OriginalText, "i)Clinical Data\R+.*?" trait) Continue Switch trait { Case "smok...
by iilabs
18 Jun 2022, 09:11
Forum: Ask for Help (v1)
Topic: Switchcase and RegExMatch
Replies: 16
Views: 1550

Re: Switchcase and RegExMatch

Got it working but would appreciate any feedback if there is a better way? Approach? for my personal learning. Thank you. So I modified you code to reflect this: OriginalText := RegExReplace(OriginalText, "\bNo\b[^.]+") obj_Clinc := ["smoker", "covid"] for i, v in obj_Clinc if RegExMatch(OriginalTex...
by iilabs
18 Jun 2022, 07:44
Forum: Ask for Help (v1)
Topic: Switchcase and RegExMatch
Replies: 16
Views: 1550

Re: Switchcase and RegExMatch

Great I will give that a shot today and let you know! RegExMatch(OriginalText,"^(.+?):(.+)", clinical) As far as this, I wasn't sure of the syntax and copied it from Mikeyww example to see how far I could get and then try to learn the syntax from the example. But I didn't get far. Thanks for convert...
by iilabs
17 Jun 2022, 15:51
Forum: Ask for Help (v1)
Topic: Switchcase and RegExMatch
Replies: 16
Views: 1550

Re: Switchcase and RegExMatch

Clinical Data Patient complains of stabbing chest pain and back pain for about 6 months. Smoker. History of asthma and cold allergies. No prior surgeries. No history of lung cancer or nodules. Would be nice if there is a way for RegExMatch to do only a few lines in case of larger notes? All I need ...
by iilabs
17 Jun 2022, 14:11
Forum: Ask for Help (v1)
Topic: Switchcase and RegExMatch
Replies: 16
Views: 1550

Switchcase and RegExMatch

Hello everyone, I have a running script but would like to convert it to a switch case if possible and to get a better idea of using Switch syntax and remove too many if statements. Basically, I have a third party program with clinical information that I want to search for certain keywords like if pa...
by iilabs
14 May 2022, 12:25
Forum: Scripts and Functions (v1)
Topic: [Tool] InstaNote Clipboard Mod
Replies: 16
Views: 2554

Re: [Tool] InstaNote Clipboard Mod

So the issue I had where I was trying to figure out how to automatically paste the InstaNote after being made to my GUI boxes. I discovered an interesting scripts called talk.ahk that allows you to share variables in a way between scripts. Basically I have a master and sender. The sender is the Inst...
by iilabs
12 May 2022, 20:45
Forum: Gaming Help (v1)
Topic: Make actions on Right or Left mouse Click
Replies: 8
Views: 1001

Re: Make actions on Right or Left mouse Click

Hi Mikeyww and useful thread! I was wondering if you already have Lbutton for something else, is there a way to still do the above without losing the orginal function? In my case its a Rbutton I use for a righyt click menu in an application, but I want something like above if I hold for a longer tim...
by iilabs
12 May 2022, 13:36
Forum: Scripts and Functions (v1)
Topic: [Tool] InstaNote Clipboard Mod
Replies: 16
Views: 2554

Re: [Tool] InstaNote Clipboard Mod

I think I worked a workaround. Basically added an onmessage and function for when mouse scroll or double click detected in the EditBox, brings up the instanote nicely and since EditBox was activated first, I can just do a simple paste no mater where I am on the screen and it will paste to that speci...
by iilabs
11 May 2022, 14:39
Forum: Scripts and Functions (v1)
Topic: [Tool] InstaNote Clipboard Mod
Replies: 16
Views: 2554

Re: [Tool] InstaNote Clipboard Mod

image.png Hello Hellbent, t So instanote working great. I tried to link the new note command "ALT-Z" to a g-label for a text box that I commonly use in those floating GUI you helped me built with the hovering on and off. So I added a tog function from a previous tutorial of yours to the edit field ...
by iilabs
05 May 2022, 10:24
Forum: Scripts and Functions (v1)
Topic: Image Sequence Recorder
Replies: 70
Views: 15113

Re: Image Sequence Recorder

Its great as is, just wondering if you modified it like your other work. Keep the Sistine Chapel as is.
by iilabs
05 May 2022, 10:20
Forum: Scripts and Functions (v1)
Topic: [Script] Dock-It ( window docker )
Replies: 23
Views: 8265

Re: [Script] Dock-It ( window docker )

Ok sounds good. I could adjust to oversample with each scroll which shouldn't be an issue instead of achieving 1:1, so I will see if I can modify the trigger to scroll.

Go to advanced search