Search found 288 matches
- Thu May 10, 2018 11:19 am
- Forum: Technical / Scripting
- Topic: Convert hh:dd:ss to seconds for timer
- Replies: 3
- Views: 909
Re: Convert hh:dd:ss to seconds for timer
Hi, If the you always have two characters for each component (eg 05:13 and not 5:13 etc) then you can use something like: Let>str1=04:33:20 Let>str2=07:21 Gosub>Get_secs,str1 MDL>res_secs Gosub>Get_secs,str2 MDL>res_secs SRT>Get_secs // Get the input variable into a variable str Let>str=Get_secs_VAR...
- Thu Apr 12, 2018 2:21 pm
- Forum: Technical / Scripting
- Topic: Web Automation
- Replies: 2
- Views: 1110
Re: Web Automation
Hi, It seems if you adjust the link of the movie then you can get to the full list directly, eg:
http://www.imdb.com/title/tt0076759/
Adjust to:
http://www.imdb.com/title/tt0076759/fullcredits
http://www.imdb.com/title/tt0076759/
Adjust to:
http://www.imdb.com/title/tt0076759/fullcredits
- Tue Nov 14, 2017 8:47 am
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler #12
- Replies: 12
- Views: 9821
Re: The Unofficial Macro Scheduler Puzzler #12
Hi JRL, long time no Puzzle... He/She who waits for something good...
I get an error when I run it "Error in: _debug.dbg. Line: 1 - Unable to load content for dialog: D1. Error in dialog block"
Any idea what is happening?
I get an error when I run it "Error in: _debug.dbg. Line: 1 - Unable to load content for dialog: D1. Error in dialog block"
Any idea what is happening?
- Fri Apr 14, 2017 6:29 am
- Forum: Technical / Scripting
- Topic: Confirm screenimage
- Replies: 2
- Views: 1340
Re: Confirm screenimage
In the help section it seems that if you use WSI_TIMEOUT then the variable to check for TRUE/FALSE is WSI_TIMEDOUT (with D).
- Thu Mar 30, 2017 2:20 pm
- Forum: Technical / Scripting
- Topic: Tell it to write X and it puts a 0
- Replies: 4
- Views: 1943
Re: Tell it to write X and it puts a 0
Maybe you are using x as a variable somewhere in the code and it has a value of 0 when you write to the file.
- Thu Mar 30, 2017 12:34 pm
- Forum: Technical / Scripting
- Topic: Easy Way to Get Data?
- Replies: 3
- Views: 1761
Re: Easy Way to Get Data?
I couldn't get it to work w HTTPRequest> (SSL problems?). With IE you could eg extract using TXT and then simply parse the info out. IECreate>IE[0] IEShowIE>IE[0],1 Let>URL=https://eve-marketdata.com/api/item_prices2.txt?char_name=addict&type_ids=9941&station_ids=60003760&minmax=min&buysell=s IENavi...
- Sun Mar 26, 2017 9:16 am
- Forum: Technical / Scripting
- Topic: RegEx 2 variables in same line
- Replies: 12
- Views: 5459
Re: RegEx 2 variables in same line
Hi again, originally you asked for RexEx, so I replied in RegEx. However, you could also solve the whole thing with a simple loop. If the data set is small then there is no performance difference and probably easier to follow for anyone not into RegEx. LabelToVar>Test,string Separate>string,CRLF,arr...
- Sun Mar 26, 2017 8:09 am
- Forum: Technical / Scripting
- Topic: RegEx 2 variables in same line
- Replies: 12
- Views: 5459
Re: RegEx 2 variables in same line
Hi, You need to add a couple of lines to get the row numbers. As always there are different ways, but if we continue with RegEx, what you can do is to, for each match, do a new search from the beginning of the (full) string until the end of the match and simply count the number of end of lines/strin...
- Tue Mar 07, 2017 9:02 pm
- Forum: Technical / Scripting
- Topic: AddDialogHandler>Dialog1,EDIT3,OnEnter = enter key press
- Replies: 4
- Views: 2021
Re: AddDialogHandler>Dialog1,EDIT3,OnEnter = enter key press
I had the same problem at one point and never could figure out how to avoid the annoying beeps that comes when you press ENTER in an Edit field. So instead I used a Memo field and removed the line break that comes when you press ENTER. See simple illustration below (I am sure it can be done easier b...
- Mon Nov 07, 2016 10:25 am
- Forum: Technical / Scripting
- Topic: Trouble with variable expressions
- Replies: 5
- Views: 4073
Re: Trouble with variable expressions
Hi, I think your ELSE statement only refers to your final IF statement. This means that if one of your first IF statements triggers then the final IF will not, BUT the ELSE will, and thus will "kill" any previous matches. You can eg define a flag=FALSE in the beginning and set it to TRUE in each IF ...
- Fri Nov 04, 2016 8:39 am
- Forum: Technical / Scripting
- Topic: strip 2+ spaces or more
- Replies: 2
- Views: 2591
Re: strip 2+ spaces or more
To replace one or more spaces with just one space you can eg do:
Code: Select all
Let>text=test 12 one world ok bye now
RegEx>%SPACE%+,text,0,m,nm,1,%SPACE%,text
MDL>text
- Wed Sep 28, 2016 8:31 pm
- Forum: Beginners
- Topic: KeyDown Not Working?
- Replies: 4
- Views: 4369
Re: KeyDown Not Working?
Hi, I think it needs to be KEY_DOWN instead of KeyDown.
- Thu Sep 08, 2016 5:56 pm
- Forum: Beginners
- Topic: Print Dialog
- Replies: 3
- Views: 3775
Re: Print Dialog
If you have your script open then there is an icon (at least in the latest version of MS) for print, there you can double check printer selection, settings etc.
- Thu Sep 08, 2016 7:37 am
- Forum: Beginners
- Topic: Print Dialog
- Replies: 3
- Views: 3775
Re: Print Dialog
If I correct the spelling then it works fine for me.
PrintDialog>Dilaog1,poProportional --> PrintDialog>Dialog1,poProportional
PrintDialog>Dilaog1,poProportional --> PrintDialog>Dialog1,poProportional
- Tue Sep 06, 2016 8:07 am
- Forum: Technical / Scripting
- Topic: HTMLViewer Scrolling
- Replies: 4
- Views: 3076
Re: HTMLViewer Scrolling
Great, many thanks!