| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Jan 26, 2011 9:48 pm Post subject: Convert AutoHotkey to VDS |
|
|
I have some code from AutoHotkey that I want to convert to VDS code. It looks like it can be, but I'm not sure how to. Could someone help?
| Code: |
GetDefaultPrinter()
{
nSize := VarSetCapacity(gPrinter, 256)
DllCall(A_WinDir . "\system32\winspool.drv\GetDefaultPrinterA", "str", gPrinter, "UintP", nSize)
Return gPrinter
}
SetDefaultPrinter(sPrinter)
{
DllCall(A_WinDir . "\system32\winspool.drv\SetDefaultPrinterA", "str", sPrinter)
TrayTip, InsureSign, %sPrinter% set as default printer., 10, 17
Sleep, 3000
TrayTip
}
|
Thanks a lot!!! _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 768 Location: Eastman, GA
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Sat Apr 23, 2011 1:29 am Post subject: |
|
|
Thanks. I'll give it a try. _________________ Chris
Http://theblindhouse.com |
|
| 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
|
|