Search found 510 matches
- Wed Nov 20, 2019 3:05 pm
- Forum: Technical / Scripting
- Topic: if>string contains
- Replies: 2
- Views: 1929
Re: if>string contains
@Scones, Does this work for you? let>MyText=That darn cat keeps barking all night long. let>FindThis=cat RegEx>FindThis,MyText,0,match,nom,0 if>nom>0 RegEx>FindThis,MyText,0,match,nom,1,dog,res endif mdl>%res% Do you not like RegEx? You can skin a cat, including this one, in many ways. Good Luck, Pe...
- Wed Nov 20, 2019 2:20 pm
- Forum: Technical / Scripting
- Topic: Yeah, it's RegEx time
- Replies: 0
- Views: 7687
Yeah, it's RegEx time
Hello All, Does anyone know how to use flags in RegEx? Will you show me how? I have been using RegExBuddy. But the patterns are not working in Macro Scheduler. I think it may be the flags that are set, so I want to set flags the same as they are in RegExBuddy and see if that makes them work in Macro...
- Wed Nov 20, 2019 2:03 pm
- Forum: Technical / Scripting
- Topic: Stand Alone Script Editor
- Replies: 4
- Views: 2505
Re: Stand Alone Script Editor
@Grovkillen, What book? What are you referring to? Are you saying you should be able to do it without the script? If so, I agree. But, and I don't admit this easily, I have no bloody idea how. But with the script, you must ask yourself, why bother? I think you just wanted me to ask, "What book?" so ...
- Tue Nov 19, 2019 9:19 pm
- Forum: Technical / Scripting
- Topic: Stand Alone Script Editor
- Replies: 4
- Views: 2505
Stand Alone Script Editor
Hello All, I always use the stand alone script editor when I am working on a macro. This post applies to the stand alone script editor. I have no use for double clicking on a macro script file to have it run. I run my macros in the stand alone editor or I compile them and run the exe file. To that e...
- Sat Nov 16, 2019 12:07 am
- Forum: Technical / Scripting
- Topic: Pass Variables btwn macros
- Replies: 1
- Views: 1252
Re: Pass Variables btwn macros
Nevermind. I figured it out.
PepsiHog
PepsiHog
- Fri Nov 15, 2019 11:22 pm
- Forum: Technical / Scripting
- Topic: Pass Variables btwn macros
- Replies: 1
- Views: 1252
Pass Variables btwn macros
Hello Everyone,
How do you share variables between two macros. If the value of "SKY" gets set to "Blue" can that value be passed to another macro that is already running?
Thanks,
PepsiHog
How do you share variables between two macros. If the value of "SKY" gets set to "Blue" can that value be passed to another macro that is already running?
Thanks,
PepsiHog
- Thu Nov 14, 2019 8:34 pm
- Forum: Technical / Scripting
- Topic: Tricky Problem-Need help!
- Replies: 4
- Views: 3035
Re: Tricky Problem-Need help!
Hi, brandonpresser, I would see if you could use GetPixelColor. If successful, you could have a macro check points on the screen for colors. The window being searched for is fairly large(compared to the game). The likely hood that the same color would be on the screen in say three different location...
- Thu Nov 14, 2019 7:31 pm
- Forum: Technical / Scripting
- Topic: RegEx Help
- Replies: 4
- Views: 2974
RegEx Help
Hello Everyone, I recently download RegExBuddy. Great software. I was working on a pattern that I just couldn't quite get. With in 30 minutes of using RegExBuddy, I figured it out. Atleast, as far as REbuddy is concerned. But when I use the same pattern in MS, it doesn't work. ReadFile>E:\Felix's Mo...
- Thu Nov 14, 2019 7:13 pm
- Forum: Technical / Scripting
- Topic: SRT END mismatch
- Replies: 3
- Views: 2667
Re: SRT END mismatch
Bob,
Want to help. Can you post the code?
Thanks,
PepsiHog
Want to help. Can you post the code?
Thanks,
PepsiHog
- Thu Nov 14, 2019 7:09 pm
- Forum: Technical / Scripting
- Topic: ObjectSendText dropping characters
- Replies: 2
- Views: 1699
Re: ObjectSendText dropping characters
Bob,
I currently don't have Windows 10, so I can't truly test this. But I tried it with a dialog and it is accepted.
ObjectSendtext>3476822,{".'%BKscripts%\SetVoltage.ps1' -portName COM7 -voltage 500"}
Hope this works,
PepsiHog
I currently don't have Windows 10, so I can't truly test this. But I tried it with a dialog and it is accepted.
ObjectSendtext>3476822,{".'%BKscripts%\SetVoltage.ps1' -portName COM7 -voltage 500"}
Hope this works,
PepsiHog
- Thu Nov 07, 2019 12:17 am
- Forum: The Water Cooler
- Topic: Water Cooler
- Replies: 2
- Views: 13257
Water Cooler
It figures, right? The boss man is finally ok with hanging out at the water cooler and shooting the stuff. And now no one goes to the water cooler. I guess no one drinks water any more. Diabetes anyone? (See what I did there?) WaterHog and no friends. (Everyone is over there by the frig, where the P...
- Mon Aug 05, 2019 8:29 pm
- Forum: Technical / Scripting
- Topic: Search area determined by previous image location
- Replies: 3
- Views: 2197
Re: Search area determined by previous image location
@zorg Ok. Let's recap. You said there are two images on the screen that are identical. You said that there is no way for you to know which of these images to click on except that there is an image next to the image that will tell you which to click on. Right? Thus, and therefore, the only image that...
- Fri Jul 26, 2019 1:33 pm
- Forum: Technical / Scripting
- Topic: Search area determined by previous image location
- Replies: 3
- Views: 2197
Re: Search area determined by previous image location
@zorg, You can search for both images. The first line findimage finds the main image. The next line findimage finds the second image. Use the if statement after the two findimage commands. Use different vars for each findimage, so you can refer to and use the data for both images. Findimage can give...
- Fri Jul 19, 2019 7:28 pm
- Forum: Technical / Scripting
- Topic: Wondering if this is possible - different action based on the same image being seen twice
- Replies: 4
- Views: 3058
Re: Wondering if this is possible - different action based on the same image being seen twice
@hassen Here is an example of using subroutines. I took the first part of your script and enclosed it in a subroutine. The subroutine name is up to you. You call it using gosub>. It will run the subroutine and then return to the next line after the gosub> that called it. I moved the subroutine to th...
- Fri Jul 19, 2019 6:57 pm
- Forum: Technical / Scripting
- Topic: Wondering if this is possible - different action based on the same image being seen twice
- Replies: 4
- Views: 3058
Re: Wondering if this is possible - different action based on the same image being seen twice
@hassen, You already know how to use FindImage and ScreenCapture. You only need to do the same thing where you indicated. Only this time your image will be double. In the if> statement if it finds the double image then do something else or exit. Subroutines are easy to use and allow you to call them...