Advertisement
Guest User

Untitled

a guest
Jun 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !addplugindir .
  2.  
  3. outfile exe.exe
  4.  
  5. !include LogicLib.nsh
  6. !include WinMessages.nsh
  7.  
  8. page custom pre webleave
  9.  
  10. var hackit
  11.  
  12. function pre
  13. strcpy $hackit 0
  14. system::call 'user32::PostMessage(i $hwndparent,i ${WM_COMMAND},i 1,i0)'
  15. nsWeb::ShowWebInPage "$exedir\file1.htm"
  16. functionend
  17.  
  18. function webleave
  19. ${If} $hackit = 0
  20.     FindWindow $0 "#32770" "" $HWNDPARENT
  21.     FindWindow $0 "" "" $0
  22.     System::Call 'user32::SetWindowPos(i $0,i0,i0,i0,i 123,i 123,i 0x0020)i'
  23.     StrCpy $hackit 1
  24.     Abort
  25. ${EndIf}
  26. functionend
  27.  
  28.  
  29. section
  30. sectionend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement