Search found 493 matches

by PepsiHog
Wed Nov 20, 2019 2:03 pm
Forum: Technical / Scripting
Topic: Stand Alone Script Editor
Replies: 4
Views: 1042

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 ...
by PepsiHog
Tue Nov 19, 2019 9:19 pm
Forum: Technical / Scripting
Topic: Stand Alone Script Editor
Replies: 4
Views: 1042

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...
by PepsiHog
Sat Nov 16, 2019 12:07 am
Forum: Technical / Scripting
Topic: Pass Variables btwn macros
Replies: 1
Views: 570

Re: Pass Variables btwn macros

Nevermind. I figured it out.

PepsiHog
by PepsiHog
Fri Nov 15, 2019 11:22 pm
Forum: Technical / Scripting
Topic: Pass Variables btwn macros
Replies: 1
Views: 570

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
by PepsiHog
Thu Nov 14, 2019 8:34 pm
Forum: Technical / Scripting
Topic: Tricky Problem-Need help!
Replies: 4
Views: 1515

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...
by PepsiHog
Thu Nov 14, 2019 7:31 pm
Forum: Technical / Scripting
Topic: RegEx Help
Replies: 4
Views: 1271

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...
by PepsiHog
Thu Nov 14, 2019 7:13 pm
Forum: Technical / Scripting
Topic: SRT END mismatch
Replies: 3
Views: 972

Re: SRT END mismatch

Bob,

Want to help. Can you post the code?

Thanks,
PepsiHog
by PepsiHog
Thu Nov 14, 2019 7:09 pm
Forum: Technical / Scripting
Topic: ObjectSendText dropping characters
Replies: 2
Views: 747

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
by PepsiHog
Thu Nov 07, 2019 12:17 am
Forum: The Water Cooler
Topic: Water Cooler
Replies: 2
Views: 3521

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...
by PepsiHog
Mon Aug 05, 2019 8:29 pm
Forum: Technical / Scripting
Topic: Search area determined by previous image location
Replies: 3
Views: 1067

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...
by PepsiHog
Fri Jul 26, 2019 1:33 pm
Forum: Technical / Scripting
Topic: Search area determined by previous image location
Replies: 3
Views: 1067

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...
by PepsiHog
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: 1524

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...
by PepsiHog
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: 1524

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...
by PepsiHog
Fri Jul 05, 2019 3:43 am
Forum: Technical / Scripting
Topic: Rename File Trouble
Replies: 10
Views: 2263

Re: Rename File Trouble

@CGooley, Happy Scripting! VB Script to rename a file. VBStart Option Explicit Sub MoveFile(Source,Dest) dim filesys set filesys=CreateObject("Scripting.FileSystemObject") If (filesys.FileExists(Source)) Then filesys.MoveFile Source,Dest End If End Sub VBEND let>Source=%Desktop_Dir%\renameMe.txt let...
by PepsiHog
Wed Jul 03, 2019 10:42 pm
Forum: Technical / Scripting
Topic: Copy last three characters of a variable to a new variable
Replies: 5
Views: 1499

Re: Copy last three characters of a variable to a new variable

@CGooley, Yeah, you could do it that way. Some people like long lines of programming to accomplish a 1 liner. let>FileName=MyFilesNamelast3.txt RegEx>.*(...)\..*,FileName,0,match,nom,1,$1,res mdl>%res% Boy! If the RegEx commission ever finds out how much I use RegEx, I am going to be in a lot of tro...
Sign up to our newsletter for free automation tips, tricks & discounts