Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » simmxtools (simple scripting - easily 'place' windows,sendkeys, etc, w32ver)
simmxtools [message #47117] Sun, 11 December 2016 02:21 Go to previous message
luoganda is currently online  luoganda
Messages: 196
Registered: November 2016
Experienced Member
simmxtools v0.2:
 some usefull stuff, usage:
  -simmxtools -help
  -simmxtools <=will read config.txt
  -simmxtool "keywords", eg: simmxtools "msgbox:'hola'" or simmxtools "run:'cmd /c notepad'\nplacewindow:'notepad',1,2000" <= will wait for notepad start max 2sec
  -try this: simmxtools "msgbox:'hola from simmx tools!'\nmsgbox:'new line'\nrun:'cmd /c notepad'\nshowwindow:'notepad',9,1000\nplacewindow:'notepad',0\nsleep:1400\nplacewindow:'notepad',5\nsleep:1400\nplacewindow:'notepad',1\nsendkeys:'hello{SPACE}from{SPACE}simmx{SPACE}tools!{RETURN}'\nsendkeys:'{RETURN}1234567'\nsendkeys:'{BACK}{BACK}'\nsendkeys:'{SPACE}'\nsendkeys:'6789'\nsendkeys:'{LMENU}'\nsendkeys:'{DOWN}{LEFT}{LEFT}'\nsendkeys:'{UP}{RETURN}'"
This tool was created primarily, because wxp for some reason does not always
  remember cmd window position - even when it explicitly asks you if you want to save for future usage.
	
plug can be created simply with regular dll(named plug_anyname.dll), 2 functions must be defined:
 -INT32 plugInitKeywords(char **ptrtokeywordsnullterm)
 -INT32 plugOnKeyword(DWORD keywind,DWORD numArgs,Pgn pgn,Pgs pgs,Pgr pgr,Psr psr,pluginter &pi)
 If there are clashes from two -same name- keyword in two separate dlls, prog will warn you

known bug:
 -upp version of dll sample crashes, even on simple call PromptOK("str");
 -msgbox:'text ',-16.6,' more text' won't print correct double(just1stPart)
  
updates(legend: :modified, +added, *fix/todo):
@10.dec.2016>
 :$res is used in place of previous $lastres(oldPlugRes/oldRunWait) <=this is thrown out, use $res to acces it
 :if/while - some bugs fixed
 +if - now optionally only leftmost var can be used,eg: if:'$dbl' or if:'$str'
 +break/continue [numNestedLevels=def=1], eg: innermost 'break:3' will break out to 2nd while, where there are 4 nested while's
    the best would be to use named while, and specify break/continue to break/continue to - since now if code is later changed/modified,
   break 3(forExample) may go out of sync - for now prog will warn you if you do for example: break 10, where there are only 2 nested while's
   Added tests in config-all.txt
 +$line - to access current line - 1based - as number
 +msgboxtitle keyword eg: msgboxtitle:'title',"regular msgboxtitle has ",&b,' chars'
 *escapes \\, $$ don't work yet, so you can't do this yet,eg: 'text$$idno' or 'text\\nstring', but you can 'text$','idno' and 'text\','nstring'

Tool is also available here:
https://ws-tools.000webhostapp.com

[Updated on: Sun, 11 December 2016 02:41]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: STimer-appLauncher'nProcWndListTweak
Next Topic: SMailer w32
Goto Forum:
  


Current Time: Sat Apr 27 23:25:26 CEST 2024

Total time taken to generate the page: 0.02756 seconds