Just for lulz

Discussions relating to breakout scripting, .NET and COM programming with Jiwa objects.

Just for lulz

Postby Mike.Sheen » Thu Jul 29, 2010 8:36 pm

This is tested on 06.05.13, but probably works on 06.05.12 as well.

1. Open Jiwa.
2. With No forms loaded, choose Settings, then Manage Breakouts from the menu.
3. Under the "Login Completed" Breakout, add this code :
Code: Select all
   XInc = 1
   YInc = 1
End Sub

Public XInc
Public YInc

4. Under the "Timer Elapsed" breakout, add this code :

If Not (MDIParentObject.DesktopShortCuts Is Nothing) Then
If MDIParentObject.DesktopShortCuts.Count > 0 Then

For Each lshortcut In MDIParentObject.DesktopShortCuts

If lshortcut.DesktopColumn > (MDIParentObject.DesktopShortCuts.MaxColumns - 1) Or lshortcut.DesktopColumn < 1 Then
XInc = -XInc
End If

If lshortcut.DesktopRow > (MDIParentObject.DesktopShortCuts.MaxRows - 1) Or lshortcut.DesktopRow < 1 Then
YInc = -YInc
End If

lshortcut.Move lshortcut.DesktopColumn + XInc, lshortcut.DesktopRow + YInc

Exit For
Next
End If
End If
End Sub

5. Quit Jiwa
6. Open Jiwa
7. If you don't already have a Jiwa "Shortcut" on your Jiwa "Desktop", then on a menu option right click and choose "add shortcut". If you did, then you should already have noticed what the above steps did.

Oh, and if the above didn't work, then you probably have a desktop icon in Jiwa which you didn't know about which is hidden off to the top left or right : so run this script :
Code: Select all
UPDATE SY_DesktopShortcuts SET DesktopColumn = 1 WHERE DesktopColumn < 0
UPDATE SY_DesktopShortcuts SET DesktopRow = 1 WHERE DesktopRow < 0


What does it do?

It moves the first “shortcut” the user has on the jiwa “desktop” in a simple angle of incidence – angle of refraction motion. Collisions with other jiwa “icons” on the “jiwa desktop” causes the first shortcut to “bump” the others out the way (they should still all remain visible on the desktop).

Easily disabled or removed by just deleting the breakout script.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Return to Technical / Programming

Who is online

Users browsing this forum: No registered users and 7 guests