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 next message
luoganda is currently offline  luoganda
Messages: 193
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

Re: simmxtools v0.3 [message #47122 is a reply to message #47117] Thu, 15 December 2016 01:31 Go to previous messageGo to next message
luoganda is currently offline  luoganda
Messages: 193
Registered: November 2016
Experienced Member
v0.3

Added stuff, check note.txt,
one of it is the possibility for total commander 'transparent' usage of files,
whether they are packed or unpacked - that is; zipped 'current' contents files can be accessed by any tool,
something like total commander UnpackAllAndExecute - but you get pathAndFile to temp folder/file that
was created transparently - sample included in next post.
Command line params added:
-file param added to simmxtools, use: simmxtools -file somescript.txt or simmxtools -file somescript.smx
-args param added to simmxtools,eg(-args thearg1 thearg2), using at end - marks all next args as passed 'arg',
 access as '$arg1','$arg2' etc, $nclargs as numCmdLineArgs
check note.txt for more.

Total commander unpacker - xul viewer sample is available in next post.

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

[Updated on: Mon, 19 December 2016 02:43]

Report message to a moderator

Re: simmxtools [message #47136 is a reply to message #47117] Mon, 19 December 2016 02:42 Go to previous messageGo to next message
luoganda is currently offline  luoganda
Messages: 193
Registered: November 2016
Experienced Member
Total commander unpacker - xul viewer sample
packed with simmxtools v0.3 is available in this post...
Re: simmxtools v0.4qxr [message #47161 is a reply to message #47117] Sat, 24 December 2016 04:28 Go to previous messageGo to next message
luoganda is currently offline  luoganda
Messages: 193
Registered: November 2016
Experienced Member
v0.4qxr
QBoxDrawers added/modified for easy option creation
QBoxEdit added - simple editor, you can do this in it: --goto23 or --simmxtools "print:'holla'"
QBoxFile added - regular text or QTF-format, explanation in QTF-Format.html, basic build-in icon names in note.txt
Note: qboxfile is now qboxfiledrawers
Demo added

Wm-message-list.txt added for send/post message usage, like postmessage:'notepad','wm_settext',0,'holla'
  or for dialog reference like so: run:"cmd /c simmxtools 'showmsgswnd'"

@23.dec.2016 v0.4qxr:
  Note:3xqbox stuff:qboxfile qboxfileedit qboxfiledrawers, qboxfile is now qboxfiledrawers
  +qboxfile:'textfile.any'(mayBeUtf8)[,number(asqtf,def=0)][,str(title,def="simmxtools")][,str(prependText="")]
  +qboxfileedit:'textfile.any'(mayBeUtf8)	<=simple editor-press f1 for more
  :qboxfiledrawers:'file'[,number(structAlignment,def=4)] - bug fixed - sample added 'qboxdrawers.txt',
    just write in some script: qboxfiledrawers:'qboxdrawers.txt' <=change options, then press OK - qboxdrawers.dat should
    be created - next time it'll be loaded from this
       note, any compiler can read this byte data struct as long as it can define struct->readDatFileIntoIt
       note, def=4byte alignment, whereas compiler default is usually 8byte alignment(changeCompilerTo4-orModifyThis),
             as 2ndParm you can modify this
Tool is also available here:
https://ws-tools.000webhostapp.com/

[Updated on: Sat, 24 December 2016 04:33]

Report message to a moderator

Re: simmxtools v0.4qxr qtf-view [message #47165 is a reply to message #47117] Sat, 24 December 2016 21:17 Go to previous messageGo to next message
luoganda is currently offline  luoganda
Messages: 193
Registered: November 2016
Experienced Member
Modified qboxfile with qtf param
so qboxfile can be used to view help like stuff with qtf format, etc
Re: simmxtools - v0.6qxr 16.jan.2017 [message #47434 is a reply to message #47117] Mon, 16 January 2017 03:19 Go to previous message
luoganda is currently offline  luoganda
Messages: 193
Registered: November 2016
Experienced Member
-some bug fixes QBox unicode/utf-8 stuff..., qboxedit added insfile/insfiles/fullscreen
-qtfedit added with optional param to open qtf or rtf file - which may be exported to html/rtf, added in demo
-placewindow now has optional params for width/height +width=inPercent,-width=inPixels, same for height, added in demo

[Updated on: Mon, 16 January 2017 03:30]

Report message to a moderator

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


Current Time: Thu Mar 28 20:28:36 CET 2024

Total time taken to generate the page: 0.00836 seconds