Search found 3223 matches

by JRL
Fri Sep 13, 2019 1:15 pm
Forum: Technical / Scripting
Topic: Stepping Through An Array
Replies: 1
Views: 48

Re: Stepping Through An Array

Hi Cy. Welcome back! I don't have time to test but this should be close and you'll understand the concept. //Find and Left Click Center of FindImagePos>%BMP_DIR%\image_10.bmp,%TEMP_DIR%\screenrect.bmp,0.7,1,DashXArr,DashYArr,DashNumFound,EXACT If>NumFound>0 Let>kk=-1 Repeat>kk Add>kk,1 Let>XMove=Das...
by JRL
Thu Aug 29, 2019 7:06 pm
Forum: Scripts and Tips
Topic: Mouse Click Detector - Bug
Replies: 1
Views: 114

Re: Mouse Click Detector - Bug

Code: Select all

OnEvent>Key_Down,VK01,0,srtClick
Let>Keystate=0

Label>Loop
Wait>0.04
If>keystate<>0
Let>Keystate=0
Message>Great answer
Wait>0.35
PushButton>Macro Scheduler Message,&OK
Wait>.6
Goto>Postloop
endif
Goto>Loop
Label>Postloop


SRT>srtClick
  Let>keystate=1
END>srtClick
by JRL
Mon Aug 19, 2019 5:09 pm
Forum: Technical / Scripting
Topic: I am running a script in the macro scheduler... and need a daily time check
Replies: 6
Views: 395

Re: I am running a script in the macro scheduler... and need a daily time check

One more

Code: Select all

OnEvent>Time,0935,,RunDifferentLineOfCode

Label>RunLinesOfIrrelevantCode
  Wait>1
Goto>RunLinesOfIrrelevantCode

SRT>RunDifferentLineOfCode
  MDL>Its 9:35 am.%crlf%Now we wait a minute else we'd just keep running this Sub over and over until 9:36 am
  Wait>61
END>RunDifferentLineOfCode
by JRL
Tue Aug 13, 2019 12:48 pm
Forum: Technical / Scripting
Topic: Running an executable, Screen Resolution for Multiple Monitors
Replies: 12
Views: 314

Re: Running an executable, Screen Resolution for Multiple Monitors

Hello Dorian, Assuming you have a windows 10 computer, what do you see if you right click the desktop and select "Display Settings" from the menu? You should see representations of both monitors (1 and 2) and if you scroll down you will find what Windows reports as the resolution of the selected mon...
by JRL
Mon Aug 12, 2019 6:37 pm
Forum: Technical / Scripting
Topic: Running an executable, Screen Resolution for Multiple Monitors
Replies: 12
Views: 314

Re: Running an executable, Screen Resolution for Multiple Monitors

Well done jbas! I watched this thread with interest not commenting because I don't like the solutions I've used for multiple monitor resolution acquisition. This powershell solution is spectacular! I did make a small alteration for timing. I removed your Wait>10 and added an RP_Wait>1 to cause Macro...
by JRL
Fri Jul 26, 2019 3:20 pm
Forum: Technical / Scripting
Topic: FTP Mode -why no automatic option
Replies: 2
Views: 112

Re: FTP Mode -why no automatic option

Unless you are moving Windows text files to be viewed on a UNIX machine, just use binary. Binary does not modify the file, ASCII might.

Google "FTP binary vs ascii" for millions of explanations.
by JRL
Fri Jul 05, 2019 7:59 pm
Forum: Technical / Scripting
Topic: Rename File Trouble
Replies: 10
Views: 321

Re: Rename File Trouble

Sorry. I fixed the original posted code. The left bracket for the closing "code" html got deleted. The code I posted also partially uses VBScript to convert each character in the string to its corresponding ASCII decimal value. The character """ (double quote) does not pass well to VBScript without ...
by JRL
Wed Jul 03, 2019 9:46 pm
Forum: Technical / Scripting
Topic: Rename File Trouble
Replies: 10
Views: 321

Re: Rename File Trouble

Here is a sample of one way to filter out unwanted characters. This example removes tab and Carriage Return Line Feed from the string. Edit: Replaced a missing left bracket at the end of the "coded" script below. //Sample string with most typeable special characters Let>vStr=~` !1@2+#3$4%crlf%5^6&7*...
by JRL
Mon Jul 01, 2019 8:16 pm
Forum: Technical / Scripting
Topic: Functionality Like Python Dictionary
Replies: 3
Views: 203

Re: Functionality Like Python Dictionary

Wow that's interesting! Macro Scheduler doesn't have that but it does have python code execution capabilities. Have you tried that? SEE THIS Otherwise, can you show an example of what you're doing with IF> statements and maybe there are other ways to accomplish what you want to do. For example, some...
by JRL
Mon Jul 01, 2019 2:23 pm
Forum: Technical / Scripting
Topic: Writing Variable to Textbox in External Program
Replies: 1
Views: 181

Re: Writing Variable to Textbox in External Program

however, it appears that the variable name is copied instead. Thanks! Which means the variable is not assigned a value which means the Separate function did not Separate anything which could mean there is no value for variable "filename" or could mean there were no spaces(?) in the value of variabl...
by JRL
Fri Jun 28, 2019 1:24 pm
Forum: General Discussion
Topic: Onevent or Waitkeyboard
Replies: 4
Views: 356

Re: Onevent or Waitkeyboard

This code for WaitKeyDown. Technically, since WaitKeyDown is a Macro Scheduler function and what I provided is an OnEvent function with a key_down parameter, the code is not for WaitKeyDown. In my testing, using a mouse click, the OnEvent worked reliably where the WaitKeyDown function did not. In a...
by JRL
Thu Jun 27, 2019 4:13 pm
Forum: Technical / Scripting
Topic: Dialog unable to read from file
Replies: 1
Views: 139

Re: Dialog unable to read from file

Without seeing your code I can't even speculate why you can't read the file data. Since Writeln> closes the file immediately after it finishes writing the data, I doubt the file is in use. If the two dialogs are in the same script, there is no need to write and read to a file. Just set a variable to...
by JRL
Thu Jun 27, 2019 3:56 pm
Forum: Technical / Scripting
Topic: ReadLn -notepad
Replies: 2
Views: 169

Re: ReadLn -notepad

Assuming the two files have the same number of lines something like this should work. Let>vPath1=C:\Location\Of\URL\Files Let>vPath2=C:\Location\Of\Number\Files Let>vNewFile=C:\Name\For\New\Text\File\NewFile.txt ReadFile>%vPath1%\url.txt,vURL ReadFile>%vPath2%\url.txt,vNumber Separate>vURL,crlf,vURL...
by JRL
Thu Jun 27, 2019 3:21 pm
Forum: Technical / Scripting
Topic: Copy last three characters of a variable to a new variable
Replies: 5
Views: 265

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

You probably have previous programming experience which will be a benefit for logic but a deficit for syntax. You need to study posted scripts and get a feel for available commands and Macro Scheduler syntax which does not allow multiple functions on the same line. GetClipBoard>filename Length>FileN...