Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vbs code
#1
Quote:Save the following in notepad to a .vbs file and let a desklet shortcut point to it:

Code:
Copy      Help
Dim av
Set av = CreateObject("Avedesk.Application")
av.ShowControlPanel

can i make that inside qm without using a .vbs file ?
pi
#2
Code:
Copy      Help
script.VbsExec("Dim av [] Set av = CreateObject(''Avedesk.Application'') [] av.ShowControlPanel")
#3
cool !

i remember a question in this context.

how can i write your code in qm as multiline ?
this is not available know or ?


Code:
Copy      Help
script.VbsExec("
Dim av
Set av = CreateObject(''Avedesk.Application'')
av.ShowControlPanel
")
pi
#4
Write vbs code in separate macro or file, and use appropriate VbsExec flag.
#5
Gintaras Wrote:Write vbs code in separate macro or file, and use appropriate VbsExec flag.

but this would be the same as running an external vbs file.

it would be cool to have multiline in qm editor.
problem is that lines can get very long in the editor,
so you must scroll to see the end of a line.

str _4lines = "
hello
stranger
no
this is not planet earth
"; out _4lines

maybe #" could be the delimiter for it.

str _4lines = #"
milkyway
no
thats not
here "#
pi
#6
In QM 2.1.5, multiline strings will be implemented using comments. If first line of comments begins with $variable, then is created local lpstr variable and populated with following commented lines. Commenting multiple lines is easy: select all lines and press space.

For example,
Code:
Copy      Help
[color=green];$vbs_1
;Dim av
;Set av = CreateObject("Avedesk.Application")
;av.ShowControlPanel
;[/color]
VbsExec vbs_1
will be eqivalent to
Code:
Copy      Help
[color=blue]lpstr [/color]vbs_1="Dim av[]Set av = CreateObject(''Avedesk.Application'')[]av.ShowControlPanel[]"
VbsExec vbs_1
#7
very nice.
i am looking forward for the new beta.
pi
#8
btw. how do i paste qm with highlighting like you do here ?
pi
#9
Wait for 2.1.5 version.
#10
ok.

how long ? Confusedhock:
pi
#11
1 - 2 weeks.


Forum Jump:


Users browsing this thread: 1 Guest(s)