Sign in to follow this  
Followers 0
schlick

Template Gallery

1 post in this topic

I am having a devil of a time trying to figure out how to add code to a template that can generate into the resultant script code.

Said another way, I want to be able to add a click button to a form and allow it to have a func brought into my script from my 'new template'.

Can someone provide some assistance. I'm a total novice, but that is what brought me to this utility. I have generated my form and had to manually cut and paste all of my functions into autoit. Not to bad because finished product worked, but it was alot of work. I know that there is a better way.

I tried putting this into my template....

#include <GUIConstants.au3>

%INCLUDES%

%OPTIONS%

%EXPVARINITCODE%

%GUICODE%

While 1

Sleep(100)

WEnd

%EVENTSCODEBEGIN%

Func %EVENTNAME%()

StartVNC(GUICtrlRead(@GUI_CTRLID))

EndFunc

%EVENTSCODEEND%

Func StartVNC($val)

$rc = _RunDos("start vncviewer " & $val)

EndFunc

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0