Technical support and scripting issues
Moderators: JRL, Dorian (MJT support)
-
rblack
- Pro Scripter
- Posts: 87
- Joined: Sat Dec 22, 2007 12:39 pm
Post
by rblack » Thu Sep 17, 2015 2:05 pm
Im changing the USEHANDLE in Subrutine. When im changing it first time - it works. When the subrutine is executing the second time to open te same windows i cannot change the USE_WINHANDLE parameter. Why is the WIN_USEHANDLE locked to change the value?

-
Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
-
Contact:
Post
by Marcus Tettmar » Thu Sep 17, 2015 2:25 pm
Hi,
I'm not sure I understand. Perhaps you can share your code. This little test below works as expected:
Code: Select all
Let>WIN_USEHANDLE=0
GoSub>test
GoSub>test
GoSub>test
SRT>test
If>WIN_USEHANDLE=0
Let>WIN_USEHANDLE=1
Else
Let>WIN_USEHANDLE=0
Endif
END>test