Problem was found (by myself) last year already
viewtopic.php?f=1&t=10540&p=44848#p44848
Search found 1024 matches
- Fri Sep 24, 2021 7:54 am
- Forum: Technical / Scripting
- Topic: LabelToVar> with full syntax will crash the loop
- Replies: 1
- Views: 3716
- Fri Sep 24, 2021 6:45 am
- Forum: Technical / Scripting
- Topic: OnEvent triggers SubRoutine but then start the script from the beginning.
- Replies: 2
- Views: 3812
Re: OnEvent triggers SubRoutine but then start the script from the beginning.
[EDIT] posted in wrong thread.
- Fri Sep 24, 2021 6:04 am
- Forum: Enhancement Suggestions
- Topic: [Fixed] PopupMenu> click outside = close the menu (result = -1)
- Replies: 2
- Views: 11102
Re: PopupMenu> click outside = close the menu (result = -1)
I managed to work around this limitation, here's how: Let>MENU_CLICKED=False Let>MENU_CLICKED_TIME=0 Let>MENU_CLICKED_TIMEOUT=10*1000 Let>HIDDEN_POSITION=-100000 Let>HIDDEN_SIZE=1 IfNotFileExists>%SCRIPT_DIR%\mainicon.ico ExportData>MAINICON.ICO_DATA,%SCRIPT_DIR%\mainicon.ico Endif> OnEvent>CUSTOM,M...
- Tue Sep 21, 2021 6:14 pm
- Forum: Enhancement Suggestions
- Topic: [Fixed] PopupMenu> click outside = close the menu (result = -1)
- Replies: 2
- Views: 11102
[Fixed] PopupMenu> click outside = close the menu (result = -1)
It would be nice if we could close the menu by simply clicking outside of it. It's not 100% fool proof the way it's done now (you have to click the icon again to close it without selecting any option).
- Mon Sep 20, 2021 6:42 am
- Forum: Technical / Scripting
- Topic: OnEvent triggers SubRoutine but then start the script from the beginning.
- Replies: 2
- Views: 3812
Re: OnEvent triggers SubRoutine but then start the script form the beginning.
I have found the problem.... the passed variable will mess the loop up: Let>counter=0 Message>counter //DOWN OnEvent>KEY_DOWN,VK40,0,TEST_ROUTINE,{1} //UP OnEvent>KEY_DOWN,VK38,0,TEST_ROUTINE //ESC OnEvent>KEY_DOWN,VK27,0,EXIT_APP Label>mainLoopStart Wait>0.05 Goto>mainLoopStart SRT>TEST_ROUTINE **B...
- Mon Sep 20, 2021 6:31 am
- Forum: Technical / Scripting
- Topic: OnEvent triggers SubRoutine but then start the script from the beginning.
- Replies: 2
- Views: 3812
OnEvent triggers SubRoutine but then start the script from the beginning.
Let>counter=0 Message>counter //DOWN OnEvent>KEY_DOWN,VK40,0,TEST_ROUTINE,{1} //ESC OnEvent>KEY_DOWN,VK27,0,EXIT_APP Label>mainLoopStart Wait>0.05 Goto>mainLoopStart SRT>TEST_ROUTINE **BREAKPOINT** Add>counter,TEST_ROUTINE_Var_1 //why is the script starting from top after I have used the arrow DOWN...
- Mon Sep 20, 2021 5:19 am
- Forum: Scripts and Tips
- Topic: Resize dialog based on text length in input
- Replies: 0
- Views: 39749
Resize dialog based on text length in input
Just a quick example on how you could have the window automatically resize based on the contents of an Edit element. Dialog>Dialog1 object Dialog1: TForm Left = 725 Top = 225 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption = 'CustomDialog' ClientHeight = 49 ClientWidth = 120 Color = clBtnFac...
- Sun Sep 19, 2021 5:45 pm
- Forum: Technical / Scripting
- Topic: LabelToVar> with full syntax will crash the loop
- Replies: 1
- Views: 3716
LabelToVar> with full syntax will crash the loop
My guess is that it's the */ in the end or something that is messing it up since if I comment the row out it still will crash. Let>k=0 While>k<5 Let>k=k+1 Let>ROW_TEXT=text %k% LabelToVar>LABEL_OF_CODE,ROW_WITH_TEXT EndWhile Let>k=0 While>k<5 Let>k=k+1 Let>ROW_TEXT=text %k% LabelToVar>LABEL_OF_CODE,...
- Sat Sep 18, 2021 5:50 am
- Forum: General Discussion
- Topic: MS in an Unrelated YT Video?
- Replies: 1
- Views: 10720
Re: MS in an Unrelated YT Video?
I'm not seeing the buttons on top of the editor, my guess is no.
- Thu Sep 16, 2021 7:14 pm
- Forum: Technical / Scripting
- Topic: Let>NumFound=0 Fails
- Replies: 4
- Views: 3886
Re: Let>NumFound=0 Fails
Yep, that's why we ask.... Because we've been there, done that
- Thu Sep 16, 2021 11:22 am
- Forum: General Discussion
- Topic: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
- Replies: 7
- Views: 14167
Re: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
Got ya!
How about the thing if a string contains a quote and I want to pass it to a sub routine?
How about the thing if a string contains a quote and I want to pass it to a sub routine?
- Thu Sep 16, 2021 7:53 am
- Forum: General Discussion
- Topic: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
- Replies: 7
- Views: 14167
Re: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
Ah, yeah I knew that but then I remembered why I cannot rely on using quotes: Let>ZERO_VALUE=0" Let>k=0 Repeat>k Let>k=k+1 GoSub>DISPLAY_VALUE,ZERO_VALUE ConCat>ZERO_VALUE,0" Until>k=3 Let>k=0 Repeat>k Let>k=k+1 GoSub>DISPLAY_VALUE,{"%ZERO_VALUE%"} //above will error due to the " in the string ConCa...
- Thu Sep 16, 2021 5:51 am
- Forum: Technical / Scripting
- Topic: Let>NumFound=0 Fails
- Replies: 4
- Views: 3886
Re: Let>NumFound=0 Fails
Do you have a variable "0" set to "1" perhaps?
- Wed Sep 15, 2021 8:45 pm
- Forum: General Discussion
- Topic: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
- Replies: 7
- Views: 14167
Re: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
Also when passing them to a sub routine?
- Tue Sep 14, 2021 4:46 pm
- Forum: General Discussion
- Topic: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
- Replies: 7
- Views: 14167
Re: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
Here's another thing I wasn't expecting:
Multiple zeroes should (in my opinion) be treated as strings and not numbers.
Code: Select all
Let>ONE_ZERO=0
Let>MULTI_ZERO=0000
If>ONE_ZERO=MULTI_ZERO
MDL>%ONE_ZERO% = %MULTI_ZERO%
Endif>