Search found 511 matches
- 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: 3092
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...
- Fri Jul 05, 2019 3:43 am
- Forum: Technical / Scripting
- Topic: Rename File Trouble
- Replies: 10
- Views: 5402
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...
- 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: 3444
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...
- Wed Jul 03, 2019 6:20 pm
- Forum: Technical / Scripting
- Topic: Rename File Trouble
- Replies: 10
- Views: 5402
Re: Rename File Trouble
Use a vbscript. Sorry I don't currently have one to share. But if you search for vbs renaming script on the internet you will likely find one easily. I have had the same exact issue. But that script was put on the back burner. But I have been thinking to return to it soon. My solution being vbs. You...
- Wed Jul 03, 2019 5:51 pm
- Forum: Technical / Scripting
- Topic: Functionality Like Python Dictionary
- Replies: 3
- Views: 2812
Re: Functionality Like Python Dictionary
@JRL,
Sounds like you're being rude if you read it quickly.
x = thisdict["model"]
Sorry, way too tempting. The devil made me do it.
PepsiHog
Sounds like you're being rude if you read it quickly.
x = thisdict["model"]
Sorry, way too tempting. The devil made me do it.
PepsiHog
- Mon Jun 24, 2019 10:09 pm
- Forum: Technical / Scripting
- Topic: vbs
- Replies: 10
- Views: 4634
Re: vbs
Hello Everyone, Thanks goes out to Grovkillen and Marcus for the help with getting this VBScript working. While I was trying to get the VBScript to work, I grabbed this script from the internet to see if it would work. I like this one because it has an 'IF' statement to be sure no error occurs. Than...
- Mon Jun 24, 2019 5:53 pm
- Forum: Scripts and Tips
- Topic: Find or Wait for Object then Click other object
- Replies: 5
- Views: 9158
Re: Find or Wait for Object then Click other object
@Sam71, If you use the Object wizard to identify the object (button) you'd like to click, the next tab in Object Wizard let's you choose what action to take. If everything goes well, you will be able to choose "Left click the object" Assuming that...... You then could use OnEvent to setup a "hotkey"...
- Mon Jun 24, 2019 2:38 pm
- Forum: Technical / Scripting
- Topic: vbs
- Replies: 10
- Views: 4634
Re: vbs
@Marcus,
Thanks. It worked. I swear I tried that previously.
PepsiHog
[edit] - Ok. I know. I did not try removing the parentheses. I tried removing the percent signs. Well doesn't this fit with exactly what I was saying. Something so simple. Dang! Isn't that a kick in the head!
Thanks. It worked. I swear I tried that previously.
PepsiHog
[edit] - Ok. I know. I did not try removing the parentheses. I tried removing the percent signs. Well doesn't this fit with exactly what I was saying. Something so simple. Dang! Isn't that a kick in the head!
- Sat Jun 22, 2019 9:01 pm
- Forum: Technical / Scripting
- Topic: vbs
- Replies: 10
- Views: 4634
Re: vbs
I have tried every permutation I can think of. I even installed v12. If you insert the path directly into the vbscript it works. I went online and found another vbscript and it also works if the paths are directly inserted into the vbs. Using strings causes an error, "path not found". To me, there i...
- Sat Jun 22, 2019 7:08 pm
- Forum: Technical / Scripting
- Topic: vbs
- Replies: 10
- Views: 4634
Re: vbs
When writing a macro, do you ever feel like everything in the universe is simultaneously working against you?
PepsiHog
PepsiHog
- Sat Jun 22, 2019 7:05 pm
- Forum: Technical / Scripting
- Topic: vbs
- Replies: 10
- Views: 4634
Re: vbs
I tried that and even removing them from the fso.movefolder line. Adding to vbrun made no difference. It still reports invalid path. The fso thing causes another error. I changed to %Desktop_Dir% to ensure the path was correct. I added \ to the end of each, together and one by one. The answer is lik...
- Sat Jun 22, 2019 3:37 pm
- Forum: Technical / Scripting
- Topic: vbs
- Replies: 10
- Views: 4634
Re: vbs
Not sure what you mean. Did you scroll the window and I did thus suggesting that's wrong, or you didn't scroll and suggesting that is what it needs?
Thanks for helping,
Pepsihog
Thanks for helping,
Pepsihog
- Fri Jun 21, 2019 10:12 pm
- Forum: Technical / Scripting
- Topic: vbs
- Replies: 10
- Views: 4634
vbs
Hello Everyone, Does anyone know why I am getting "Path not found" with this vbs? VBStart Option Explicit Sub MoveFolder(Source,Dest) Dim fso Set fso = CreateObject("Scripting.FileSystemObject") fso.MoveFolder "%Source%","%Dest%" End Sub VBEND //C:\Users\Felix The Cat\Desktop\Move this folder //C:\U...
- Fri Jun 21, 2019 3:51 pm
- Forum: The Water Cooler
- Topic: uiClick
- Replies: 2
- Views: 15345
Re: uiClick
Thanks for responding, Marcus. I was thinking standard window stuff(rules). But I guess you're right. It depends on how they designed it. But here's the riddle. After I posted this post the first time, I was wondering if I was just nuts. Maybe I didn't see what I thought I saw. So I made the "error"...
- Fri Jun 21, 2019 3:22 pm
- Forum: Technical / Scripting
- Topic: Remove included script
- Replies: 10
- Views: 4833
Re: Remove included script
@JRL,
LOL! Don't we wish! I think the book is "Mastering RegEx before the turn of the century"
I'll send you a copy at the turn of the century.
PepsiHog
but go ahead and send the Pepsi. I wouldn't want it to go bad.
LOL! Don't we wish! I think the book is "Mastering RegEx before the turn of the century"
I'll send you a copy at the turn of the century.
PepsiHog
but go ahead and send the Pepsi. I wouldn't want it to go bad.