hi JRL,
thats because of the Randomize function isnt always random.
But we kan "help' that
just change the
let>maxr=%max%*30
into
let>maxr=%max%*60
and look again,
you will notice a better score !!
(ahum, i know that this isnt properly programming, but for only use at home, this is allowed)
Search found 147 matches
- Fri Apr 08, 2016 1:34 pm
- Forum: Technical / Scripting
- Topic: Randomizing elements of a string
- Replies: 13
- Views: 9193
- Fri Apr 08, 2016 12:39 pm
- Forum: Technical / Scripting
- Topic: Randomizing elements of a string
- Replies: 13
- Views: 9193
Re: Randomizing elements of a string
hi Andrew, i guess the solution JRL offers is a good one, but i think difficult to follow? :lol: here i have a quick and dirty way i created : let>max=6 let>maxr=%max%*30 ArrayDim>name,%max% ArrayDim>order,%max% let>name_1=1Bob let>name_2=2Mary let>name_3=3Bill let>name_4=4Thomas let>name_5=5Djek le...
- Wed Nov 11, 2015 7:58 pm
- Forum: Technical / Scripting
- Topic: Do you want to save your changes? [SOLVED]
- Replies: 8
- Views: 5975
Re: Do you want to save your changes?
hi Abiven look at this: https://www.mjtnet.com/forum/viewtopic.php?f=2&t=8897 Hagchr had the answer, its a discrepancy if you answer No, it stil will save the script after you have run the script. Re: Bug? unwanted save if exit script after run Postby hagchr » Fri Oct 09, 2015 12:05 pm Hi, under the...
- Fri Oct 09, 2015 12:43 pm
- Forum: Technical / Scripting
- Topic: Bug? unwanted save if exit script after run
- Replies: 2
- Views: 2653
Re: Bug? unwanted save if exit script after run
???
..what?
Yes !
did not know that that was there,
thanks for pointing that out to me, Hagchr !
kind regards,
Djek
..what?
Yes !
did not know that that was there,
thanks for pointing that out to me, Hagchr !
kind regards,
Djek
- Fri Oct 09, 2015 11:53 am
- Forum: Technical / Scripting
- Topic: Bug? unwanted save if exit script after run
- Replies: 2
- Views: 2653
Bug? unwanted save if exit script after run
hi all, there seems to be a bug. Perhaps someone can confirm this behavior? The last update did not fix it, but its a bit annoying create a script, for instance: let>answer=six MessageModal>answer run it; message says "six" save it, and open it again change let>answer=six into let>answer=seven run i...
- Thu May 14, 2015 8:07 am
- Forum: Technical / Scripting
- Topic: Solved: Magic Packet Wake on LAN Python parse error
- Replies: 1
- Views: 2726
Re: Solved: Magic Packet Wake on LAN Python parse error
hi for anyone who likes to use the straightened version: //macaddress of the pc let>mac=54-be-f7-02-e1-d7 //broadcast mask let>brdcst=192.168.170.255 //convert hex to bytes let>t=-2 let>tt=0 label>leeswaarde let>t=t+3 let>tt=tt+1 MidStr>mac,%t%,2,macuit VBEval>CLng("&h" & "%macuit%"),macchar VBEval>...
- Tue May 12, 2015 5:03 pm
- Forum: Technical / Scripting
- Topic: Date not updating?
- Replies: 2
- Views: 3122
Re: Date not updating?
hey Dom, seems to me that Day>Day Month>Month Year>Year Let>todayDate=%Year%%Month%%Day% must be on a position in the script AFTER you notice that there s a new file in the folder. The only reason that the date isnt refreshed, is because the date is init once, at the beginning of the script. Perhaps...
- Tue May 12, 2015 8:52 am
- Forum: Technical / Scripting
- Topic: Solved: Magic Packet Wake on LAN Python parse error
- Replies: 1
- Views: 2726
Solved: Magic Packet Wake on LAN Python parse error
hey all, i try to broadcast a packet over UDP, containing the mac address of a pc, and formatted to turn a pc on. more info about wol: http://nl.wikipedia.org/wiki/Wake-on-LAN btw: You need the Python lib to be properly installed; To my surprise, the script works :D , the pc turns on, but i get an s...
- Sun Mar 08, 2015 2:54 pm
- Forum: Technical / Scripting
- Topic: Mouse movement
- Replies: 3
- Views: 2664
Re: Mouse movement
hmm hard to say, your questions are like random shooting at your fellow forum members...
I guess that you must determine the image you want to drag, locate this and drag it.
But i read the clear answers that Jerry Thomas gave to you, and i think you can manage that !
kind regards,
Djek
I guess that you must determine the image you want to drag, locate this and drag it.
But i read the clear answers that Jerry Thomas gave to you, and i think you can manage that !
kind regards,
Djek
- Sun Mar 08, 2015 10:24 am
- Forum: Technical / Scripting
- Topic: Mouse movement
- Replies: 3
- Views: 2664
Re: Mouse movement
Yes eugekillereugekiller wrote:Ok wondering if possible to hold left mouse button while moving the mouse around in a specific program?
take a look at this example
MouseMove>960,240
wait>1
LDown
mouseMove>1069,240
Lup
wait>1
kind regards
Djek
- Mon Nov 17, 2014 12:24 pm
- Forum: Technical / Scripting
- Topic: Python code test from example help
- Replies: 4
- Views: 3733
Re: Python code test from example help
Thanks Marcus, in the debugger i saw that the defined python value was assigned on the right way to pcode so i didnt get it. :shock: it looked all right But i figured it out; :D on top i have the line: Let>VAREXPLICIT=1 In the debugger the value of pcode is different as the value from %pcode% If i c...
- Mon Nov 17, 2014 9:45 am
- Forum: Technical / Scripting
- Topic: Python code test from example help
- Replies: 4
- Views: 3733
Python code test from example help
hi all, my first time trying Python, but as usually tying to get knowledge of it. i wonder if anyone of you noticed problems while trying the example provided by the help, its about the help comes with PYExec * First ensure Python27.dll and imports are in your Macro Scheduler program folder. Downloa...
- Thu Sep 04, 2014 7:35 am
- Forum: Technical / Scripting
- Topic: HTTPRequest with custom methods ?
- Replies: 2
- Views: 2653
Re: HTTPRequest with custom methods ?
Thanks for your reply, Marcus, I found that there are a few more methods; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html such as OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE and CONNECT. I did not know that either.....we are never to old to learn... Guess that many of them are obsolete, a...
- Wed Sep 03, 2014 2:09 pm
- Forum: Technical / Scripting
- Topic: HTTPRequest with custom methods ?
- Replies: 2
- Views: 2653
HTTPRequest with custom methods ?
hi all, this question is about the HTTPRequest . in use to request for an action on a PBX (http based) besides the GET and POST methods, it requires a DELETE method. I have never heard of it; here is the description: /apis/pbx/call/<unique_id> – hangup a call The request URI is the one returned in t...
- Tue Aug 12, 2014 9:22 am
- Forum: Technical / Scripting
- Topic: Open Read/Write Password Protected Excel Document
- Replies: 30
- Views: 18263
Re: Open Read/Write Password Protected Excel Document
hi Dominic,
be sure ALL instances (processes) of Excel are closed.
Most of the time i got stuck with excel related scripts, was because of there was already a process open.
You must use the taskmanager to check it.
Or kill all processes in you script before actually open one.
kind regards
Djek
be sure ALL instances (processes) of Excel are closed.
Most of the time i got stuck with excel related scripts, was because of there was already a process open.
You must use the taskmanager to check it.
Or kill all processes in you script before actually open one.
kind regards
Djek