| View previous topic :: View next topic |
| Author |
Message |
GregLand Valued Contributor


Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Wed Sep 23, 2009 10:13 pm Post subject: [Solved] Print Screen hotkey VDS6 |
|
|
Hello all !
I have a little problem...
I tried to use the print screen hotkey in the source below, no problem with VDS5, but VDS6 make an error for the "HOTKEY ADD,1,PRINT" command..
| Code: |
DIALOG CREATE,Test PrintKey,-1,0,216,38
DIALOG ADD,TEXT,status,6,6,204,18,Info : Press CTRL+P or PRINSCREEN !
DIALOG SHOW
HOTKEY ADD,1,PRINT
HOTKEY ADD,2,CTRL+P
:evloop
wait event
goto @event()
:hotkey
goto @hotkey()
:1
info PRINTSCREEN pressed
goto evloop
:2
INFO CTRL+P pressed
goto evloop
:close
HOTKEY REMOVE,1
HOTKEY REMOVE,2
exit |
Nothing as changed in the help on hotkey between VDS5 & VDS6
Someone can help me ?
Thanks ! 
Last edited by GregLand on Sat Sep 26, 2009 9:39 am; edited 1 time in total |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Thu Sep 24, 2009 11:26 am Post subject: |
|
|
Sorry, I don't know the solution. But I can confirm that hotkey behaves differently in VDS 5 and VDS 6.
Both VDS 5 and 6 can use the following hotkeys (by themselves or in combination i.e. ALT+2):
ALT, CTRL, ESC, INS, DEL, HOME, END, UP, DOWN, LEFT, RIGHT, PGUP, PGDN, INS, DEL, F1-F12, TAB, SHIFT, A-Z, 1-0.
The following (and probably more) work in VDS 6 but cause an error in VDS 5:
| Code: | HOTKEY ADD,PAUSE
HOTKEY ADD,/
HOTKEY ADD,-
|
While these work in VDS 5 but cause an error in VDS 6:
| Code: | HOTKEY ADD,CAPS
HOTKEY ADD,NUM
HOTKEY ADD,SCROLL
HOTKEY ADD,PRINT
|
The only solution I can think of is to create a small VDS 5 exe that uses HOTKEY ADD, PRINT and passes a message to the main VDS 6 exe. _________________ cheers
Dave |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Fri Sep 25, 2009 2:47 am Post subject: |
|
|
| Just a thought but, unless your script requires functionality that is exclusive to VDS 6, just compile it as a VDS 5 executable. |
|
| Back to top |
|
 |
GregLand Valued Contributor


Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Sat Sep 26, 2009 9:34 am Post subject: |
|
|
Ok... thanks for your answer...
I think it's unfortunate not to take advantage of version 6...
I will compile it in VDS5 executable...
Thanks a lot ! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|