Search found 3455 matches
- Tue Nov 30, 2021 4:29 pm
- Forum: Technical / Scripting
- Topic: Folder path verification
- Replies: 4
- Views: 4244
Re: Folder path verification
I could not make your found routine work so I wrote a new one. returns "1" if the folder exists and "0" if it does not I have a question for you: Why are you not using IfDirExists> which is native? VBSTART function ShowParentFolderName(filespec) set fso = CreateObject("Scripting.FileSystemObject") f...
- Fri Oct 15, 2021 5:35 pm
- Forum: Technical / Scripting
- Topic: Press Menukey In Citrix Environment
- Replies: 5
- Views: 3357
Re: Press Menukey In Citrix Environment
My first thought was I don't have Citrix to test with". So I brought up Remote Desktop and tried that. The menu key works fine if pressed manually but the Macro Scheduler function Press MenuKey does not work with Remote Desktop either. What did work for me in RDP was to right click on the remote app...
- Mon Oct 11, 2021 12:27 pm
- Forum: Technical / Scripting
- Topic: Edit box Focus
- Replies: 3
- Views: 3178
Re: Edit box Focus
Use SetDialogObjectFocus> Dialog>Dialog1 object Dialog1: TForm Left = 551 Top = 216 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption = 'CustomDialog' ClientHeight = 211 ClientWidth = 476 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = '...
- Fri Oct 08, 2021 4:01 pm
- Forum: General Discussion
- Topic: Title Case
- Replies: 6
- Views: 18817
Re: Title Case
Grovkillen, I know nothing about regex so I can't help you. But I do want to thank you. Back in 2013 when this thread started I was working on an "improvement" to provide a way to allow selected words to remain lower case and thus get closer to a true "Title Case" script. I did not get it working an...
- Mon Oct 04, 2021 12:34 am
- Forum: Technical / Scripting
- Topic: Dialog Font Color
- Replies: 3
- Views: 3075
Re: Dialog Font Color
Use the editor's coordinates combobox and set the box to also include the pixel color. Then set a font to silver and hover over it with the mouse. The number should appear. I get 12632256.
- Wed Sep 15, 2021 9:25 pm
- Forum: General Discussion
- Topic: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
- Replies: 7
- Views: 13770
Re: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
Add the quotes GoSub>DISPLAY_VALUE,{ " %ZERO_VALUE% " } 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%"} //MDL will show "0" even though "ZERO_VALUE" = 00..N ConCat>ZERO_VALUE,0 Un...
- Wed Sep 15, 2021 8:39 pm
- Forum: General Discussion
- Topic: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
- Replies: 7
- Views: 13770
Re: Passing 0000 to a SRT with explicit variable {} will be passed as "0"
Its a matter of syntax.Multiple zeroes should (in my opinion) be treated as strings and not numbers.
Code: Select all
Let>ONE_ZERO=0
Let>MULTI_ZERO=0000
//Let>MULTI_ZERO=0
If>{"%ONE_ZERO%"="%MULTI_ZERO%"}
MDL>%ONE_ZERO% = %MULTI_ZERO%
Endif>
- Mon Aug 09, 2021 7:44 pm
- Forum: Enhancement Suggestions
- Topic: WriteLn is great but...
- Replies: 15
- Views: 22991
Re: WriteLn is great but...
Just curious if the following does what you want. It eliminates the need to delete but I don't know if the files are perceived as separate distinct files or a single file being edited. Let>RP_Wait=1 LEt>RP_Windowmode=0 Let>k=0 While>k<10 Add>k,1 RunProgram>cmd /c echo %k% > %SCRIPT_DIR%\text_file.tx...
- Mon Aug 09, 2021 7:22 pm
- Forum: Enhancement Suggestions
- Topic: WriteLn is great but...
- Replies: 15
- Views: 22991
Re: WriteLn is great but...
Very clear, I think I await Marcus' response. Again, sorry for being dense but this an issue I've never confronted. You posted an example since I started typing. It appears that what you want is to have a function that somehow keeps a file but allows for deletion of the contents and lets you then en...
- Mon Aug 09, 2021 6:50 pm
- Forum: Enhancement Suggestions
- Topic: WriteLn is great but...
- Replies: 15
- Views: 22991
Re: WriteLn is great but...
Sorry for being dense but I still don't understand what you want to accomplish. Given your example of output you don't want, what output do you want?
I don't use dropbox. Does it create a whole new file if you add a line to an existing file?
I don't use dropbox. Does it create a whole new file if you add a line to an existing file?
- Mon Aug 09, 2021 4:27 pm
- Forum: Enhancement Suggestions
- Topic: WriteLn is great but...
- Replies: 15
- Views: 22991
Re: WriteLn is great but...
Use the variable WLN_NOCRLF. You can successfully recreate a perfect copy of any file by simply setting WLN_NOCRLF equal to 1. Just remember to set it back to 0 when you're done. Readfile>mypath\myexecutable.exe,vData Let>WLN_NOCRLF=1 Writeln>mynewpath\mynewexecutable.exe,wres,vData Let>WLN_NOCRLF=0
- Mon Aug 02, 2021 6:00 pm
- Forum: Technical / Scripting
- Topic: Get filename in var without path and extension
- Replies: 7
- Views: 3983
Re: Get filename in var without path and extension
Adding the password at the end of XLOpen> works for me.
Code: Select all
XLOpen>Filename,1,hndl,password
- Mon Jul 26, 2021 4:26 pm
- Forum: Technical / Scripting
- Topic: Assigned command not working on dynamic variable names?
- Replies: 5
- Views: 3752
Re: Assigned command not working on dynamic variable names?
Will something like this work?
Code: Select all
//Let>VAR_1=hello
//Let>VAR_2=bye
Let>VarTest=%VAR_1%_%VAR_2%
Separate>VarTest,%,TEST
If>Test_Count>4
MDL>Not assigned
Else
MDL>Assigned
EndIf
- Mon Jul 26, 2021 1:20 pm
- Forum: Technical / Scripting
- Topic: Assigned command not working on dynamic variable names?
- Replies: 5
- Views: 3752
Re: Assigned command not working on dynamic variable names?
Grovkillen, I'm confused as to what you're trying to accomplish. Nothing in your sample provides what I would call "dynamic" variable names. Concatenated perhaps. I think of dynamic as variable names the programmer doesn't know. User provided or from a file or from parameters for example. For the co...
- Mon Jul 26, 2021 1:04 pm
- Forum: Technical / Scripting
- Topic: The Dialog values need refreshing ?
- Replies: 1
- Views: 2414
Re: The Dialog values need refreshing ?
These days I rarely use CloseDialog> Most of the time I use the dialog AlphaBlend property instead if I want the dialog "closed". See the comments. Dialog>Dialog1 object Dialog1: TForm Caption = 'AlphaBlend Demo' ClientHeight = 211 ClientWidth = 476 object Edit1: TEdit Left = 49 Top = 23 Width = 121...