Jump to content

simple


Recommended Posts

I need to merge the encryption/decryption functions in the standalone scripts (attached) into the GUI (below)

Here is the GUI:

HotKeySet( "^{ENTER}", "scramble")
HotKeySet( "!{ENTER}", "unscramble")

#include "guiconstants.au3"

$GUI = GUICreate("Scramblator", @DesktopWidth, 100, 0, 0)
$input = GUICtrlCreateInput("",10,40,@DesktopWidth - 20,20)
$scrambled= GUICtrlCreateButton("Scrambled is...",10,20,@DesktopWidth - 20,20)
$unscrambled = GUICtrlCreateButton("Uncrambled is...",10,60,@DesktopWidth - 20,20)
GUISetState()
While 1
    $return = GUICtrlRead($input)
   $msg = GUIGetMsg()
  
  If $msg = -3 Then ExitLoop
   If $msg = $scrambled Then
      GUICtrlSetData($scrambled,GUICtrlRead($input))
                  GUICtrlSetData($input,"")
                ClipPut( $return )    
                endif
  
         If $msg = $unscrambled Then
      GUICtrlSetData($unscrambled,GUICtrlRead($input))
            GUICtrlSetData($input,"")
            ClipPut( $return )
        EndIf  
                ToolTip( $return )
            
        WEnd
        
        func scramble()
                  GUICtrlSetData($scrambled,GUICtrlRead($input))
                  GUICtrlSetData($input,"")
                ClipPut( $return )    
        EndFunc
        
        func unscramble()
                  GUICtrlSetData($unscrambled,GUICtrlRead($input))
            GUICtrlSetData($input,"")
            ClipPut( $return )
        EndFunc

Edit: I also need to add the string replacements

Hopefully I explained everything well enough, if not just reply with your questions

Edited by datkewlguy
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...