Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
swdev:autohotkey:examples [2018/02/13 15:31]
smayr [Example Script]
swdev:autohotkey:examples [2018/02/13 17:37] (current)
smayr [Messages or Dialogs]
Line 80: Line 80:
 Send a message with ''SplashTextOn'': Send a message with ''SplashTextOn'':
 <code autoit> <code autoit>
 +; Format: 
 +;    SplashTextOn [, Width, Height, Title, Text]
 SplashTextOn, , , Displays only a title bar. SplashTextOn, , , Displays only a title bar.
 Sleep, 2000 Sleep, 2000
Line 234: Line 236:
  
 ;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------
-Paste data to clipboard+Empty clipboard 
 +;------------------------------------------------------------------------------- 
 +emptyClipboard() 
 +
 +    clipboard = ; Empty the clipboard 
 +
 + 
 +;------------------------------------------------------------------------------- 
 +; Copy data to clipboard
 ;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------
 copyToClipboard() copyToClipboard()
Line 250: Line 260:
  
 ;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------
-; Paste data to clipboard+; Paste data from clipboard
 ;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------
 pasteFromClipboard() pasteFromClipboard()
Line 266: Line 276:
     ;SendInput, {ctrl down}v{ctrl up}     ;SendInput, {ctrl down}v{ctrl up}
     Send, {ctrl down}v{ctrl up}     Send, {ctrl down}v{ctrl up}
-} 
- 
-;------------------------------------------------------------------------------- 
-; Empty clipboard 
-;------------------------------------------------------------------------------- 
-emptyClipboard() 
-{ 
-    clipboard = ; Empty the clipboard 
 } }