Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

please correct the script



  • Please log in to reply
4 replies to this topic
dharmang1910
  • Members
  • 11 posts
  • Last active: Mar 13 2017 08:18 AM
  • Joined: 22 Sep 2015

I am trying to increase a textbox value of online software of my company with mouse wheel up but it can not increase with it, so i think there is something mistake happen in this script. 

can anyone try to correct it

WheelUp::
ControlGetText, line, edit12
line := ++1
ControlSetText, line, edit12
return

here is the screenshot of window info of my software.

2nv9ym8.jpg



boiler
  • Members
  • 252 posts
  • Last active: Nov 07 2015 09:39 PM
  • Joined: 04 Jun 2014

Your "line := ++1" will not accomplish adding 1 to line.

 

Change it to "line++" or "line := line + 1" or "line += 1".



dharmang1910
  • Members
  • 11 posts
  • Last active: Mar 13 2017 08:18 AM
  • Joined: 22 Sep 2015

@boiler

thanks man for the help, i'll try and reply you later.



dharmang1910
  • Members
  • 11 posts
  • Last active: Mar 13 2017 08:18 AM
  • Joined: 22 Sep 2015
✓  Best Answer

@boiler

that script not worked but i have used another script by help of our forum member @giliduck and its work perfectly.

here is that script.

WheelUp::
 ControlGetText, line, Edit12, fine11.jsp - Windows Internet Explorer
 If line is Integer
  ControlSetText, Edit12, % line + 1, fine11.jsp - Windows Internet Explorer
 Return


Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

This should additionally work.

WheelUp::
ControlGetText, line, edit12
line++
ControlSetText, edit12, %line%
return

The syntax for ControlSetText wasn't right. Though this script is untested.

 

Edit: Tested this in Notepad. Had to include an A for the WinTitle so it used the active window:

 

!w::
ControlGetText, line, Edit1, A
line++
ControlSetText, edit1, %line%, A
return