home recent topics recent posts search faq  

Jitbit Software Forums Forum



register | lost password   open id sign in with Twitter
Messages in this topic - RSS

Home » Macro Recorder » How to create this specific IF function?

Keyboard and mouse recorder - Jitbit Macro Recorder
4/8/2010 4:04:04 PM

CrzyIcE
CrzyIcE
Posts: 1
Hey everyone, I just started to use this Macro recorder program and I am not sure how to do the IF statements.
For example, how do I make an IF statement considering this:
If there is an asterisk in the following, replace it with an A, B, C, D, ... etc.?
So if I have the macro paste 482V*X, How do I get the macro to replace the * to an A?
Thanks for the help
0 permalink
4/13/2010 4:17:26 PM

jitbit
jitbit
Administrator
Posts: 1306
Sorry, but text find-replace functions are not supported by the Macro Recorder.
0 permalink
6/16/2011 11:47:43 AM

Win7Guru
Win7Guru
Posts: 11
You can try initiating two left mouse clicks to simulate a word highlight, then Ctrl+C and Ctrl+V

Here is what I came up with


SWITCH TO WINDOW : Untitled - Notepad : 0
DELAY : 2321
Mouse : 758 : 187 : LeftButtonDown : 0 : 1
DELAY : 75
Mouse : R766 : R195 : LeftButtonUp : 0 : 1
DELAY : 249
Mouse : R766 : R195 : LeftButtonDown : 0 : 1
DELAY : 49
Mouse : R766 : R195 : LeftButtonUp : 0 : 1
DELAY : 1802
COMMENT : Start Copying Text
Keyboard : ControlLeft : KeyDown
Keyboard : C : KeyDown
Keyboard : C : KeyUp
Keyboard : ControlLeft : KeyUp
COMMENT : Finish Copying Text
IF CLIPBOARD EQUALS : * : 0 : 1
SET CLIPBOARD : 1
IF CLIPBOARD EQUALS : 1 : 0 : 1
SET CLIPBOARD : A
ELSE
GOTO : ENDING
IF CLIPBOARD EQUALS : 2 : 0 : 1
SET CLIPBOARD : B
ELSE
GOTO : ENDING
IF CLIPBOARD EQUALS : 3 : 0 : 1
SET CLIPBOARD : C
ELSE
GOTO : ENDING
IF CLIPBOARD EQUALS : 4 : 0 : 1
SET CLIPBOARD : D
ELSE
GOTO : ENDING
COMMENT : Start Pasting Text
Keyboard : ControlLeft : KeyDown
Keyboard : V : KeyDown
Keyboard : V : KeyUp
Keyboard : ControlLeft : KeyUp
COMMENT : Finish Pasting Text
LABEL : ENDING
ENDIF


This should get you started, let me know.

--
Macro Recorder Version = 5.3.8.2
Windows 7, 64-Bit
EN-US
Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz, 2133 Mhz, 2 Core(s), 4 CPU 32-Bit 4GB
0 permalink

Home » Macro Recorder » How to create this specific IF function?





Powered by Jitbit Forum 7.2.10.0 © 2006-2011 Jitbit Software